Skip to content

Commit

Permalink
[jOOQ#5260] Wrong update count when running UPDATE .. RETURNING in Po…
Browse files Browse the repository at this point in the history
…stgreSQL and Firebird
  • Loading branch information
lukaseder committed May 12, 2016
1 parent a358737 commit a7b659c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jOOQ/src/main/java/org/jooq/impl/AbstractDMLQuery.java
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,9 @@ protected final int execute(ExecuteContext ctx, ExecuteListener listener) throws
if (table.fields().length > 0)
returned = returned.into(table);

result = returned.size();
ctx.rows(result);

return result;
}
}
Expand Down

0 comments on commit a7b659c

Please sign in to comment.