Improve the error message associated with SQLITE_FULL. Ticket #1353.

Also remove error messages for obsolete error codes SQLITE_INTERNAL,
SQLITE_NOTFOUND, and SQLITE_TOOBIG. (CVS 2580)

FossilOrigin-Name: fa7403c7d9948cc4a6c6ed00a614e3d6a3682e78
This commit is contained in:
drh
2005-08-11 02:10:18 +00:00
parent 4dcbdbff40
commit 2db0bbc24b
11 changed files with 32 additions and 49 deletions
+2 -2
View File
@@ -11,7 +11,7 @@
# This file implements regression tests for SQLite library. The
# focus of this script is testing the AUTOINCREMENT features.
#
# $Id: autoinc.test,v 1.6 2005/06/14 02:12:46 drh Exp $
# $Id: autoinc.test,v 1.7 2005/08/11 02:10:19 drh Exp $
#
set testdir [file dirname $argv0]
@@ -480,7 +480,7 @@ do_test autoinc-6.2 {
catchsql {
INSERT INTO t6 VALUES(NULL,1);
}
} {1 {database is full}}
} {1 {database or disk is full}}
# Allow the AUTOINCREMENT keyword inside the parentheses
# on a separate PRIMARY KEY designation.
+2 -5
View File
@@ -11,7 +11,7 @@
# This file implements regression tests for SQLite library. The
# focus of this script testing the callback-free C/C++ API.
#
# $Id: capi3.test,v 1.33 2005/06/06 17:54:56 drh Exp $
# $Id: capi3.test,v 1.34 2005/08/11 02:10:19 drh Exp $
#
set testdir [file dirname $argv0]
@@ -575,7 +575,6 @@ file delete -force test.db-journal
set code2english [list \
SQLITE_OK {not an error} \
SQLITE_ERROR {SQL logic error or missing database} \
SQLITE_INTERNAL {internal SQLite implementation flaw} \
SQLITE_PERM {access permission denied} \
SQLITE_ABORT {callback requested query abort} \
SQLITE_BUSY {database is locked} \
@@ -585,13 +584,11 @@ SQLITE_READONLY {attempt to write a readonly database} \
SQLITE_INTERRUPT {interrupted} \
SQLITE_IOERR {disk I/O error} \
SQLITE_CORRUPT {database disk image is malformed} \
SQLITE_NOTFOUND {table or record not found} \
SQLITE_FULL {database is full} \
SQLITE_FULL {database or disk is full} \
SQLITE_CANTOPEN {unable to open database file} \
SQLITE_PROTOCOL {database locking protocol failure} \
SQLITE_EMPTY {table contains no data} \
SQLITE_SCHEMA {database schema has changed} \
SQLITE_TOOBIG {too much data for one table row} \
SQLITE_CONSTRAINT {constraint failed} \
SQLITE_MISMATCH {datatype mismatch} \
SQLITE_MISUSE {library routine called out of sequence} \
+3 -3
View File
@@ -12,7 +12,7 @@
# focus of this file is testing for correct handling of disk full
# errors.
#
# $Id: diskfull.test,v 1.1 2004/10/01 14:38:03 drh Exp $
# $Id: diskfull.test,v 1.2 2005/08/11 02:10:19 drh Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
@@ -29,12 +29,12 @@ do_test diskfull-1.2 {
catchsql {
INSERT INTO t1 SELECT * FROM t1;
}
} {1 {database is full}}
} {1 {database or disk is full}}
do_test diskfull-1.3 {
set sqlite_diskfull_pending 1
catchsql {
DELETE FROM t1;
}
} {1 {database is full}}
} {1 {database or disk is full}}
finish_test