Brett Meyer
commented
on an issue
Re: Allow keywords in INSERT's attribute_list, or provide a way to escape them.
Please provide a test case that we can use to reproduce the issue.
Add Comment
Hibernate ORM
/
HHH-7961
Allow keywords in INSERT's attribute_list, or provide a way to escape them.
{code}
em.createQuery("INSERT INTO Count (id, count) SELECT 1, ?").setParameter(1, id).executeUpdate();
{code}
leads to
{code}
QuerySyntaxException: expecting OPEN, found ')'
{code}
The attribute_list of INSERT could simply ignore keywords and allow anything since it's just a list of property names and no expressions are allowed.
Or, it could be escaped...
This message was sent by Atlassian JIRA
(v6.1-OD-09-WN#6144-
sha1:62dfc48
)