mirror of
https://github.com/sqlite/sqlite.git
synced 2026-01-06 08:01:16 +03:00
Prepared statements now work with CREATE and DROP. All tests pass.
No memory leaks. (CVS 1866) FossilOrigin-Name: ebdb661e0eefe123c422d3c1c371e325bb6cf673
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
# This file implements tests for miscellanous features that were
|
||||
# left out of other test files.
|
||||
#
|
||||
# $Id: misc4.test,v 1.5 2004/07/24 14:35:59 drh Exp $
|
||||
# $Id: misc4.test,v 1.6 2004/07/24 17:38:30 drh Exp $
|
||||
|
||||
set testdir [file dirname $argv0]
|
||||
source $testdir/tester.tcl
|
||||
@@ -64,11 +64,9 @@ do_test misc4-1.6 {
|
||||
# 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}}
|
||||
@@ -83,6 +81,6 @@ do_test misc4-2.4 {
|
||||
INSERT INTO t3 VALUES(1);
|
||||
}
|
||||
} {0 {}}
|
||||
}
|
||||
|
||||
|
||||
finish_test
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#
|
||||
# This file implements tests for the PRAGMA command.
|
||||
#
|
||||
# $Id: pragma.test,v 1.16 2004/07/22 15:02:26 drh Exp $
|
||||
# $Id: pragma.test,v 1.17 2004/07/24 17:38:30 drh Exp $
|
||||
|
||||
set testdir [file dirname $argv0]
|
||||
source $testdir/tester.tcl
|
||||
@@ -306,6 +306,7 @@ catchsql {COMMIT;}
|
||||
# Test schema-query pragmas
|
||||
#
|
||||
do_test pragma-6.1 {
|
||||
set res {}
|
||||
foreach {idx name file} [execsql {pragma database_list}] {
|
||||
lappend res $idx $name
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user