From 9258b9900ead4d9a2bee3e7e9bfca8a9de56b206 Mon Sep 17 00:00:00 2001 From: Mike Lay Date: Thu, 9 Mar 2023 12:16:06 -0800 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 --- src/extension.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/extension.cpp b/src/extension.cpp index 12750a1..ce6f844 100644 --- a/src/extension.cpp +++ b/src/extension.cpp @@ -813,7 +813,7 @@ static int vssIndexFilter( // https://sqlite.org/forum/info/6b32f818ba1d97ef else if(sqlite3_libversion_number() < 3041000) { 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"); + pVtabCursor->pVtab->zErrMsg = sqlite3_mprintf("vss_search() only support vss_search_params() as a 2nd parameter for SQLite versions at or above 3.41.0"); return SQLITE_ERROR; } else if ((query_vector = pCur->table->vector_api->xValueAsVector(argv[0])) != NULL) { @@ -1293,4 +1293,4 @@ extern "C" { } } -#pragma endregion \ No newline at end of file +#pragma endregion