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

Fix auth.test to work when SQLITE_OMIT_ALTERTABLE is defined. (CVS 2130)

FossilOrigin-Name: 27a8379b54d6a1169b89e540ba44f4f94d006fb7
This commit is contained in:
danielk1977
2004-11-22 03:34:21 +00:00
parent f856582562
commit 215e64da5e
3 changed files with 15 additions and 11 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.20 2004/11/12 15:53:37 danielk1977 Exp $
# $Id: auth.test,v 1.21 2004/11/22 03:34:21 danielk1977 Exp $
#
set testdir [file dirname $argv0]
@ -1667,8 +1667,10 @@ db authorizer {}
execsql {DETACH DATABASE test1}
db authorizer ::auth
# Authorization for ALTER TABLE
#
# Authorization for ALTER TABLE. These tests are omitted if the library
# was built without ALTER TABLE support.
ifcapable altertable {
do_test auth-1.263 {
proc auth {code arg1 arg2 arg3 arg4} {
if {$code=="SQLITE_ALTER_TABLE"} {
@ -1783,6 +1785,8 @@ do_test auth-1.280 {
db authorizer {}
catchsql {ALTER TABLE t2x RENAME TO t2}
} ;# ifcapable altertable
do_test auth-2.1 {
proc auth {code arg1 arg2 arg3 arg4} {