mirror of
https://github.com/sqlite/sqlite.git
synced 2025-09-11 08:30:57 +03:00
Improve vdbe branch coverage of NULLS LAST code.
FossilOrigin-Name: e8e9f77d52974f6ba0a536d05837b280a996745deb3a2169bb29379f10e49df4
This commit is contained in:
@@ -236,6 +236,17 @@ do_eqp_test 6.2.2 {
|
||||
`--SEARCH TABLE t5 USING COVERING INDEX t5ab (a=?)
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
do_execsql_test 7.0 {
|
||||
CREATE TABLE t71(a, b, c);
|
||||
CREATE INDEX t71abc ON t71(a, b, c);
|
||||
|
||||
SELECT * FROM t71 WHERE a=1 AND b=2 ORDER BY c NULLS LAST;
|
||||
SELECT * FROM t71 WHERE a=1 AND b=2 ORDER BY c DESC NULLS FIRST;
|
||||
|
||||
SELECT * FROM t71 ORDER BY a NULLS LAST;
|
||||
SELECT * FROM t71 ORDER BY a DESC NULLS FIRST;
|
||||
}
|
||||
|
||||
finish_test
|
||||
|
||||
|
Reference in New Issue
Block a user