Closed jereze closed 5 years ago
For your solution to work you need this setting: https://dev.mysql.com/doc/refman/8.0/en/sql-mode.html#sqlmode_ansi_quotes The appropriate way to quote identifiers in MySQL is using backticks: `
Good catch. Thanks.
So does it work when you change to use backticks? e.g. changing
(' AS ' . $columnas)
to
(" AS `$columnas`")
I've pushed a fix for this. Thanks for reporting, @jereze!
Hello,
We upgraded our mysql to version 8.0.
When opening any user profile (https://answers.dataiku.com/user/any_user), we get an error:
A Question2Answer database query failed when generating this page. A full description of the failure is available in the web server's error log file.
In the logs, we have the following error:
The SQL query is invalid and it seems that the problem is with
rank
, a new reserved keyword. Quoting the column name solves the issue.I tried a quick fix, replacing line 552 of
qa-db.php
with the following:It seems that it works.