mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-30 19:03:16 +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:
@ -397,16 +397,16 @@ do_test incrblob2-8.4 {
|
||||
} {cccccccccccccccccccc}
|
||||
do_test incrblob2-8.5 {
|
||||
catchsql {UPDATE t3 SET a = 6 WHERE a > 3}
|
||||
} {1 {column a is not unique}}
|
||||
} {1 {UNIQUE constraint failed: t3.a}}
|
||||
do_test incrblob2-8.6 {
|
||||
catchsql {UPDATE t3 SET a = 6 WHERE a > 3}
|
||||
} {1 {column a is not unique}}
|
||||
} {1 {UNIQUE constraint failed: t3.a}}
|
||||
do_test incrblob2-8.7 {
|
||||
sqlite3_blob_read $h 0 20
|
||||
} {cccccccccccccccccccc}
|
||||
do_test incrblob2-8.8 {
|
||||
catchsql {UPDATE t3 SET a = 6 WHERE a = 3 OR a = 5}
|
||||
} {1 {column a is not unique}}
|
||||
} {1 {UNIQUE constraint failed: t3.a}}
|
||||
do_test incrblob2-8.9 {
|
||||
set rc [catch {sqlite3_blob_read $h 0 20} msg]
|
||||
list $rc $msg
|
||||
|
Reference in New Issue
Block a user