You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Environment:
Language: Swift 3
Target: iOS 10.0
Pod Version: 0.11.2
xCode: 8.3.2
Description of Issue:
When creating a table column for which the values can be nil, if a collate .nocase is declared for it, the database creates the column using NOT NULL.
Steps to Reproduce:
let ruleTable = Table("ruleTable")
let description = Expression<String?>("description")
try db.run(ruleTable.create(ifNotExists: true) { t in
...
t.column(description, collate: .nocase)
...
}
Attempt to insert a row using nil as the description and it will yield the following error:
NOT NULL constraint failed: ruleTable.description (code: 19)
I was able to confirm this bug by creating a table without the collate and the above procedure operated as intended.
The text was updated successfully, but these errors were encountered:
Environment:
Language: Swift 3
Target: iOS 10.0
Pod Version: 0.11.2
xCode: 8.3.2
Description of Issue:
When creating a table column for which the values can be nil, if a collate
.nocase
is declared for it, the database creates the column usingNOT NULL
.Steps to Reproduce:
Attempt to insert a row using
nil
as thedescription
and it will yield the following error:I was able to confirm this bug by creating a table without the
collate
and the above procedure operated as intended.The text was updated successfully, but these errors were encountered: