mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-29 08:01:23 +03:00
Add the SQLITE_DBCONFIG_ENABLE_VIEW option, together with a "db config"
command in the TCL interface that can access that option as well as all the other sqlite3_db_config() boolean options. FossilOrigin-Name: 61b4bccd2984f4c2cf50f58ef08677588e57aa7e079af07473b2e188d9ce4f52
This commit is contained in:
@ -38,6 +38,18 @@ do_test view-1.1 {
|
||||
SELECT * FROM v1 ORDER BY a;
|
||||
}
|
||||
} {1 2 4 5 7 8}
|
||||
do_test view-1.1.100 {
|
||||
db config enable_view off
|
||||
catchsql {
|
||||
SELECT * FROM v1 ORDER BY a;
|
||||
}
|
||||
} {1 {access to view "v1" prohibited}}
|
||||
do_test view-1.1.110 {
|
||||
db config enable_view on
|
||||
catchsql {
|
||||
SELECT * FROM v1 ORDER BY a;
|
||||
}
|
||||
} {0 {1 2 4 5 7 8}}
|
||||
do_test view-1.2 {
|
||||
catchsql {
|
||||
ROLLBACK;
|
||||
|
Reference in New Issue
Block a user