1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-27 20:41:58 +03:00

Fix DBSTAT so that it returns now rows, rather than an error when the

WHERE clause is "schema=NULL".

FossilOrigin-Name: 5b246b47aeadc25dbec0956e2d6edcd49fbe874a01734fdf15b770507648222d
This commit is contained in:
drh
2020-01-04 19:14:48 +00:00
parent 17aceebab7
commit 2e5beddb34
4 changed files with 15 additions and 15 deletions

View File

@ -303,16 +303,16 @@ do_execsql_test 8.1 {
CREATE VIRTUAL TABLE st4 USING dbstat;
}
do_execsql_test 8.2 {
SELECT * FROM st4 WHERE st4.aggregate = NULL
SELECT * FROM st4 WHERE st4.aggregate = NULL;
}
do_execsql_test 8.3 {
SELECT aggregate=1 FROM st4 WHERE aggregate = 5
}
do_execsql_test 8.4 {
SELECT * FROM st4 WHERE name = NULL;
}
do_catchsql_test 8.5 {
} {}
do_execsql_test 8.5 {
SELECT * FROM st4 WHERE schema = NULL;
} {1 {no such schema: }}
} {}
finish_test