-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: catch unknown types in RowDescription (#343)
* fix: catch unknown types in RowDescription Catch any errors when converting from a Spanner type to an OID to prevent unknown types from making PGAdapter return an incomplete response. An unknown type would now cause the RowDescriptionResponse to fail halfway, which meant that half a message would be written to the output buffer. This could then make a client hang, as it was waiting for more data for the specific message. * test: add a test to verify that the exception is caught * test: add more tests
- Loading branch information
Showing
2 changed files
with
33 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