From 87538bf3b58a6905fc3afdb7df9f978695d9f2ce Mon Sep 17 00:00:00 2001 From: Mike Lay Date: Sat, 1 Jul 2023 16:23:33 -0700 Subject: [PATCH] Fix warning about version >= 3.41.0 requirement Current message states that SQLite version needs to be below 3.41.0 for 2nd parameter when in fact it needs to be at or above. * Change messaging to be at or above as that is the requirement set in the parent if statement * Update minor grammatical issue Closes #11 --- src/sqlite-vss.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sqlite-vss.cpp b/src/sqlite-vss.cpp index c3dea23..283f291 100644 --- a/src/sqlite-vss.cpp +++ b/src/sqlite-vss.cpp @@ -946,8 +946,8 @@ static int vssIndexFilter(sqlite3_vtab_cursor *pVtabCursor, // https://sqlite.org/forum/info/6b32f818ba1d97ef sqlite3_free(pVtabCursor->pVtab->zErrMsg); pVtabCursor->pVtab->zErrMsg = sqlite3_mprintf( - "vss_search() only support vss_search_params() as a " - "2nd parameter for SQLite versions below 3.41.0"); + "vss_search() only supports vss_search_params() as a " + "2nd parameter for SQLite versions at or above 3.41.0"); return SQLITE_ERROR; } else if ((query_vector = pCursor->table->vector_api->xValueAsVector(