Better error messages on constraint violations. Additional tests and bug fixes

for the callback-free API. (CVS 854)

FossilOrigin-Name: ccc82f1ab4539a60ee5cc2625743c5389f9ccd8e
This commit is contained in:
drh
2003-01-29 18:46:51 +00:00
parent 326dce7451
commit 483750ba8a
22 changed files with 256 additions and 144 deletions
+4 -4
View File
@@ -11,7 +11,7 @@
# This file implements regression tests for SQLite library. The
# focus of this file is testing the UPDATE statement.
#
# $Id: update.test,v 1.10 2002/07/16 17:22:51 drh Exp $
# $Id: update.test,v 1.11 2003/01/29 18:46:54 drh Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
@@ -439,7 +439,7 @@ do_test update-10.3 {
UPDATE t1 SET a=1, e=10 WHERE f=7;
SELECT * FROM t1;
}
} {1 {constraint failed}}
} {1 {PRIMARY KEY must be unique}}
do_test update-10.4 {
catchsql {
SELECT * FROM t1;
@@ -456,7 +456,7 @@ do_test update-10.6 {
UPDATE t1 SET b=2, e=12 WHERE f=7;
SELECT * FROM t1;
}
} {1 {constraint failed}}
} {1 {uniqueness constraint failed}}
do_test update-10.7 {
catchsql {
SELECT * FROM t1;
@@ -473,7 +473,7 @@ do_test update-10.9 {
UPDATE t1 SET c=3, d=4, e=14 WHERE f=7;
SELECT * FROM t1;
}
} {1 {constraint failed}}
} {1 {uniqueness constraint failed}}
do_test update-10.10 {
catchsql {
SELECT * FROM t1;