develooper Front page | perl.dbi.users | Postings from March 2008

Statement prep fails with "Error calling SQLGetInfo"

Thread Previous | Thread Next
From:
Mark
Date:
March 11, 2008 12:02
Subject:
Statement prep fails with "Error calling SQLGetInfo"
Hi all,

I'm a DBI newb, trying to pull some data from a DB2 database. This was
actually working yesterday, but part way through the day, I started
getting an error from my $dbh->prepare. If I changed something, I have
no idea what. I have:

my $stmt = "select id from db2inst1.users where user=?";
my $sth = $dbh->prepare($stmt)
   or die "\n\nCouldn't prepare statement: $DBI::errstr\n";

But the die does not happen:

DBD::DB2::db prepare failed: Error calling SQLGetInfo at advisors.pl
line 46, <S
TDIN> line 5.

At this point I am not sure where to look. Any pointers would be
appreciated.

Thanks,
Mark


Thread Previous | Thread Next


Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About