mirror of
https://github.com/sqlite/sqlite.git
synced 2025-07-30 19:03:16 +03:00
Fix a (harmless) off-by-one error in code generation that comes up when
doing a DISTINCT query against a virtual table with an OR term in the WHERE clause and where the ORDER BY clause has 64 or more references to the result set. [forum:/forumpost/dfe8084751|Forum post dfe8084751]. FossilOrigin-Name: 04af7ef77043702f93cbff23548610759786893bd3d4d6fc08181e1e249c6663
This commit is contained in:
@ -1618,4 +1618,19 @@ do_execsql_test where-28.1 {
|
||||
19 5
|
||||
}
|
||||
|
||||
# 2022-12-07 Yong Heng [https://sqlite.org/forum/forumpost/dfe8084751]
|
||||
#
|
||||
do_execsql_test where-29.1 {
|
||||
SELECT DISTINCT 'xyz' FROM pragma_cache_size
|
||||
WHERE rowid OR abs(0)
|
||||
ORDER BY
|
||||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
||||
1, 1, 1, 1;
|
||||
} {xyz}
|
||||
|
||||
finish_test
|
||||
|
Reference in New Issue
Block a user