-
-
Notifications
You must be signed in to change notification settings - Fork 108
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
Incorrect translate array parameter in where statement "IN" #256
Comments
Since the fix can cause a BC break, I will patch version 3.1. |
Hello, I have a similar issue. I have an Resulting query in intermediate form looks like this: However, after preprocessing the query changes to this: @dg Do you have any idea what causes the issue? I have been using nette/database for many years now and I haven't had any problems so far. Now I got stuck in this simple usecase and I am not able to solve it. I am using latest version 3.1.5. |
Could you create a working minimal example? Just the database dump and the code that causes the error. |
@dg While creating minimal example and comparing backtraces, I found it was indeed my error. In one middleware function I forgot to unpack arguments, which caused additional layer of array, which resulted in extra parentheses.Thank you for your assistance. |
Nette database 2.4.9 translates query code
into query
Query with placed IN at beginning is ok.
The text was updated successfully, but these errors were encountered: