1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-01 06:27:03 +03:00

Progress towards getting prepared statements and CREATE and DROP to play

nicely together.  Work is incomplete.  Some tests are known to fail. (CVS 1864)

FossilOrigin-Name: 49b991492496e104f5eca620a5d465a742b7ff3a
This commit is contained in:
drh
2004-07-24 03:30:47 +00:00
parent 3e27c02625
commit 234c39dff7
9 changed files with 223 additions and 215 deletions

View File

@ -13,7 +13,7 @@
# This file implements tests for miscellanous features that were
# left out of other test files.
#
# $Id: misc4.test,v 1.3 2004/07/19 17:25:25 drh Exp $
# $Id: misc4.test,v 1.4 2004/07/24 03:30:49 drh Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
@ -54,4 +54,29 @@ do_test misc4-1.3 {
sqlite3_finalize $stmt
} {SQLITE_SCHEMA}
# Prepare but do not execute various CREATE statements. Then before
# those statements are executed, try to use the tables, indices, views,
# are triggers that were created.
#
if 0 {
do_test misc4-2.1 {
set stmt [sqlite3_prepare $DB {CREATE TABLE t3(x);} -1 TAIL]
catchsql {
pragma vdbe_trace=on;
INSERT INTO t3 VALUES(1);
}
} {1 {no such table: t3}}
do_test misc4-2.2 {
sqlite3_step $stmt
} SQLITE_DONE
do_test misc4-2.3 {
sqlite3_finalize $stmt
} SQLITE_OK
do_test misc4-2.4 {
catchsql {
INSERT INTO t3 VALUES(1);
}
} {0 {}}
}
finish_test