Subject: | Incorrect behaviour in primary_key / primary_key_info |
I'm running Perl 5.6.1 on Debian GNU/Linux Stable, and using DBI 1.42 with DBD::Pg 1.32.
When primary_key() is called on a table with no key, it returns a single-element list ( undef ) instead of an empty list, which seems incorrect.
I wrongly filed this bug against DBI - you can see it at http://rt.cpan.org/NoAuth/Bug.html?id=8783 where Tim states the behaviour that DBI expects and where the faults may lie in DBD::Pg.
I hope this is useful to you.