Author: jcosta(a)redhat.com
Date: 2009-04-21 09:38:14 -0400 (Tue, 21 Apr 2009)
New Revision: 16378
Modified:
entitymanager/branches/v3_4_0_GA_CP/src/test/org/hibernate/ejb/test/QueryTest.java
Log:
EJB-403 - Removed alias from native update statement, as it is not supported in many
databases. For branch v3_4_0_GA_CP
Modified:
entitymanager/branches/v3_4_0_GA_CP/src/test/org/hibernate/ejb/test/QueryTest.java
===================================================================
---
entitymanager/branches/v3_4_0_GA_CP/src/test/org/hibernate/ejb/test/QueryTest.java 2009-04-21
13:15:48 UTC (rev 16377)
+++
entitymanager/branches/v3_4_0_GA_CP/src/test/org/hibernate/ejb/test/QueryTest.java 2009-04-21
13:38:14 UTC (rev 16378)
@@ -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