Skip to content

Commit 9cc8492

Browse files
committed
Add alias extraction test for query with no table
Signed-off-by: Michal Čihař <[email protected]>
1 parent 9096eea commit 9cc8492

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tests/Utils/MiscTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,11 @@ public function getAliasesProvider()
101101
null,
102102
array()
103103
),
104+
array(
105+
'SELECT 1',
106+
null,
107+
array()
108+
),
104109
array(
105110
'SELECT * FROM orders AS ord WHERE 1',
106111
'db',

0 commit comments

Comments
 (0)