Posted on 2009-03-25 00:58:54-07 by cbbs70a
mysqlPP hangs when no rows are returned
If I do a query like this:
my $dbh = DBI->connect ("DBI:mysqlPP:host=$dbhostname;database=$dbname", "$dbuser", "$dbpassword", {PrintError => 0, RaiseError => 1}); my $sth = $dbh->prepare ("$mysql_query"); $sth->execute (); the execute statement hangs if no rows are returned. It works fine if I use this instead: my $dbh = DBI->connect ("DBI:mysql:host=$dbhostname;database=$dbname",
Has anyone seen this before?
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.