diff --git a/bin/pt-table-usage b/bin/pt-table-usage index a9848da8..f5cabd8d 100755 --- a/bin/pt-table-usage +++ b/bin/pt-table-usage @@ -3952,7 +3952,7 @@ my $unquoted_ident = qr/ my $ident_alias = qr/ \s+ # space before alias (?:(AS)\s+)? # optional AS keyword - ((?>$quoted_ident|$unquoted_ident)) # alais + ((?>$quoted_ident|$unquoted_ident)) # alias /xi; my $table_ident = qr/(?: diff --git a/lib/SQLParser.pm b/lib/SQLParser.pm index 8c16ff2e..514a30d7 100644 --- a/lib/SQLParser.pm +++ b/lib/SQLParser.pm @@ -59,7 +59,7 @@ my $unquoted_ident = qr/ my $ident_alias = qr/ \s+ # space before alias (?:(AS)\s+)? # optional AS keyword - ((?>$quoted_ident|$unquoted_ident)) # alais + ((?>$quoted_ident|$unquoted_ident)) # alias /xi; # A table is identified by 1 or 2 identifiers separated by a period