Hibernate version: 3.1beta6 + Annotations (EJB3)
Name and version of the database you are using: MySQL 5.0.15
The generated SQL (show_sql=true):
insert into Checkentry (check, ctime, mtime, sortindex, text, viewtime, id) ...
A sample error for this statement:
ERROR 1064 (42000): 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 'check, ctime, mtime, sortindex, texts, viewtime, id)
I have faced some problems with reserved words for column names. I have seen several postings which suggest to avoid these names.
But I have seen as well that the queries are totally unquoted in the Hibernate batcher. As I understand it is quite impossible to face all reserved name problems for all DBMs, but would it possible as a future feature to quote the column/table names? Or is even this quoting so different for every DBMS?
Regards
Thomas
|