-
Notifications
You must be signed in to change notification settings - Fork 1.1k
MATCH queries *silently* fail #279
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
v0.5.0 on cdnjs seem to report errors correctly, but I haven't had the opportunity to test (1). |
Yes, I would happily accept a pull request for this |
What about the regression on (2) with the master branch? Do you have any ideas about that? |
I've been tracking this down since the morning, and found this: By adding a |
I wasn't aware that I broke error handling on master, and would welcome a test. This is odd. Do you have a minimal repro? What is the call stack when the error is thrown? Are you in a promise chain? If so, is it perhaps a case of not having a catch on the promise? Ah, I just tried this on the official demo. That looks like we don't have a catch on the promise to display the error:
Are you only seeing this on the worker examples or in the non-worker builds too? |
With regards to FTS, you can see the compilation flags we're using here: https://raw.githubusercontent.com/kripken/sql.js/master/Makefile It looks like it's enabling FTS3 via these? I know surprisingly little about SQLite, so it's possible that we're not enabling FTS4? I haven't taken the time to investigate. If you can compile your own version, you could look at adding your own compilation flags to enable FTS4 to see if that is the issue. |
Worker examples only. I use the official GUI example.
I can file a new issue for this if you wish. Would be great to fix this as soon as possible whilst I am investigating why MATCH queries fail.
Indeed, and no: "enabling FTS3 also makes FTS4 available. There is not a separate SQLITE_ENABLE_FTS4 compile-time option. A build of SQLite either supports both FTS3 and FTS4 or it supports neither."[1] |
I just ran into the lack of error-reporting in the worker builds as well. If it helps narrow things down, I've confirmed that the non-worker builds do throw errors properly (or at least |
I am trying to do a full-text search using FTS4, but for some reason my queries with
MATCH
keyword fails. I have tried both asm and wasm versions with debug and production builds but the result is the same.The worst is that sql.js does not indicate errors by any means! You can try it on the official demo too: modify the command such that it must fail, and observe how nothing is reported.
So my questions are:
MATCH
queries fail?It might be wise to write some tests to ensure this won't happen again. I'll be happy to contribute if you are interested too.
The text was updated successfully, but these errors were encountered: