HHH-1658 - unexpected AST node on HQL UPDATE

This commit is contained in:
Steve Ebersole 2012-09-07 12:01:41 -05:00
parent 094c08cd08
commit e9bd0afe81
1 changed files with 12 additions and 0 deletions

View File

@ -69,6 +69,18 @@ public class BulkManipulationTest extends BaseCoreFunctionalTestCase {
};
}
@Test
public void testUpdateWithSubquery() {
Session s = openSession();
s.beginTransaction();
// just checking parsing and syntax...
s.createQuery( "update Human h set h.bodyWeight = h.bodyWeight + (select count(1) from IntegerVersioned)" ).executeUpdate();
s.getTransaction().commit();
s.close();
}
@Test
public void testDeleteNonExistentEntity() {
Session s = openSession();