fix sqlcipher_export handling of NULL parameters

This commit is contained in:
Stephen Lombardo
2021-01-13 17:24:33 -05:00
parent ba14070de1
commit cb71f53e8c
2 changed files with 45 additions and 3 deletions
+26
View File
@@ -444,6 +444,32 @@ do_test export-error {
db close
file delete -force test.db
# verify sqlcipher_export with NULL parameters
do_test export-nulls {
sqlite_orig db test.db
catchsql {
SELECT sqlcipher_export(NULL);
}
} {1 {target database can't be NULL}}
db close
file delete -force test.db
do_test export-nulls {
sqlite_orig db test.db
catchsql {
SELECT sqlcipher_export('main', NULL);
}
} {1 {target database can't be NULL}}
db close
file delete -force test.db
# use the sqlcipher_export function
# use the sqlcipher_export function
# to copy a complicated database.
# tests autoincrement fields,