HHH-1658 - unexpected AST node on HQL UPDATE
This commit is contained in:
parent
094c08cd08
commit
e9bd0afe81
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue