-
Notifications
You must be signed in to change notification settings - Fork 714
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Capture row counts for plain statements and batch (#1333)
Previously, only row counts for executeUpdate on prepared statements was included as sql.affected_rows. With this change, row counts are also included for executeUpdate on plain statements, and for executeBatch on prepared and plain statements. Capturing row counts on plain execute is a lot trickier, since it´s not safe to call getUpdateCount behind the application´s back, as it is not idempotent - we´d unexpectedly change state. Co-authored-by: Magnus Reftel <Magnus.Reftel@skatteetaten.no>
- Loading branch information
Showing
3 changed files
with
143 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters