From 0123b249ea094c38b810f6719fc4994694112195 Mon Sep 17 00:00:00 2001 From: Alex Garcia Date: Tue, 19 Nov 2024 15:24:59 -0800 Subject: [PATCH] guard sqlite3_vtab_in --- sqlite-vec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sqlite-vec.c b/sqlite-vec.c index bac77d2..7488e7b 100644 --- a/sqlite-vec.c +++ b/sqlite-vec.c @@ -5504,7 +5504,6 @@ static int vec0BestIndex(sqlite3_vtab *pVTab, sqlite3_index_info *pIdxInfo) { if (sqlite3_libversion_number() >= 3038000) { vtabIn = sqlite3_vtab_in(pIdxInfo, i, -1); } - #endif if(vtabIn) { switch(p->metadata_columns[metadata_idx].kind) { 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; sqlite3_vtab_in(pIdxInfo, i, 1); } + #endif else { value = VEC0_PARTITION_OPERATOR_EQ; }