We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I found SQLite-StORM can't parser Bool value to right type, it convert to String type.
public class Team: SQLiteStORM { var id: Int = 0 var activeState: Bool = false override open func table() -> String { return "team" } override public func to(_ this: StORMRow) { id = this.data["id"] as? Int ?? 0 // notice activeState = this.data["activeState"] as? Bool ?? false } }
Set breakpoint at activeState = this.data["activeState"] as? Int ?? 0, run lldb command
activeState = this.data["activeState"] as? Int ?? 0
v this.data["activeState"]
Console print activeState="true", it's String type, then activeState always false.
activeState="true"
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I found SQLite-StORM can't parser Bool value to right type, it convert to String type.
Set breakpoint at
activeState = this.data["activeState"] as? Int ?? 0
, run lldb commandConsole print
activeState="true"
, it's String type, then activeState always false.The text was updated successfully, but these errors were encountered: