1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-10 01:02:56 +03:00

Better error messages when trying to open a large file using a version

of SQLite that omits large file support.  Tickets #3096 and #3094. (CVS 5085)

FossilOrigin-Name: bdd89cd231745e6bd498b2751d7ff2cf6169b3eb
This commit is contained in:
drh
2008-05-05 16:56:34 +00:00
parent 4cea5baed6
commit 65594045d0
6 changed files with 29 additions and 24 deletions

View File

@@ -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.437 2008/05/01 17:03:49 drh Exp $
** $Id: main.c,v 1.438 2008/05/05 16:56:35 drh Exp $
*/
#include "sqliteInt.h"
#include <ctype.h>
@@ -306,7 +306,7 @@ const char *sqlite3ErrStr(int rc){
case SQLITE_CONSTRAINT: z = "constraint failed"; break;
case SQLITE_MISMATCH: z = "datatype mismatch"; break;
case SQLITE_MISUSE: z = "library routine called out of sequence";break;
case SQLITE_NOLFS: z = "kernel lacks large file support"; break;
case SQLITE_NOLFS: z = "large file support is disabled"; break;
case SQLITE_AUTH: z = "authorization denied"; break;
case SQLITE_FORMAT: z = "auxiliary database format error"; break;
case SQLITE_RANGE: z = "bind or column index out of range"; break;