@@ -17,6 +17,7 @@ public static void addDeleteErrors(ExpectedErrors errors) {
1717 }
1818
1919 public static void addExpectedExpressionErrors (ExpectedErrors errors ) {
20+ errors .add ("[SQLITE_BUSY] The database file is locked" );
2021 errors .add ("FTS expression tree is too large" );
2122 errors .add ("String or BLOB exceeds size limit" );
2223 errors .add ("[SQLITE_ERROR] SQL error or missing database (integer overflow)" );
@@ -93,4 +94,21 @@ public static void addInsertNowErrors(ExpectedErrors errors) {
9394 errors .add ("non-deterministic use of date()" );
9495 }
9596
97+ public static void addInsertUpdateErrors (ExpectedErrors errors ) {
98+ errors .add ("String or BLOB exceeds size limit" );
99+ errors .add ("[SQLITE_CONSTRAINT_CHECK]" );
100+ errors .add ("[SQLITE_CONSTRAINT_PRIMARYKEY]" );
101+ errors .add ("[SQLITE_CONSTRAINT]" );
102+ errors .add ("[SQLITE_CONSTRAINT_NOTNULL]" );
103+ errors .add ("[SQLITE_CONSTRAINT_UNIQUE]" );
104+ errors .add ("cannot INSERT into generated column" ); // TODO: filter out generated columns
105+ errors .add ("A table in the database is locked" ); // https://www.sqlite.org/src/tktview?name=56a74875be
106+ errors .add ("The database file is locked" );
107+ errors .add ("too many levels of trigger recursion" );
108+ errors .add ("cannot UPDATE generated column" );
109+ errors .add ("[SQLITE_ERROR] SQL error or missing database (no such table:" );
110+ errors .add ("[SQLITE_ERROR] SQL error or missing database (foreign key mismatch" );
111+ errors .add ("no such column" ); // trigger
112+ }
113+
96114}
0 commit comments