Update error message text for standard error codes to better describe the
latest usage of those error codes. Modify sqlite3_open_v2() so that it does return a valid sqlite3 object in the event of SQLITE_MISUSE due to bad open flags, so that sqlite3_errmsg() does not report "out of memory" in that case. FossilOrigin-Name: f27b6370407842e2c175ea4aa9ce018723c57eaac0cccc1f8399bc20f33324be
This commit is contained in:
+2
-2
@@ -218,8 +218,8 @@ proc create_db_file {nByte} {
|
||||
|
||||
foreach {nByte res} {
|
||||
1 {0 {}}
|
||||
2 {1 {file is encrypted or is not a database}}
|
||||
3 {1 {file is encrypted or is not a database}}
|
||||
2 {1 {file is not a database}}
|
||||
3 {1 {file is not a database}}
|
||||
} {
|
||||
do_test 7.$nByte {
|
||||
create_db_file $nByte
|
||||
|
||||
Reference in New Issue
Block a user