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:
@ -452,7 +452,7 @@ do_test update-10.3 {
|
||||
UPDATE t1 SET a=1, e=10 WHERE f=7;
|
||||
SELECT * FROM t1;
|
||||
}
|
||||
} {1 {PRIMARY KEY must be unique}}
|
||||
} {1 {UNIQUE constraint failed: t1.a}}
|
||||
do_test update-10.4 {
|
||||
catchsql {
|
||||
SELECT * FROM t1;
|
||||
@ -469,7 +469,7 @@ do_test update-10.6 {
|
||||
UPDATE t1 SET b=2, e=12 WHERE f=7;
|
||||
SELECT * FROM t1;
|
||||
}
|
||||
} {1 {column b is not unique}}
|
||||
} {1 {UNIQUE constraint failed: t1.b}}
|
||||
do_test update-10.7 {
|
||||
catchsql {
|
||||
SELECT * FROM t1;
|
||||
@ -486,7 +486,7 @@ do_test update-10.9 {
|
||||
UPDATE t1 SET c=3, d=4, e=14 WHERE f=7;
|
||||
SELECT * FROM t1;
|
||||
}
|
||||
} {1 {columns c, d are not unique}}
|
||||
} {1 {UNIQUE constraint failed: t1.c, t1.d}}
|
||||
do_test update-10.10 {
|
||||
catchsql {
|
||||
SELECT * FROM t1;
|
||||
|
Reference in New Issue
Block a user