Skip to content

Use hv_fetchs() instead of hv_fetch() with literal key and manual length #133

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 1 commit into from
Aug 12, 2025

Conversation

ilmari
Copy link
Contributor

@ilmari ilmari commented Sep 2, 2024

This avoids potential length miscounting bugs. hv_fetchs() was introduced in Perl 5.10, but is covered by dbipport.h.

This avoids potential length miscounting bugs. hv_fetchs() was
introduced in Perl 5.10, but is covered by dbipport.h.
@ilmari
Copy link
Contributor Author

ilmari commented Sep 3, 2024

I just noticed that the github actions only test the latest minor of each major, and hv_fetchs was backported to 5.8.9. I've tested manually that this (and an equivalent change in DBD::Pg) also works on 5.8.1.

@Tux Tux merged commit 629bb67 into perl5-dbi:master Aug 12, 2025
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants