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

Testing coverage enhancements to sqlite3_get_table() and to the SELECT

code generator. (CVS 4746)

FossilOrigin-Name: 45c59802f6d35c7745b96c578ab43d5a336fe822
This commit is contained in:
drh
2008-01-23 14:51:49 +00:00
parent 01495b9921
commit d2b3e23bc3
8 changed files with 74 additions and 96 deletions

View File

@ -12,7 +12,7 @@
# focus of this file is testing the sqlite_exec_printf() and
# sqlite_get_table_printf() APIs.
#
# $Id: tableapi.test,v 1.14 2008/01/23 12:52:41 drh Exp $
# $Id: tableapi.test,v 1.15 2008/01/23 14:51:50 drh Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
@ -66,6 +66,12 @@ do_test tableapi-2.3.3 {
SELECT * FROM xyz WHERE a>47 ORDER BY a; invalid
} {}
} {1 {near "invalid": syntax error}}
do_test tableapi-2.3.4 {
breakpoint
sqlite3_get_table_printf $::dbx {
SELECT * FROM xyz WHERE a>47 ORDER BY a
} {} 8
} {0 a b 48 (48) 49 (49) 50 (50)}
do_test tableapi-2.4 {
set manyquote ''''''''
append manyquote $manyquote