-
Notifications
You must be signed in to change notification settings - Fork 697
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
Multiple join produce "DSL SYNTAX ERROR" #366
Comments
Exposed uses the first approach with |
Actually the bug is a little bit different and connected only with MySQL.
Actual SQL query (gets
Expected SQL query:
Got this bug when were trying to create innerJoin by recursion:
|
You can check SQL Syntax Error on SQL Fiddle: |
+1. Also got this bug on days (spent a week trying to investigate it). |
I guess it happens beacause MySql requires separate name for part inside braces. |
Thanks for workaround. But I still think it is not really an obvious behaviour. |
Fixed in master (added braces on right part of join if it is also join) |
When you try to do at least two joins you get something like
SELECT * FROM Table1 INNER JOIN Table2 INNER JOIN Table3 ON <cond1> ON <cond2>
which is incorrect DSL Syntax.Correct:
SELECT * FROM Table1 INNER JOIN Table2 ON <cond1> INNER JOIN Table3ON <cond2>
The text was updated successfully, but these errors were encountered: