fix a couple things for MySQL 5.5

This commit is contained in:
Baron Schwartz
2012-06-03 14:47:00 -04:00
parent 275ae93084
commit 1e082cfd34
2 changed files with 14 additions and 11 deletions

View File

@@ -1987,7 +1987,7 @@ sub main {
PTDEBUG && _d($sql);
eval { $dbh_child->do($sql); }; # Should block against parent.
PTDEBUG && _d($EVAL_ERROR); # Parent inserted value 0.
$sql = "DROP TABLE $db_tbl";
$sql = "COMMIT";
PTDEBUG && _d($sql);
$dbh_child->do($sql);
exit;
@@ -2001,6 +2001,9 @@ sub main {
eval { $dbh->do($sql); };
PTDEBUG && _d($EVAL_ERROR);
waitpid($pid, 0);
$sql = "DROP TABLE $db_tbl";
PTDEBUG && _d($sql);
$dbh->do($sql);
}
# If there's an --interval argument, run forever or till specified.