Skip to content

Conversation

tanner0101
Copy link
Member

@tanner0101 tanner0101 commented Dec 26, 2019

Removes support for converting PostgresData containing BPCHAR bytes (CHARACTER(n), CHAR, etc) to Swift integers. Postgres CHAR(n) fields may be padded with extra zero-bytes which makes conversion tricky. Since Postgres intends CHARACTER fields to store string values, PostgresData should only support conversion to Swift strings. To store 8-bits natively, use Postgres "char" type (note the quotes).

@tanner0101 tanner0101 added the bug Something isn't working label Dec 26, 2019
@tanner0101 tanner0101 changed the title rm bpchar to int support, use char with quotes Remove BPCHAR to Swift Integer conversion Dec 26, 2019
@tanner0101 tanner0101 merged commit 3adaee5 into master Dec 26, 2019
@tanner0101
Copy link
Member Author

These changes are now available in 1.0.0-beta.2.4

@tanner0101 tanner0101 deleted the tn-bpchar-fix branch December 26, 2019 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant