Mocking non-standard statement handle key values
I'm using PGObject
in my project (https://github.com/ledgersmb/LedgerSMB). PGObject depends on DBD::Pg
's pg_type
key in the statement handle: $sth->{pg_type}
(see https://metacpan.org/source/EINHVERFR/PGObject-2.000002/lib/PGObject.pm#L366).
I'd like to provide a value to DBD::Mock to return for that key. The documentation doesn't explain if and how that can be done. From reading the code, I couldn't understand how to do it either. If it's indeed not possible, would you be open to me providing a pull request to allow providing values for arbitrary keys?