]> git.ipfire.org Git - thirdparty/sqlite.git/commit
In the WhereClause object, do not assume that all TERM_VIRTUAL terms appear
authordrh <>
Wed, 8 Dec 2021 16:07:22 +0000 (16:07 +0000)
committerdrh <>
Wed, 8 Dec 2021 16:07:22 +0000 (16:07 +0000)
commit132f96fc75496d93cc01be7dabb11eea55bddea2
tree9b6da42488acb2d1def17c31a77df9fcbf42b2fc
parentc436b3056d8da290fbd5870cea45e7547394051a
In the WhereClause object, do not assume that all TERM_VIRTUAL terms appear
at the end of the list, because that is no longer true.  Instead, keep a
separate nBase count that is the size of the list excluding the tail of
virtual terms.  Use nBase instead of nTerm when scanning terms that are not
virtual.  Add assert()s to validate correctness of WhereClause.

FossilOrigin-Name: 6024682ca467fa4fe49608772b0bbfa2f8a419b32cebfa715941073c8b29da49
manifest
manifest.uuid
src/where.c
src/whereInt.h
src/wherecode.c
src/whereexpr.c