Issue Type: Bug Bug
Affects Versions: 4.1.9
Assignee: Unassigned
Components: core
Created: 31/Jan/13 12:36 AM
Description:
em.createQuery("INSERT INTO Count (id, count) SELECT 1, ?").setParameter(1, id).executeUpdate();

leads to

QuerySyntaxException: expecting OPEN, found ')'

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 somehow. Currently there's no way.

Ref: http://docs.jboss.org/hibernate/orm/4.1/devguide/en-US/html/ch11.html#d5e2637

Related: HHH-3811

Project: Hibernate ORM
Labels: hql escape insert
Priority: Major Major
Reporter: Ondra Žižka
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira