Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix warning about version >= 3.41.0 requirement #11

Closed
wants to merge 1 commit into from

Conversation

mkly
Copy link

@mkly mkly commented Mar 9, 2023

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

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
@mkly
Copy link
Author

mkly commented Mar 9, 2023

Thank you for the great extension. I noticed an issue when setting this up with an older version of SQLite (3.38.x). I received the error but it seemed like it is intended to state above. This was confirmed when I upgraded my SQLite version to 3.41.0 and the extension worked as expected. Thanks again 🍻

@@ -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

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
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

mkly added a commit to mkly/sqlite-vss that referenced this pull request Jul 1, 2023
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 asg017#11
@mkly
Copy link
Author

mkly commented Jul 1, 2023

Closing in favor of #72

@mkly mkly closed this Jul 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants