Hi all,
we are trying to convert our hibernate project from MSSQL to MySQL but found a problem with the query generation.
Hibernate for instance logs this query:
Code:
update
CustomerEnvironments
set
Environment=?,
Release=?,
Patch=?
where
ID=?
This results in a syntax error. When I fill in my values, that indeed fails and appears to be the problem of the "Release" column. Trying this (with quoting around "release" does work:
Code:
update
CustomerEnvironments
set
Environment='TEST',
`Release`=null,
Patch=null
where
ID=224
Is there a way I can make hibernate add these backquotes by configuration or is this actually a bug?
btw... I have set the dialect to MySQLInnoDBDialect since I am only using InnoDB tables in MySQL 5.0.41
Thank you for your help,
Steven