Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/extension.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While you're there anyways:

Suggested change
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");
pVtabCursor->pVtab->zErrMsg = sqlite3_mprintf("vss_search() only supports vss_search_params() as a 2nd parameter for SQLite versions at or above 3.41.0");

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for taking a look. Both changes are updated in a new PR to make things cleaner to review. See #72

return SQLITE_ERROR;
}
else if ((query_vector = pCur->table->vector_api->xValueAsVector(argv[0])) != NULL) {
Expand Down Expand Up @@ -1293,4 +1293,4 @@ extern "C" {
}
}

#pragma endregion
#pragma endregion