[#6088] InsertSetStep.select() should return InsertOnDuplicateStep
This commit is contained in:
parent
65453a5158
commit
bea5354283
@ -324,5 +324,5 @@ public interface InsertSetStep<R extends Record> {
|
||||
* define a field set for insertion.
|
||||
*/
|
||||
@Support
|
||||
InsertReturningStep<R> select(Select<?> select);
|
||||
InsertOnDuplicateStep<R> select(Select<?> select);
|
||||
}
|
||||
|
||||
@ -899,7 +899,7 @@ class ParserImpl implements Parser {
|
||||
SelectQueryImpl<Record> select = parseSelect(ctx);
|
||||
|
||||
returning = onDuplicate = (fields == null)
|
||||
? (InsertOnDuplicateStep<?>) ctx.dsl.insertInto(tableName).select(select)
|
||||
? ctx.dsl.insertInto(tableName).select(select)
|
||||
: ctx.dsl.insertInto(tableName).columns(fields).select(select);
|
||||
}
|
||||
else if (parseKeywordIf(ctx, "DEFAULT VALUES")) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user