-
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: fix serialization of pg_index.indkey
`indkey` is an `int2vector`, which is serialized as a space-delimited string containing the elements of the vector. Sequelize relies on this representation, splitting `indkey` by spaces. This fixes compatibility with Sequelize and has been tested with Hibernate, GORM, and SQLAlchemy. This change adds an INT2VECTOR column type that maps to a new TypeIntVector/DIntVector that uses DOidWrapper to wrap DArray with the int2vector OID. The new column type allows the serialization of `indkey` to match what Postgres emits.
- Loading branch information
Cuong Do
committed
Feb 9, 2017
1 parent
ad21cfa
commit 66a4d30
Showing
17 changed files
with
4,567 additions
and
4,473 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.