mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-29 08:01:23 +03:00
Rename SQLITE_CONSTRAINT_RAISE to SQLITE_CONSTRAINT_TRIGGER. Put the
extended constraint error codes in alphabetical order. Add many test cases for the extended constraint error codes. FossilOrigin-Name: 3f67437536591a1b0742a25b983707933aaa16d5
This commit is contained in:
@ -54,6 +54,7 @@
|
||||
# do_ioerr_test TESTNAME ARGS...
|
||||
# crashsql ARGS...
|
||||
# integrity_check TESTNAME ?DB?
|
||||
# verify_ex_errcode TESTNAME EXPECTED ?DB?
|
||||
# do_test TESTNAME SCRIPT EXPECTED
|
||||
# do_execsql_test TESTNAME SQL EXPECTED
|
||||
# do_catchsql_test TESTNAME SQL EXPECTED
|
||||
@ -968,6 +969,12 @@ proc integrity_check {name {db db}} {
|
||||
}
|
||||
}
|
||||
|
||||
# Check the extended error code
|
||||
#
|
||||
proc verify_ex_errcode {name expected {db db}} {
|
||||
do_test $name [list sqlite3_extended_errcode $db] $expected
|
||||
}
|
||||
|
||||
|
||||
# Return true if the SQL statement passed as the second argument uses a
|
||||
# statement transaction.
|
||||
|
Reference in New Issue
Block a user