-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sql: support int2vector::string casts properly
Previously, casting an int2vector to a string would fail to use the special int2vector formatting (space-separated elements instead of the normal {}-wrapped and comma-separated elements format of arrays). This was causing issues with SQLAlchemy. This commit solves this problem and simplifies the code by removing the DOidWrapper usages for int2vector and oidvector, in favor of a field on DArray that contains a custom oid. This opens the door to teaching DArray's format method about the special formatting, rather than having it live only in pgwire, where it fails to be useful in the cast of e.g. casts. Release note (sql change): casting an int2vector to a string now produces a Postgres-compatible result.
- Loading branch information
1 parent
040eb2b
commit 6a79242
Showing
4 changed files
with
38 additions
and
22 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
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