diff options
Diffstat (limited to 'test/auth.test')
-rw-r--r-- | test/auth.test | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/auth.test b/test/auth.test index d8afa2dbf..7df9ad373 100644 --- a/test/auth.test +++ b/test/auth.test @@ -2246,6 +2246,19 @@ ifcapable altertable&&vtab { } {main t1 {} {}} } +# 2022-12-28 +# 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 + } + return SQLITE_OK + } + catchsql {SELECT * FROM pragma_table_list WHERE name='xyzzy';} +} {0 {}} do_test auth-2.1 { proc auth {code arg1 arg2 arg3 arg4 args} { |