Fixed pt-upgrade fails with SELECT INTO (ingore case)

This commit is contained in:
Carlos Salguero
2016-10-19 13:06:26 -03:00
parent c16d6a1dd3
commit d9c991c8ec

View File

@@ -6340,7 +6340,7 @@ sub save {
# *except* when they are directed INTO
# a file or a variable. (issue lp:1421781)
if ( $event->{arg} =~ m/(?:^\s*SELECT|(?:\*\/\s*SELECT))/i
&& $event->{arg} !~ /INTO\s*(?:OUTFILE|DUMPFILE|@)/ ) {
&& $event->{arg} !~ /INTO\s*(?:OUTFILE|DUMPFILE|@)/i ) {
$rows = $sth->fetchall_arrayref();
}
eval {