mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-11 05:29:30 +00:00
Removed a useless part of the regex that looked for something function-like, and made the NULL check case-insensitive
This commit is contained in:
@@ -667,8 +667,8 @@ sub determine_table_for_column {
|
||||
sub _looks_like_column {
|
||||
my $col = shift;
|
||||
# NULL, numbers, variables and functions are definitely not columns
|
||||
return if $col eq '*' || $col eq 'NULL';
|
||||
return if $col =~ /\A(?:\b[0-9]+\b|[^(]+\(|\@{1,2}.+)/;
|
||||
return if $col eq '*' || uc($col) eq 'NULL';
|
||||
return if $col =~ /\A(?:\b[0-9]+\b|\@{1,2}.+)/;
|
||||
return $col;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user