mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-07 02:42:48 +03:00
Fix error message returned when a database cannot be opened. (CVS 1739)
FossilOrigin-Name: 440bfd2ac57d228d10913aca81ca8c6d7f38aa61
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
** other files are for internal use by SQLite and should not be
|
||||
** accessed by users of the library.
|
||||
**
|
||||
** $Id: main.c,v 1.235 2004/06/26 09:50:12 danielk1977 Exp $
|
||||
** $Id: main.c,v 1.236 2004/06/26 10:02:16 danielk1977 Exp $
|
||||
*/
|
||||
#include "sqliteInt.h"
|
||||
#include "os.h"
|
||||
@@ -844,7 +844,10 @@ const char *sqlite3_errmsg(sqlite3 *db){
|
||||
*/
|
||||
return sqlite3ErrStr(SQLITE_NOMEM);
|
||||
}
|
||||
if( db->magic!=SQLITE_MAGIC_OPEN && db->magic!=SQLITE_MAGIC_BUSY ){
|
||||
if( db->magic!=SQLITE_MAGIC_OPEN &&
|
||||
db->magic!=SQLITE_MAGIC_BUSY &&
|
||||
db->magic!=SQLITE_MAGIC_CLOSED
|
||||
){
|
||||
return sqlite3ErrStr(SQLITE_MISUSE);
|
||||
}
|
||||
if( !sqlite3_value_text(db->pErr) ){
|
||||
|
Reference in New Issue
Block a user