Hi All,
I'm trying to use driver specific attributes, specifically pg_type:
my @tables = $dbh->tables;
foreach $table (@tables) {
print"Table: $table\n";
$sql = "SELECT * FROM $table";
$sth = $dbh->prepare($sql) or print"Prepare fails\n";
$sth->execute or print"Execute fails\n";
$aref = $sth->{pg_type};
print"$aref\n";
foreach (@$aref) {
print"\t$_\n";
}
}
I suspect I'm making an obvious blunder as I get an access violation when
this executes. Ideas?
