summaryrefslogtreecommitdiffstats
path: root/tests/Utils/QueryTest.php
diff options
context:
space:
mode:
authorMichal Čihař <michal@cihar.com>2016-04-26 15:40:55 +0200
committerMichal Čihař <michal@cihar.com>2016-04-26 15:47:45 +0200
commit1ec169a2a76110bbd0734da23a43c4d23c1eecfb (patch)
tree78b55a222baa2c47e99a61a07cc0ae522ba94295 /tests/Utils/QueryTest.php
parentd3c22e1e82ada886a95d0ff26df999fefe01ef60 (diff)
downloadsql-parser-1ec169a2a76110bbd0734da23a43c4d23c1eecfb.zip
sql-parser-1ec169a2a76110bbd0734da23a43c4d23c1eecfb.tar.gz
sql-parser-1ec169a2a76110bbd0734da23a43c4d23c1eecfb.tar.bz2
Allow to use function name in ASv3.4.4
Fixes https://github.com/phpmyadmin/phpmyadmin/issues/12144 Signed-off-by: Michal Čihař <michal@cihar.com>
Diffstat (limited to 'tests/Utils/QueryTest.php')
-rw-r--r--tests/Utils/QueryTest.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/Utils/QueryTest.php b/tests/Utils/QueryTest.php
index e73696b..b3f0ab6 100644
--- a/tests/Utils/QueryTest.php
+++ b/tests/Utils/QueryTest.php
@@ -246,6 +246,14 @@ class QueryTest extends TestCase
'querytype' => 'SELECT'
)
),
+ array(
+ 'SELECT * FROM orders AS ord WHERE 1',
+ array(
+ 'querytype' => 'SELECT',
+ 'is_select' => true,
+ 'select_from' => true,
+ )
+ ),
);
}