mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-29 08:01:23 +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:
@ -78,14 +78,14 @@ do_test 2.2 {
|
||||
error_messages "INSERT INTO t1 VALUES('ghi', 'def')"
|
||||
} [list {*}{
|
||||
SQLITE_ERROR {SQL logic error or missing database}
|
||||
SQLITE_CONSTRAINT {column b is not unique}
|
||||
SQLITE_CONSTRAINT {UNIQUE constraint failed: t1.b}
|
||||
}]
|
||||
verify_ex_errcode 2.2b SQLITE_CONSTRAINT_UNIQUE
|
||||
do_test 2.3 {
|
||||
error_messages_v2 "INSERT INTO t1 VALUES('ghi', 'def')"
|
||||
} [list {*}{
|
||||
SQLITE_CONSTRAINT {column b is not unique}
|
||||
SQLITE_CONSTRAINT {column b is not unique}
|
||||
SQLITE_CONSTRAINT {UNIQUE constraint failed: t1.b}
|
||||
SQLITE_CONSTRAINT {UNIQUE constraint failed: t1.b}
|
||||
}]
|
||||
verify_ex_errcode 2.3b SQLITE_CONSTRAINT_UNIQUE
|
||||
|
||||
|
Reference in New Issue
Block a user