-
Notifications
You must be signed in to change notification settings - Fork 180
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix incomplete processing for write queries
- Loading branch information
Showing
3 changed files
with
2 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,7 +70,6 @@ def execute(self, operation, parameters=None): | |
elif isinstance(message, messages.RowDescription): | ||
self.description = map(lambda fd: Column(fd), message.fields) | ||
elif isinstance(message, messages.DataRow) \ | ||
or isinstance(message, messages.CommandComplete) \ | ||
or isinstance(message, messages.ReadyForQuery): | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
zer0n
Author
Contributor
|
||
self._message = message # cache the message because there's no way to undo the read | ||
break | ||
|
I didn't quite understand how it is OK to break after seeing first DataRow. Maybe I am missing something?! As far as I understand, the loop should continue till it sees a ReadyForQuery. Please correct me if I am wrong here.