[jOOQ/jOOQ#9946] INSERT .. RETURNING emulation produces wrong follow up SELECT query when target table is aliased
This commit is contained in:
parent
a7dd3aeafa
commit
aea051449f
@ -1235,7 +1235,9 @@ abstract class AbstractDMLQuery<R extends Record> extends AbstractRowCountQuery
|
||||
derivedConfiguration.dsl()
|
||||
.select(returning)
|
||||
.from(table)
|
||||
.where(field.in(ids))
|
||||
|
||||
// [#5050] [#9946] Table.getIdentity() doesn't produce aliased fields yet
|
||||
.where(table.field(field).in(ids))
|
||||
.fetch();
|
||||
|
||||
returnedResult.attach(originalConfiguration);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user