
| Key: |
HHH-2609
|
| Type: |
Bug
|
| Status: |
Open
|
| Priority: |
Major
|
| Assignee: |
Unassigned
|
| Reporter: |
Michael Barker
|
| Votes: |
1
|
| Watchers: |
1
|
|
If you were logged in you would be able to see more operations.
|
|
|
|
When a delete uses multiple nest subqueries the resulting SQL query generated is invalid. E.g. the EJB-QL:
DELETE Foo f WHERE f.fooId NOT IN (SELECT bar.fooId FROM Bar bar) AND f.fooId NOT IN (SELECT baz.fooId FROM Baz baz)
or
DELETE Foo WHERE fooId NOT IN (SELECT fooId FROM Bar) AND fooId NOT IN (SELECT fooId FROM Baz)
Generates the following:
delete from Foo where (fooId not in (select bar1_.fooId from Bar bar1_)) and (foo0_.fooId not in (select baz2_.fooId from Baz baz2_))
Will fail because the field "foo0_.fooId" should be "fooId", "foo0_" is not declared.
At test case is attached.
|
|
Description
|
When a delete uses multiple nest subqueries the resulting SQL query generated is invalid. E.g. the EJB-QL:
DELETE Foo f WHERE f.fooId NOT IN (SELECT bar.fooId FROM Bar bar) AND f.fooId NOT IN (SELECT baz.fooId FROM Baz baz)
or
DELETE Foo WHERE fooId NOT IN (SELECT fooId FROM Bar) AND fooId NOT IN (SELECT fooId FROM Baz)
Generates the following:
delete from Foo where (fooId not in (select bar1_.fooId from Bar bar1_)) and (foo0_.fooId not in (select baz2_.fooId from Baz baz2_))
Will fail because the field "foo0_.fooId" should be "fooId", "foo0_" is not declared.
At test case is attached. |
Show » |
| There are no comments yet on this issue.
|
|