Bug #38166 | DBD::mysql does not properly report errors with mysql_multi_statements | ||
---|---|---|---|
Submitted: | 16 Jul 2008 9:21 | Modified: | 17 Jul 2008 11:45 |
Reporter: | Philip Stoev | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | Connectors: DBD::mysql ( Perl ) | Severity: | S3 (Non-critical) |
Version: | OS: | Any | |
Assigned to: | CPU Architecture: | Any |
[16 Jul 2008 9:21]
Philip Stoev
[17 Jul 2008 11:45]
Sveta Smirnova
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://dev.mysql.com/doc/ and the instructions on how to report a bug at http://bugs.mysql.com/how-to-report.php According to link you provided you should process multiple result sets step-by-step like below: my $sth = $dbh->prepare('SELECT 1; select 2; BOGUS_STATEMENT'); $sth->execute(); do { printf "MySQL Error: %s\n", $dbh->{'mysql_error'}; } until (!$sth->more_results);