Author: jcosta(a)redhat.com
Date: 2009-04-21 09:39:04 -0400 (Tue, 21 Apr 2009)
New Revision: 16380
Modified:
core/trunk/entitymanager/src/test/java/org/hibernate/ejb/test/QueryTest.java
Log:
EJB-403 - Removed alias from native update statement, as it is not supported in many
databases. For trunk
Modified: core/trunk/entitymanager/src/test/java/org/hibernate/ejb/test/QueryTest.java
===================================================================
---
core/trunk/entitymanager/src/test/java/org/hibernate/ejb/test/QueryTest.java 2009-04-21
13:38:33 UTC (rev 16379)
+++
core/trunk/entitymanager/src/test/java/org/hibernate/ejb/test/QueryTest.java 2009-04-21
13:39:04 UTC (rev 16380)
@@ -334,7 +334,7 @@
assertEquals(
1, em.createNativeQuery(
- "update Item i set i.descr = 'Logitech Mouse' where i.name =
'Mouse'"
+ "update Item set descr = 'Logitech Mouse' where name =
'Mouse'"
).executeUpdate()
);
item = em.find( Item.class, item.getName() );
Show replies by date