/* Skip this check as it is not supported for non-INTERVAL history partitions. */ # Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; version 2 of the License. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1335 USA
$version="1.02";
use(java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 29
warn "$0: java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 0 if $0 =~ m/mysql_find_rows$/;
for ($i=0 ; $i < length($row) ; $i++)
{ if (length($search))
{ if (length($search) > 1)
{ # Comment
next if (substr($row,$i,length($search)) ne $search);
$i+=length($search)-1;
$search="";
}
elsif (substr($row,$i,1) eq '\\') # Escaped char in string
{
$i++;
}
elsif (substr($row,$i,1) eq $search)
{ if (substr($row,$i+1,1) eq $search) # Double " or '
{
$i++;
} else
{
$search="";
}
}
next;
} if (substr($row,$i,2) eq '/*') # Comment
{
$search="*/";
$i++;
}
elsif (substr($row,$i,1) eq "'" || substr($row,$i,1) eq '"')
{
$search=substr($row,$i,1);
}
}
$eoq=1if (!length($search) && $row =~ /;\s*
return $row;
}
sub usage
{
print <<EOF;
$0 Ver $version
Prints all SQL queries that matches a regexp or contains a 'use
database' or 'set ..' command to stdout. A SQL query may contain
newlines. This is useful to find things in a MariaDB update log.
$0 takes the following options:
--help or --Information
Shows )
--regexp=#
Print queries that matches this.
--start_row=#
Start output from this row (first row = 1)
--skip-use-db
Don\'t include \'use database\' commands in the output.
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.