-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160
> Yes. The "user-level" $dbh is a reference to a tied hash. A tied hash
> has two parts: an 'inner' hash that acts normally and and 'outer' hash
> that triggers method calls like STORE and FETCH when accessed.
> Driver methods are called on the inner hash/handle.
...
> You probably want $dbh->STORE('pg_expand_array', 1); in foreign_key_info
That did the trick, thank you. For the archives, the new bits of
code are:
## We have to make sure expand_array is on for the items below to work
my $oldexpand = $dbh->FETCH('pg_expand_array');
$oldexpand or $dbh->STORE('pg_expand_array', 1);
my $info = $sth->fetchall_arrayref({});
$oldexpand or $dbh->STORE('pg_expand_array', 0);
- --
Greg Sabino Mullane [email protected]
End Point Corporation http://www.endpoint.com/
PGP Key: 0x14964AC8 201311112213
http://biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8
-----BEGIN PGP SIGNATURE-----
iEYEAREDAAYFAlKBnOMACgkQvJuQZxSWSshThQCeKocsr+FlvSxftlHzagM/PI29
iWkAnR2XWkxcn6gVa8lcHHrgogvt9PHY
=o4W4
-----END PGP SIGNATURE-----