1
0
mirror of https://github.com/sqlite/sqlite.git synced 2026-01-06 08:01:16 +03:00

Additional coverage testing. Fix a segfault following OOM in

sqltie3_load_extension(). (CVS 5523)

FossilOrigin-Name: f1e44eb323f05495cbae25113aebcc50d16b40df
This commit is contained in:
drh
2008-08-02 03:50:39 +00:00
parent c890fec362
commit 701bb3b4f0
22 changed files with 217 additions and 108 deletions

View File

@@ -12,7 +12,7 @@
# focus of this file is testing the LIMIT ... OFFSET ... clause
# of SELECT statements.
#
# $Id: limit.test,v 1.31 2008/01/16 18:20:42 danielk1977 Exp $
# $Id: limit.test,v 1.32 2008/08/02 03:50:39 drh Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
@@ -445,4 +445,28 @@ do_test limit-11.1 {
} {}
} ;# ifcapable subquery
# Test error processing.
#
do_test limit-12.1 {
catchsql {
SELECT * FROM t1 LIMIT replace(1)
}
} {1 {wrong number of arguments to function replace()}}
do_test limit-12.2 {
catchsql {
SELECT * FROM t1 LIMIT 5 OFFSET replace(1)
}
} {1 {wrong number of arguments to function replace()}}
do_test limit-12.3 {
catchsql {
SELECT * FROM t1 LIMIT x
}
} {1 {no such column: x}}
do_test limit-12.4 {
catchsql {
SELECT * FROM t1 LIMIT 1 OFFSET x
}
} {1 {no such column: x}}
finish_test