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

Modifications and bugfixes so that the test suite passes with the TCL statement cache turned on. (CVS 2271)

FossilOrigin-Name: d5233e0747789dea04d35a8350b408321d23a64d
This commit is contained in:
danielk1977
2005-01-24 10:25:59 +00:00
parent d5a71b5de3
commit a21c6b6fe0
18 changed files with 282 additions and 75 deletions

View File

@ -12,7 +12,7 @@
# focus of this script is testing the ATTACH and DETACH commands
# and related functionality.
#
# $Id: auth.test,v 1.25 2004/11/23 15:41:17 danielk1977 Exp $
# $Id: auth.test,v 1.26 2005/01/24 10:26:00 danielk1977 Exp $
#
set testdir [file dirname $argv0]
@ -25,6 +25,14 @@ if {[catch {db auth {}} msg]} {
return
}
rename proc proc_real
proc_real proc {name arguments script} {
proc_real $name $arguments $script
if {$name=="auth"} {
db authorizer ::auth
}
}
do_test auth-1.1.1 {
db close
set ::DB [sqlite3 db test.db]
@ -2108,4 +2116,7 @@ do_test auth-4.5 {
} ;# ifcapable view && trigger
rename proc {}
rename proc_real proc
finish_test