-
Notifications
You must be signed in to change notification settings - Fork 22
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
SQL Error on ManyToMany #58
Comments
pmjones
pushed a commit
that referenced
this issue
Jun 5, 2017
…rds to match against, pre-emptively return an empty array instead of issuing an empty IN() query Fixes #58.
@jelofson Check out the |
@pmjones On my initial test, that looks like it's fixed. Thanks! |
Sweet. Merging now. |
Merged
pmjones
pushed a commit
that referenced
this issue
Jun 6, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using the scenario of threads, tags, and taggings, and we try the following:
If there are no associated tags for the post, then the query will fail (in mysql). Works in sqlite, so tests seem to pass.
What appears to happen is the 3rd query that is prepared will look something like this:
and MySQL will throw a syntax error (NOTE that sqlite does not return an error here)
Perhaps the query for tags should be issued, given that there are no taggings returned.
The text was updated successfully, but these errors were encountered: