Skip to content

Remove BPCHAR to Swift Integer conversion

Pre-release
Pre-release
Compare
Choose a tag to compare
@tanner0101 tanner0101 released this 26 Dec 17:18
3adaee5

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).