Subject: | foreign_key_info breaks when $dbh->{FetchHashKeyName} eq 'NAME_uc' |
Here's the minimum test case. I'm using Postgres 8.1
use DBI;
use strict;
my ($db,$user,$pwd,$table);
$db = 'simple';
$user = 'clayton';
$pwd = 'badbad1';
$table = 'book';
my $dbh = DBI->connect("dbi:Pg:database=$db",$user,$pwd,{
PrintError => 1,
RaiseError => 1,
ShowErrorStatement => 1,
});
$dbh->{FetchHashKeyName} = 'NAME_uc';
$dbh->table_info('','','','TABLE');
$dbh->column_info(undef, '',$table,'%');
$dbh->foreign_key_info('','','','','',$table);