0
0
mirror of https://github.com/sqlite/sqlite.git synced 2024-11-28 07:51:10 +01:00
sqlite/test/zeroblobfault.test
dan a32536b498 Fix the zeroblob() function and related APIs so that they work with SQLITE_OMIT_INCRBLOB builds.
FossilOrigin-Name: bc401a75dd9f3c29c5969ae36264e68ccefc0937e44e232ca1f6b550f7fd6e22
2021-11-08 19:35:26 +00:00

29 lines
686 B
Plaintext

# 2021 November 8
#
# The author disclaims copyright to this source code. In place of
# a legal notice, here is a blessing:
#
# May you do good and not evil.
# May you find forgiveness for yourself and forgive others.
# May you share freely, never taking more than you give.
#
#***********************************************************************
#
#
set testdir [file dirname $argv0]
source $testdir/tester.tcl
set testprefix zeroblobfault
set quoted_res [db one { SELECT quote(zeroblob(2000)) }]
do_faultsim_test 1 -prep {
sqlite3 db test.db
} -body {
execsql { SELECT quote(zeroblob(2000)) }
} -test {
faultsim_test_result [list 0 $::quoted_res]
}
finish_test