Permalink
Browse files

HHH-1658 - unexpected AST node on HQL UPDATE

  • Loading branch information...
1 parent e9bd0af commit 7b486fc4a4742d9c3fb01c1a4ec613e444d52ede @sebersole sebersole committed Sep 7, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 hibernate-core/src/test/java/org/hibernate/test/hql/BulkManipulationTest.java
@@ -76,6 +76,7 @@ public void testUpdateWithSubquery() {
// just checking parsing and syntax...
s.createQuery( "update Human h set h.bodyWeight = h.bodyWeight + (select count(1) from IntegerVersioned)" ).executeUpdate();
+ s.createQuery( "update Human h set h.bodyWeight = h.bodyWeight + (select count(1) from IntegerVersioned) where h.description = 'abc'" ).executeUpdate();
s.getTransaction().commit();
s.close();

0 comments on commit 7b486fc

Please sign in to comment.