Skip to content
Snippets Groups Projects
Commit a11bc6a8 authored by Andy Yates's avatar Andy Yates
Browse files

Allowing us to strip out some unwanted test case SQL attributes

parent d29064c9
No related branches found
No related tags found
No related merge requests found
......@@ -315,6 +315,11 @@ sub modify_sql {
$sql =~ s/DEFINER=.+ \s+ SQL/DEFINER=CURRENT_USER() SQL/xms;
$sql =~ s/SQL \s+ SECURITY \s+ DEFINER/SQL SECURITY INVOKER/xms;
}
if($self->opts()->{testcompatible}) {
$sql =~ s/DEFAULT\s+CHARSET=latin1//xms;
$sql =~ s/COLLATE=latin1_bin//xms;
$sql =~ s/AUTO_INCREMENT=\d+//xms;
}
return $sql;
}
......
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