mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-29 08:01:23 +03:00
Disallow temporary indices on persistent tables. (CVS 1122)
FossilOrigin-Name: 72bf73b2c1e3594aa85920e47fc345bba56c80d0
This commit is contained in:
@ -12,7 +12,7 @@
|
||||
# focus of this script is testing the ATTACH and DETACH commands
|
||||
# and related functionality.
|
||||
#
|
||||
# $Id: auth.test,v 1.10 2003/06/06 19:00:42 drh Exp $
|
||||
# $Id: auth.test,v 1.11 2003/11/27 00:49:23 drh Exp $
|
||||
#
|
||||
|
||||
set testdir [file dirname $argv0]
|
||||
@ -267,7 +267,7 @@ do_test auth-1.34 {
|
||||
execsql {SELECT * FROM t2}
|
||||
} {1 2 3}
|
||||
|
||||
do_test auth-1.35 {
|
||||
do_test auth-1.35.1 {
|
||||
proc auth {code arg1 arg2 arg3 arg4} {
|
||||
if {$code=="SQLITE_READ" && $arg1=="t2" && $arg2=="b"} {
|
||||
return SQLITE_DENY
|
||||
@ -276,6 +276,11 @@ do_test auth-1.35 {
|
||||
}
|
||||
catchsql {SELECT * FROM t2}
|
||||
} {1 {access to t2.b is prohibited}}
|
||||
do_test auth-1.35.2 {
|
||||
execsql {ATTACH DATABASE 'test.db' AS two}
|
||||
catchsql {SELECT * FROM two.t2}
|
||||
} {1 {access to two.t2.b is prohibited}}
|
||||
execsql {DETACH DATABASE two}
|
||||
do_test auth-1.36 {
|
||||
proc auth {code arg1 arg2 arg3 arg4} {
|
||||
if {$code=="SQLITE_READ" && $arg1=="t2" && $arg2=="b"} {
|
||||
|
Reference in New Issue
Block a user