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:
@ -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
|
||||
|
Reference in New Issue
Block a user