DBeaver 25.0.5.202505181758 Misparses Valid Unquoted Alias year_month
as Syntax Error with MySQL 8.0.35
#38276
-
DescriptionEnvironment:
Problem Description: The issue seems specific to the exact unquoted identifier Thank you for your great work on DBeaver! We hope this detailed report helps in identifying and resolving this specific parsing behavior. DBeaver Version25.0.5.202505181758 Operating SystemWindows 11 Database and driverNo response Steps to reproduceSteps to Reproduce:
Expected Behavior: Actual Behavior:
(Note: The same error occurs with more complex queries, for example: SELECT
DATE_FORMAT(SETUP_DATETIME, '%Y-%m') AS year_month,
COUNT(*) AS total_entries
FROM
game -- (assuming 'game' table with 'SETUP_DATETIME' column exists)
GROUP BY
year_month; This also results in a 1064 error pointing near Additional contextAdditional Context / Working Examples:
Hypothesis: Workarounds:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
DBeaver sends your query to the database as is. The error that you receive is the database response. |
Beta Was this translation helpful? Give feedback.
-
Hi @E1izabeth Thank you very much for the quick response and the link to the MySQL reserved keywords documentation. You are absolutely correct, and I sincerely apologize for the oversight. I had re-checked the list, but somehow completely missed With It seems I might have been a bit overly confident in some earlier checks and discussion, perhaps relying too much on an AI assistant's initial (and in this case, incorrect) confirmation that it wasn't reserved. A good lesson to always go back to the primary source documentation! Thank you again for your time and for setting me straight on this. I appreciate your help and will close this issue. Best regards |
Beta Was this translation helpful? Give feedback.
DBeaver sends your query to the database as is. The error that you receive is the database response.
year_month
is a reserved word and can't be used without backticks (You can check it in a full list of the reserved words in MySQL docs https://dev.mysql.com/doc/refman/8.4/en/keywords.html#keywords-in-current-series)