@@ -6437,7 +6437,7 @@ ALTER FOREIGN TABLE ft1_constraint RENAME TO ft1;
64376437--Testcase 319:
64386438INSERT INTO ft1(c1, c2) VALUES(11, 12); -- duplicate key
64396439ERROR: Failed to execute remote SQL
6440- HINT: SQLite error 'UNIQUE constraint failed: t1_constraint.c1', SQLite result code 19
6440+ HINT: SQLite error 'UNIQUE constraint failed: t1_constraint.c1', SQLite primary result code 19, extended result code 1555
64416441CONTEXT: SQL query: INSERT INTO main."t1_constraint"(`c1`, `c2`, `c3`, `c4`, `c5`, `c6`, `c7`, `c8`) VALUES (?, ?, ?, ?, ?, ?, ?, ?)
64426442--Testcase 320:
64436443INSERT INTO ft1(c1, c2) VALUES(11, 12) ON CONFLICT (c1, c2) DO NOTHING; -- unsupported
@@ -6448,12 +6448,12 @@ ERROR: there is no unique or exclusion constraint matching the ON CONFLICT spec
64486448--Testcase 743:
64496449INSERT INTO ft1(c1, c2) VALUES(1111, -2); -- c2positive
64506450ERROR: Failed to execute remote SQL
6451- HINT: SQLite error 'CHECK constraint failed: c2 >= 0', SQLite result code 19
6451+ HINT: SQLite error 'CHECK constraint failed: c2 >= 0', SQLite primary result code 19, extended result code 275
64526452CONTEXT: SQL query: INSERT INTO main."t1_constraint"(`c1`, `c2`, `c3`, `c4`, `c5`, `c6`, `c7`, `c8`) VALUES (?, ?, ?, ?, ?, ?, ?, ?)
64536453--Testcase 744:
64546454UPDATE ft1 SET c2 = -c2 WHERE c1 = 1; -- c2positive
64556455ERROR: Failed to execute remote SQL
6456- HINT: SQLite error 'CHECK constraint failed: c2 >= 0', SQLite result code 19
6456+ HINT: SQLite error 'CHECK constraint failed: c2 >= 0', SQLite primary result code 19, extended result code 275
64576457CONTEXT: SQL query: UPDATE main."t1_constraint" SET `c2` = (- `c2`) WHERE ((`c1` = 1))
64586458--Testcase 750:
64596459ALTER FOREIGN TABLE ft1 RENAME TO ft1_constraint;
@@ -6856,12 +6856,12 @@ RESET constraint_exclusion;
68566856--Testcase 745:
68576857INSERT INTO ft1(c1, c2) VALUES(1111, -2); -- c2positive
68586858ERROR: Failed to execute remote SQL
6859- HINT: SQLite error 'CHECK constraint failed: c2 >= 0', SQLite result code 19
6859+ HINT: SQLite error 'CHECK constraint failed: c2 >= 0', SQLite primary result code 19, extended result code 275
68606860CONTEXT: SQL query: INSERT INTO main."t1_constraint"(`c1`, `c2`, `c3`, `c4`, `c5`, `c6`, `c7`, `c8`) VALUES (?, ?, ?, ?, ?, ?, ?, ?)
68616861--Testcase 746:
68626862UPDATE ft1 SET c2 = -c2 WHERE c1 = 1; -- c2positive
68636863ERROR: Failed to execute remote SQL
6864- HINT: SQLite error 'CHECK constraint failed: c2 >= 0', SQLite result code 19
6864+ HINT: SQLite error 'CHECK constraint failed: c2 >= 0', SQLite primary result code 19, extended result code 275
68656865CONTEXT: SQL query: UPDATE main."t1_constraint" SET `c2` = (- `c2`) WHERE ((`c1` = 1))
68666866ALTER FOREIGN TABLE ft1 DROP CONSTRAINT ft1_c2positive;
68676867-- But inconsistent check constraints provide inconsistent results
0 commit comments