mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-01 06:27:03 +03:00
Standardize the error messages generated by constraint failures to a format
of "$TYPE constraint failed: $DETAIL". This involves many changes to the expected output of test cases. FossilOrigin-Name: 54b221929744b1bcdbcc2030fef2e510618afd41
This commit is contained in:
@ -30,7 +30,7 @@ do_test schema5-1.1 {
|
||||
} {1 2 3}
|
||||
do_test schema5-1.2 {
|
||||
catchsql {INSERT INTO t1 VALUES(1,3,4);}
|
||||
} {1 {PRIMARY KEY must be unique}}
|
||||
} {1 {UNIQUE constraint failed: t1.a}}
|
||||
do_test schema5-1.3 {
|
||||
db eval {
|
||||
DROP TABLE t1;
|
||||
@ -44,7 +44,7 @@ do_test schema5-1.3 {
|
||||
} {1 2 3}
|
||||
do_test schema5-1.4 {
|
||||
catchsql {INSERT INTO t1 VALUES(10,11,12);}
|
||||
} {1 {constraint two failed}}
|
||||
} {1 {CHECK constraint failed: two}}
|
||||
do_test schema5-1.5 {
|
||||
db eval {
|
||||
DROP TABLE t1;
|
||||
@ -57,10 +57,10 @@ do_test schema5-1.5 {
|
||||
} {}
|
||||
do_test schema5-1.6 {
|
||||
catchsql {INSERT INTO t1 VALUES(1,3,4)}
|
||||
} {1 {column a is not unique}}
|
||||
} {1 {UNIQUE constraint failed: t1.a}}
|
||||
do_test schema5-1.7 {
|
||||
catchsql {INSERT INTO t1 VALUES(10,2,3)}
|
||||
} {1 {PRIMARY KEY must be unique}}
|
||||
} {1 {UNIQUE constraint failed: t1.b, t1.c}}
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user