mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-28 04:24:20 +00:00
Restore the test that strict tables won't accept ill-typed values.
This commit is contained in:
1 parent
3c4ff5b26e
commit
901d010ab3
1 file changed
+6
@@ -76,6 +76,12 @@ class TableDefinitionTests: GRDBTestCase {
|
||||
"e" ANY\
|
||||
) STRICT
|
||||
""")
|
||||
|
||||
do {
|
||||
try db.execute(sql: "INSERT INTO test3 (id, a) VALUES (1, 'foo')")
|
||||
XCTFail("Expected DatabaseError.SQLITE_CONSTRAINT_DATATYPE")
|
||||
} catch DatabaseError.SQLITE_CONSTRAINT_DATATYPE {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user