summaryrefslogtreecommitdiffstats
path: root/tests/Utils/MiscTest.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/MiscTest.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/MiscTest.php')
-rw-r--r--tests/Utils/MiscTest.php17
1 files changed, 16 insertions, 1 deletions
diff --git a/tests/Utils/MiscTest.php b/tests/Utils/MiscTest.php
index 55b9c91..da036e0 100644
--- a/tests/Utils/MiscTest.php
+++ b/tests/Utils/MiscTest.php
@@ -100,7 +100,22 @@ class MiscTest extends TestCase
'',
null,
array()
- )
+ ),
+ array(
+ 'SELECT * FROM orders AS ord WHERE 1',
+ 'db',
+ array(
+ 'db' => array(
+ 'alias' => null,
+ 'tables' => array(
+ 'orders' => array(
+ 'alias' => 'ord',
+ 'columns' => array(),
+ )
+ ),
+ ),
+ )
+ ),
);
}
}