-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
conn: copy a batch type in prepare_batch
Previously, there was a bug in prepare_batch function. We wouldn't inherit a BatchType from the `initial_batch` - in result, we would always send LOGGED batches (since LOGGED is a default batch type). This would result in server errors when including a counter statements in a LOGGED batch. I added a test case which checks that it works correctly now, and the driver sends a COUNTER batch when user asks to.
- Loading branch information
Showing
2 changed files
with
52 additions
and
1 deletion.
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