Commit d52f35c6 authored by Leigh Stoller's avatar Leigh Stoller

Another mysql 5.7 bug.

parent 90ab807b
......@@ -1642,7 +1642,7 @@ CREATE TABLE `experiment_stats` (
`swapmod_count` smallint(5) unsigned default '0',
`swapmod_last` datetime default NULL,
`swap_errors` smallint(5) unsigned default '0',
`swap_exitcode` tinyint(3) unsigned default '0',
`swap_exitcode` tinyint(3) default '0',
`idle_swaps` smallint(5) unsigned default '0',
`swapin_duration` int(10) unsigned default '0',
`batch` tinyint(3) unsigned default '0',
......
use strict;
use libdb;
sub DoUpdate($$$)
{
my ($dbhandle, $dbname, $version) = @_;
my $type = DBSlotType("experiment_stats", "swap_exitcode");
if ($type =~ /unsigned/) {
DBQueryFatal("alter table experiment_stats change swap_exitcode ".
" swap_exitcode int(11) default '0'");
DBQueryFatal("update experiment_stats set swap_exitcode=-1 ".
"where swap_exitcode=255");
DBQueryFatal("alter table experiment_stats change swap_exitcode ".
"swap_exitcode tinyint(3) default '0'");
}
return 0;
}
# Local Variables:
# mode:perl
# End:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment