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

Allow xDestroy methods to execute "DROP TABLE" statements. (CVS 3287)

FossilOrigin-Name: a56bfa560425a5dc9273229f8838471dfc402024
This commit is contained in:
danielk1977
2006-06-23 14:32:08 +00:00
parent b7a2f2e8b7
commit 212b218c88
6 changed files with 53 additions and 38 deletions

View File

@ -11,7 +11,7 @@
# This file implements regression tests for SQLite library. The
# focus of this file is creating and dropping virtual tables.
#
# $Id: vtab1.test,v 1.29 2006/06/22 09:53:50 danielk1977 Exp $
# $Id: vtab1.test,v 1.30 2006/06/23 14:32:09 danielk1977 Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
@ -748,26 +748,20 @@ do_test vtab1.8-2 {
}
} {}
if 0 {
do_test vtab1.9-1 {
set echo_module ""
execsql {
CREATE TABLE r(a, b, c);
CREATE VIRTUAL TABLE e USING echo(r, e_log);
SELECT name FROM sqlite_master;
}
} {r e e_log}
do_test vtab1.9-2 {
explain {
DROP TABLE e;
}
execsql {
PRAGMA vdbe_trace = 1;
DROP TABLE e;
SELECT name FROM sqlite_master;
}
} {r}
}
do_test vtab1.9-1 {
set echo_module ""
execsql {
CREATE TABLE r(a, b, c);
CREATE VIRTUAL TABLE e USING echo(r, e_log);
SELECT name FROM sqlite_master;
}
} {r e e_log}
do_test vtab1.9-2 {
execsql {
DROP TABLE e;
SELECT name FROM sqlite_master;
}
} {r}
finish_test