Skip to content

Add defensive check to pg_stringify_array() to reject non-arrayrefs - #216

Open
esabol wants to merge 1 commit into
bucardo:masterfrom
esabol:add-defensive-check
Open

esabol wants to merge 1 commit into
bucardo:masterfrom
esabol:add-defensive-check

Conversation

@esabol

@esabol esabol commented Sep 30, 2026

Copy link
Copy Markdown
Collaborator

I'm still working on a test for this. Something like this added to... um, where?

$t = q{Database handle method quote() rejects a hash reference};
eval { $dbh->quote({ a => 1 }); };
like ($@, qr/Cannot stringify/, $t);

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.

1 participant