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
FetchHashKeyName emits invalid keys for utf8 fieldnames #45
Comments
Wonderful. Thanks for the test case!
I'll try to look into a fix soonish. |
Oh dear. The perl core doesn't appear to provide an API for case folding SVs. I'd accept a patch that adds a function like Meanwhile, a poor but effective workaround would be to set the
|
Thanks for investigating this. I think we'll go with assigning NAME_uc for now and look at implementing a _case_fold_sv patch if I ever get some time. |
Using DBI v 1.636, DBD::Pg 3.5.3, with Perl 5.42.0 on Linux
$dbi->{FetchHashKeyName}=’NAME_lc’ or NAME_uc produces different keys from ‘lc’ and ‘uc’ functions for fieldnames containing non-ascii characters.
For example, selecting column as ‘ÄMNE-Abc’ with FetchHashKeyName=NAME_lc returns the result key ‘\x{0}\x{0}mne-abc’ while
PERL_UNICODE=SA perl -e 'use utf8; print lc("ÄMNE-Abc");'
returns the expectedämne-abc
Test Case:
The text was updated successfully, but these errors were encountered: