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

Fix some test scripts that were failing with SQLITE_OMIT_VIRTUALTABLE builds.

FossilOrigin-Name: 81c118d90b281b30f40b3eeefaeb2c8350aa40080b4fe7de8f21d263986c6acb
This commit is contained in:
dan
2023-02-06 10:47:57 +00:00
parent 072f48e556
commit e734207a79
10 changed files with 85 additions and 69 deletions

View File

@ -2250,15 +2250,17 @@ ifcapable altertable&&vtab {
# The sqlite3_declare_vtab() call that occurs during pragma_table_list
# should not cause an authentication failure.
#
do_test auth-1.359 {
proc auth {code arg1 arg2 arg3 arg4 args} {
if {$code=="SQLITE_UPDATE"} {
return SQLITE_DENY
ifcapable vtab {
do_test auth-1.359 {
proc auth {code arg1 arg2 arg3 arg4 args} {
if {$code=="SQLITE_UPDATE"} {
return SQLITE_DENY
}
return SQLITE_OK
}
return SQLITE_OK
}
catchsql {SELECT * FROM pragma_table_list WHERE name='xyzzy';}
} {0 {}}
catchsql {SELECT * FROM pragma_table_list WHERE name='xyzzy';}
} {0 {}}
}
do_test auth-2.1 {
proc auth {code arg1 arg2 arg3 arg4 args} {