mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-01 06:27:03 +03:00
Fix a possible NULL pointer dereference caused by using a "VALUES(...)" as a component of a compound SELECT with non-integer ORDER BY clause terms.
FossilOrigin-Name: 9d791116420f4e3f613775569e0a0cba2fc22da568b2fb2df920bcf9c9002938
This commit is contained in:
@ -558,5 +558,9 @@ do_execsql_test 10.0 {
|
||||
SELECT b, rowid, '^' FROM t10 ORDER BY b, a LIMIT 4;
|
||||
} {2 1 ^ 4 3 ^ 4 4 ^ 7 5 ^}
|
||||
|
||||
do_catchsql_test 11.0 {
|
||||
VALUES(2) EXCEPT SELECT '' ORDER BY abc
|
||||
} {1 {1st ORDER BY term does not match any column in the result set}}
|
||||
|
||||
|
||||
finish_test
|
||||
|
Reference in New Issue
Block a user