Fix for 1037211: QueryParser fails to distill LOCK TABLES in lowercase

This commit is contained in:
Brian Fraser
2012-08-16 19:18:14 -03:00
parent 1481494ef1
commit c3fe755615
8 changed files with 21 additions and 23 deletions

View File

@@ -10,7 +10,7 @@ BEGIN {
use strict;
use warnings FATAL => 'all';
use Test::More tests => 135;
use Test::More;
use English qw(-no_match_vars);
use QueryRewriter;
@@ -823,7 +823,12 @@ is_deeply(
[qw(mytable)], 'Does not consider subquery SELECT as a table (issue 781)',
);
is_deeply(
[ $qp->get_tables('lock tables t1 as t5 read local, t2 low_priority write') ],
[qw(t1 t2)], 'get_tables works for lowercased LOCK TABLES',
);
# #############################################################################
# Done.
# #############################################################################
exit;
done_testing;