mirror of
https://github.com/sqlite/sqlite.git
synced 2026-01-06 08:01:16 +03:00
Clarify documentation on the return value from sqlite3_column_blob() for
a zero-length BLOB. Clarify the documentation on what happens when you have a zeroblob() with a negative length. Additional test cases but no changes to code. Ticket #2623. (CVS 4395) FossilOrigin-Name: 63ca02a5b2700858f0eceadc9b58b942d473b191
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
# including the sqlite3_bind_zeroblob(), sqlite3_result_zeroblob(),
|
||||
# and the built-in zeroblob() SQL function.
|
||||
#
|
||||
# $Id: zeroblob.test,v 1.8 2007/09/01 16:16:16 danielk1977 Exp $
|
||||
# $Id: zeroblob.test,v 1.9 2007/09/04 12:18:42 drh Exp $
|
||||
|
||||
set testdir [file dirname $argv0]
|
||||
source $testdir/tester.tcl
|
||||
@@ -174,7 +174,13 @@ do_test zeroblob-6.4 {
|
||||
} {1 {string or blob too big}}
|
||||
do_test zeroblob-6.5 {
|
||||
catchsql {select zeroblob(2147483648)}
|
||||
} {1 {string or blob too big}}
|
||||
} {1 {string or blob too big}}
|
||||
do_test zeroblob-6.6 {
|
||||
execsql {select hex(zeroblob(-1))}
|
||||
} {{}}
|
||||
do_test zeroblob-6.7 {
|
||||
execsql {select typeof(zeroblob(-1))}
|
||||
} {blob}
|
||||
|
||||
# Test bind_zeroblob()
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user