Fix diff_warnings.t for MySQL 5.0.

This commit is contained in:
Daniel Nichter
2013-03-11 10:24:16 -06:00
parent 2aa2176fdd
commit 9a33090514

View File

@@ -46,7 +46,9 @@ my $w2 = $event_exec->get_warnings(dbh => $dbh2);
my $error_1264 = {
code => '1264',
level => 'Warning',
message => "Out of range value for column 't' at row 1",
message => ($sandbox_version eq '5.0'
? "Out of range value adjusted for column 't' at row 1"
: "Out of range value for column 't' at row 1"),
};
is_deeply(
@@ -113,5 +115,6 @@ is_deeply(
# Done.
# #############################################################################
$sb->wipe_clean($dbh1);
diag(`$trunk/sandbox/stop-sandbox 12348 >/dev/null`);
ok($sb->ok(), "Sandbox servers") or BAIL_OUT(__FILE__ . " broke the sandbox");
done_testing;