Skip Menu |

This queue is for tickets about the DBD-Pg CPAN distribution.

Report information
The Basics
Id: 51780
Status: resolved
Priority: 0/
Queue: DBD-Pg

People
Owner: greg [...] turnstep.com
Requestors: ianburrell [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 2.15.1
Fixed in: 3.0.0



Subject: foreign_key_info fails if pg_expand_schema is not set
Calling foreign_key_info() with pg_expand_array set to zero produces the following error: Can't use string ("{2}") as an ARRAY ref while "strict refs" in use at /dp/usr/imb/work/dev_dbi_update/perl/lib/i686-linux-thread-multi/DBD/Pg.pm line 952. The failing line is trying to treat 'conkey' column as arrayref while pg_expand_array of 0 suppresses the expansion and produces '{2}'. We have code which uses arrays as string and needs pg_expand_array set to 0.
Tricky: we cannot seem to set any {pg_} params from withing Pg.pm. Will have to find another workaround other than the obvious one. Thanks for the report.
Should be fixed in 9dab3ed54807d63d5cb407d933cb92ab1a8b2a79.