mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-18 10:21:03 +03:00
Do not attempt to limit the number of columns used in a table to a prefix
if the table will be used to construct an automatic index or bloom filter. dbsqlfuzz 787d9bd73164c6f0c85469e2e48b2aff19af6938. FossilOrigin-Name: f8766231d2a77bb8b95726b514736d4c2d20b056f7fe60bdbc98ebf5e5b15ae9
This commit is contained in:
@@ -5681,6 +5681,7 @@ WhereInfo *sqlite3WhereBegin(
|
||||
if( pWInfo->eOnePass==ONEPASS_OFF
|
||||
&& pTab->nCol<BMS
|
||||
&& (pTab->tabFlags & (TF_HasGenerated|TF_WithoutRowid))==0
|
||||
&& (pLoop->wsFlags & (WHERE_AUTO_INDEX|WHERE_BLOOMFILTER))==0
|
||||
){
|
||||
/* If we know that only a prefix of the record will be used,
|
||||
** it is advantageous to reduce the "column count" field in
|
||||
|
||||
Reference in New Issue
Block a user