mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-01 06:27:03 +03:00
Remove undocumented extensions from sqlite_mprintf() and friends in order to
make it about 10% smaller. (CVS 1207) FossilOrigin-Name: 0b3f552b986fd89c48c350b0746be93b9d276ecc
This commit is contained in:
@ -11,7 +11,7 @@
|
||||
# This file implements regression tests for SQLite library. The
|
||||
# focus of this file is testing the sqlite_*_printf() interface.
|
||||
#
|
||||
# $Id: printf.test,v 1.6 2003/06/16 03:08:19 drh Exp $
|
||||
# $Id: printf.test,v 1.7 2004/02/02 12:29:25 drh Exp $
|
||||
|
||||
set testdir [file dirname $argv0]
|
||||
source $testdir/tester.tcl
|
||||
@ -107,9 +107,6 @@ do_test printf-5.1 {
|
||||
do_test printf-5.2 {
|
||||
sqlite_mprintf_str {%d %d (%-10.10s) %} -9 -10 {HelloHelloHello}
|
||||
} {-9 -10 (HelloHello) %}
|
||||
do_test printf-5.3 {
|
||||
sqlite_mprintf_str {%% %d %d (%=10s)} 5 6 Hello
|
||||
} {% 5 6 ( Hello )}
|
||||
|
||||
do_test printf-6.1 {
|
||||
sqlite_mprintf_z_test , one two three four five six
|
||||
|
@ -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.6 2003/09/09 00:47:47 drh Exp $
|
||||
# $Id: tableapi.test,v 1.7 2004/02/02 12:29:25 drh Exp $
|
||||
|
||||
set testdir [file dirname $argv0]
|
||||
source $testdir/tester.tcl
|
||||
@ -62,7 +62,14 @@ do_test tableapi-2.3.2 {
|
||||
} {}
|
||||
} {0 3 2 a b 48 (48) 49 (49) 50 (50)}
|
||||
do_test tableapi-2.4 {
|
||||
set ::big_str [sqlite_mprintf_str {%500'* Hello %500'*} 0 0 {}]
|
||||
set manyquote ''''''''
|
||||
append manyquote $manyquote
|
||||
append manyquote $manyquote
|
||||
append manyquote $manyquote
|
||||
append manyquote $manyquote
|
||||
append manyquote $manyquote
|
||||
append manyquote $manyquote
|
||||
set ::big_str "$manyquote Hello $manyquote"
|
||||
sqlite_get_table_printf $::dbx {
|
||||
INSERT INTO xyz VALUES(51,'%q')
|
||||
} $::big_str
|
||||
@ -120,7 +127,6 @@ do_test tableapi-3.3.2 {
|
||||
} {}
|
||||
} {0 3 2 a b 48 (48) 49 (49) 50 (50)}
|
||||
do_test tableapi-3.4 {
|
||||
set ::big_str [sqlite_mprintf_str {%500'* Hello %500'*} 0 0 {}]
|
||||
sqlite_get_table_printf $::dbx {
|
||||
INSERT INTO xyz VALUES(51,'%q')
|
||||
} $::big_str
|
||||
|
Reference in New Issue
Block a user