print "The next statement will hang...\n"; print "Executing: select v2 from test where v1=1\n"; $sth = $dbh->prepare("select v2 from test where v1=1"); $sth->execute(); print "select with where clause hangs. You will never see this message\n"; $sth->finish;

I debugged the script and it hangs on execute statement for the query with the where clause.

I tried with the placeholder => same result

I don't exactly know why I use mysqlPP instead of mysql. I asked myself the same question. I just followed some examples. I tried with my $drh = DBI->install_driver("mysql"); but this doesn't change anything