in reply to How can I make DBI's prepare() fail? [MySQL]
Then, try to prepare some invalid SQL. I used $sth->prepare("? WHEE") and got this:$dbh = DBI->connect( "DBI:mysql:database=test;host=localhost;mysql_server_prepare=1" );
DBD::mysql::db prepare failed: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '? WHEE' at line 1 at test.pl line 9. prepare failed at test.pl line 11.
|
|---|