mirror of
https://github.com/status-im/sqlcipher.git
synced 2026-08-30 22:11:14 +00:00
upstream 3.7.9
This commit is contained in:
+14
-2
@@ -260,6 +260,18 @@ do_test table-5.2 {
|
||||
catchsql {DROP TABLE IF EXISTS sqlite_master}
|
||||
} {1 {table sqlite_master may not be dropped}}
|
||||
|
||||
# Dropping sqlite_statN tables is OK.
|
||||
#
|
||||
do_test table-5.2.1 {
|
||||
db eval {
|
||||
ANALYZE;
|
||||
DROP TABLE IF EXISTS sqlite_stat1;
|
||||
DROP TABLE IF EXISTS sqlite_stat2;
|
||||
DROP TABLE IF EXISTS sqlite_stat3;
|
||||
SELECT name FROM sqlite_master WHERE name GLOB 'sqlite_stat*';
|
||||
}
|
||||
} {}
|
||||
|
||||
# Make sure an EXPLAIN does not really create a new table
|
||||
#
|
||||
do_test table-5.3 {
|
||||
@@ -667,8 +679,8 @@ ifcapable attach {
|
||||
# Now attach a database and ensure that a table can be created in the
|
||||
# attached database whilst in a callback from a query on the main database.
|
||||
do_test table-14.3 {
|
||||
file delete -force test2.db
|
||||
file delete -force test2.db-journal
|
||||
forcedelete test2.db
|
||||
forcedelete test2.db-journal
|
||||
execsql {
|
||||
ATTACH 'test2.db' as aux;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user