-
Notifications
You must be signed in to change notification settings - Fork 409
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix DML with Execute limit over SQL adapter (#7684)
This PR sets row limit in `Execute` command over SQL adapter to 0 when we are injecting `CommandComplete` tags. ### Background For queries like this one: ``` INSERT INTO X VALUES ... RETURNING ... ``` ... we count number of rows returned and add a `CommandComplete("INSERT 0 n")` where `n` is the number of rows in response. Because of this, we must not set result row limit in `Execute` command message, since that would change the number of reported modified rows.
- Loading branch information
1 parent
3c2bc42
commit 34c69a4
Showing
1 changed file
with
17 additions
and
8 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