summaryrefslogtreecommitdiff
path: root/test/intpkey.test
diff options
context:
space:
mode:
Diffstat (limited to 'test/intpkey.test')
-rw-r--r--test/intpkey.test9
1 files changed, 6 insertions, 3 deletions
diff --git a/test/intpkey.test b/test/intpkey.test
index db39421..41858e5 100644
--- a/test/intpkey.test
+++ b/test/intpkey.test
@@ -76,7 +76,7 @@ do_test intpkey-1.6 {
INSERT INTO t1 VALUES(5,'second','entry');
}} msg]
lappend r $msg
-} {1 {PRIMARY KEY must be unique}}
+} {1 {UNIQUE constraint failed: t1.a}}
do_test intpkey-1.7 {
execsql {
SELECT rowid, * FROM t1;
@@ -125,8 +125,11 @@ do_test intpkey-1.12.1 {
}
} {4 one two}
do_test intpkey-1.12.2 {
- set sqlite_query_plan
-} {t1 *}
+ execsql {
+ EXPLAIN QUERY PLAN
+ SELECT * FROM t1 WHERE a==4;
+ }
+} {/SEARCH TABLE t1 /}
# Try to insert a non-integer value into the primary key field. This
# should result in a data type mismatch.