-
-
Notifications
You must be signed in to change notification settings - Fork 117
table.search(..., quote=True)
parameter and sqlite-utils search --quote
option
#296
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
Comments
This is a good call. I have a fix for this in Datasette but it's not in |
I think I'll do this as an optional Actually I'll do |
table.search(..., quote=True)
parameter
Also add |
This error message could suggest retrying with |
table.search(..., quote=True)
parametertable.search(..., quote=True)
parameter and sqlite-utils search --quote
option
|
Hi,
Recently got this error:
So, the error seems to suggest there was a "." character somewhere in the SQL command that was causing the error. I did a little digging and found this in the docs: https://www.sqlite.org/fts5.html#fts5_strings. "." is one of the many prohibited characters.
My solution was to just strip these out of the query using this line
query = query.translate({e: None for e in itertools.chain(range(0,26), range(27, 48), range(58,65), range(91,95), [96], range(123,128))})
Perhaps this could be included into the
table.search()
function?The text was updated successfully, but these errors were encountered: