Hi,
I am getting an SQLSyntaxErrorException when trying to create a report table. I am joining two tables and trying to display some simple data from those two tables, but I just get this error, which I assume is due to the SQL Query which is being built in the background.
The query it generates is:
select “DB_NAME”.“allocation_ticketallocation”.“status” as “status”, “DB_NAME”.“event_session”.“starts” as “starts”, sum(“DB_NAME”.“allocation_ticketallocation”.“id”) as “sum_id” from “DB_NAME”.“allocation_ticketallocation” right outer join “DB_NAME”.“event_session” on (“ZIPCITY_PRODUCTION”.“event_session”.“id” = “DB_NAME”.“allocation_ticketallocation”.“session_id”) group by “DB_NAME”.“allocation_ticketallocation”.“status”, “DB_NAME”.“event_session”.”starts"
And the Error shown is:
Error:SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘.“allocation_ticketallocation”.“status” as “status”,“DB_NAME”."eve’ at line 2
I can run this query fine in my normal SQL tool if I remove all the quotation marks, so I’d like to understand why it’s adding the quotation marks and if there is a setting or something I should change to prevent it?