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

Ensure that the Tcl "db onecolumn" command returns an empty string if the SELECT statement returns zero rows.

FossilOrigin-Name: 928bcaf0f00a408e2f6c1d85dfab214457f52ad5
This commit is contained in:
dan
2011-08-18 17:47:57 +00:00
parent 6a3eb4aef3
commit d5f12cd54d
4 changed files with 22 additions and 9 deletions

View File

@ -617,5 +617,16 @@ ifcapable tclvar {
} {31323334 blob}
}
db func xCall xCall
proc xCall {} { return "value" }
do_execsql_test tcl-14.1 {
CREATE TABLE t6(x);
INSERT INTO t6 VALUES(1);
}
do_test tcl-14.2 {
db one {SELECT x FROM t6 WHERE xCall()!='value'}
} {}
finish_test