Restore the test that strict tables won't accept ill-typed values.

This commit is contained in:
Gwendal Roué committed 2022-10-20 08:46:49 +02:00
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 {
}
}
}