mirror of
https://github.com/asg017/sqlite-vec.git
synced 2026-05-02 12:22:41 +02:00
guard sqlite3_vtab_in
This commit is contained in:
parent
d0993b7496
commit
0123b249ea
1 changed files with 1 additions and 1 deletions
|
|
@ -5504,7 +5504,6 @@ static int vec0BestIndex(sqlite3_vtab *pVTab, sqlite3_index_info *pIdxInfo) {
|
||||||
if (sqlite3_libversion_number() >= 3038000) {
|
if (sqlite3_libversion_number() >= 3038000) {
|
||||||
vtabIn = sqlite3_vtab_in(pIdxInfo, i, -1);
|
vtabIn = sqlite3_vtab_in(pIdxInfo, i, -1);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
if(vtabIn) {
|
if(vtabIn) {
|
||||||
switch(p->metadata_columns[metadata_idx].kind) {
|
switch(p->metadata_columns[metadata_idx].kind) {
|
||||||
case VEC0_METADATA_COLUMN_KIND_FLOAT:
|
case VEC0_METADATA_COLUMN_KIND_FLOAT:
|
||||||
|
|
@ -5523,6 +5522,7 @@ static int vec0BestIndex(sqlite3_vtab *pVTab, sqlite3_index_info *pIdxInfo) {
|
||||||
value = VEC0_METADATA_OPERATOR_IN;
|
value = VEC0_METADATA_OPERATOR_IN;
|
||||||
sqlite3_vtab_in(pIdxInfo, i, 1);
|
sqlite3_vtab_in(pIdxInfo, i, 1);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
else {
|
else {
|
||||||
value = VEC0_PARTITION_OPERATOR_EQ;
|
value = VEC0_PARTITION_OPERATOR_EQ;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue