1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-12-24 14:17:58 +03:00

Better error message on an SQLITE_RANGE error. Ticket #991. (CVS 2124)

FossilOrigin-Name: accd432e4d9626353e555e63298fb7a56a41e53d
This commit is contained in:
drh
2004-11-20 20:18:55 +00:00
parent bf128941d0
commit b08153d0fb
5 changed files with 18 additions and 18 deletions

View File

@@ -11,7 +11,7 @@
# This file implements regression tests for SQLite library. The
# focus of this script testing the sqlite_bind API.
#
# $Id: bind.test,v 1.22 2004/11/14 21:56:31 drh Exp $
# $Id: bind.test,v 1.23 2004/11/20 20:18:55 drh Exp $
#
set testdir [file dirname $argv0]
@@ -272,11 +272,11 @@ do_test bind-8.1 {
} {1}
do_test bind-8.2 {
sqlite3_errmsg $DB
} {bind index out of range}
} {bind or column index out of range}
ifcapable {utf16} {
do_test bind-8.3 {
encoding convertfrom unicode [sqlite3_errmsg16 $DB]
} {bind index out of range}
} {bind or column index out of range}
}
do_test bind-8.4 {
sqlite3_bind_null $VM 1
@@ -287,11 +287,11 @@ do_test bind-8.5 {
} {1}
do_test bind-8.6 {
sqlite3_errmsg $DB
} {bind index out of range}
} {bind or column index out of range}
ifcapable {utf16} {
do_test bind-8.7 {
encoding convertfrom unicode [sqlite3_errmsg16 $DB]
} {bind index out of range}
} {bind or column index out of range}
}
do_test bind-8.8 {

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.24 2004/11/16 15:50:21 danielk1977 Exp $
# $Id: capi3.test,v 1.25 2004/11/20 20:18:55 drh Exp $
#
set testdir [file dirname $argv0]
@@ -595,7 +595,7 @@ SQLITE_MISUSE {library routine called out of sequence} \
SQLITE_NOLFS {kernel lacks large file support} \
SQLITE_AUTH {authorization denied} \
SQLITE_FORMAT {auxiliary database format error} \
SQLITE_RANGE {bind index out of range} \
SQLITE_RANGE {bind or column index out of range} \
SQLITE_NOTADB {file is encrypted or is not a database} \
unknownerror {unknown error} \
]