1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-27 20:41:58 +03:00

Add the SQLITE_NOTADB return code for cases when you try to open a file

that does not even remotely resemble an SQLite database file. (CVS 1233)

FossilOrigin-Name: 0c77cee70f078152969933c1d340cea1c86286b0
This commit is contained in:
drh
2004-02-12 19:01:04 +00:00
parent 4d189ca48f
commit c602f9ae01
6 changed files with 18 additions and 16 deletions

View File

@ -12,7 +12,7 @@
# focus of this file is testing the ability of the library to detect
# past or future file format version numbers and respond appropriately.
#
# $Id: version.test,v 1.8 2002/09/02 12:14:51 drh Exp $
# $Id: version.test,v 1.9 2004/02/12 19:01:05 drh Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
@ -192,7 +192,7 @@ do_test version-2.2 {
close $fd
set rc [catch {sqlite db test.db} msg]
lappend rc $msg
} {1 {database disk image is malformed}}
} {1 {file is encrypted or is not a database}}
finish_test