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:
Brian Fraser
2012-11-16 12:04:14 -03:00
parent c711c57859
commit 270a4710fb
3 changed files with 5 additions and 5 deletions

View File

@@ -4056,8 +4056,8 @@ sub determine_table_for_column {
sub _looks_like_column {
my $col = shift;
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;
}