Skip to content

Decode .bpchar as String #368

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 11, 2023
Merged

Decode .bpchar as String #368

merged 2 commits into from
May 11, 2023

Conversation

gwynne
Copy link
Member

@gwynne gwynne commented May 11, 2023

bpchar is "blank-padded char", the low-level Postgres name for character(N) (the auto-padded form of character varying). String's PostgresCodable conformance should thus recognize it as a valid representation.

…aracter(N)` (the auto-padded form of `character varying`). `String`'s `PostgresCodable` conformance should thus recognize it.
@gwynne gwynne added the bug Something isn't working label May 11, 2023
@gwynne gwynne requested a review from fabianfett May 11, 2023 06:58
@gwynne gwynne force-pushed the add-bpchar-decoding-support branch from a385bba to 4b61b73 Compare May 11, 2023 07:02
@gwynne gwynne force-pushed the add-bpchar-decoding-support branch from 670f66a to 19dbc08 Compare May 11, 2023 07:11
@codecov-commenter
Copy link

Codecov Report

Merging #368 (670f66a) into main (b3e1881) will increase coverage by 0.00%.
The diff coverage is 100.00%.

❗ Current head 670f66a differs from pull request most recent head 19dbc08. Consider uploading reports for the commit 19dbc08 to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #368   +/-   ##
=======================================
  Coverage   42.97%   42.98%           
=======================================
  Files         118      118           
  Lines        8242     8243    +1     
=======================================
+ Hits         3542     3543    +1     
  Misses       4700     4700           
Impacted Files Coverage Δ
.../PostgresNIO/New/Data/String+PostgresCodable.swift 100.00% <100.00%> (ø)

@fabianfett fabianfett merged commit 62080bf into main May 11, 2023
@fabianfett fabianfett deleted the add-bpchar-decoding-support branch May 11, 2023 07:22
@michal-tomlein
Copy link

Any chance this could be released soon? We would like to get the CVE fix, but this broke our app. Thanks!

@gwynne
Copy link
Member Author

gwynne commented Jun 2, 2023

@michal-tomlein We just released 1.15.0, which includes this fix, thanks for the nudge! ❤️

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.

4 participants