diff options
author | Michal Čihař <michal@cihar.com> | 2016-09-13 15:06:54 +0200 |
---|---|---|
committer | Michal Čihař <michal@cihar.com> | 2016-09-13 15:06:54 +0200 |
commit | 9cc849230c918d352c298d2b0ced73cb5f59dadd (patch) | |
tree | 7f953ea88efee84627930c3d229cf1a8c45f7a12 /tests/Utils/MiscTest.php | |
parent | 9096eeaa28efae3642c3eb8952a9fe6816f69626 (diff) | |
download | sql-parser-9cc849230c918d352c298d2b0ced73cb5f59dadd.zip sql-parser-9cc849230c918d352c298d2b0ced73cb5f59dadd.tar.gz sql-parser-9cc849230c918d352c298d2b0ced73cb5f59dadd.tar.bz2 |
Add alias extraction test for query with no table
Signed-off-by: Michal Čihař <michal@cihar.com>
Diffstat (limited to 'tests/Utils/MiscTest.php')
-rw-r--r-- | tests/Utils/MiscTest.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/Utils/MiscTest.php b/tests/Utils/MiscTest.php index da036e0..854e361 100644 --- a/tests/Utils/MiscTest.php +++ b/tests/Utils/MiscTest.php @@ -102,6 +102,11 @@ class MiscTest extends TestCase array() ), array( + 'SELECT 1', + null, + array() + ), + array( 'SELECT * FROM orders AS ord WHERE 1', 'db', array( |