Skip to content

Commit 57cc4cf

Browse files
committed
Add tests for prevention of incorrect errors in UNION queries
Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com> Conflicts: tests/Parser/SelectStatementTest.php
1 parent f5a0586 commit 57cc4cf

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

tests/Parser/SelectStatementTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ public function testSelectProvider()
6161
array('parser/parseSelectEndOptions2'),
6262
array('parser/parseSelectEndOptionsErr'),
6363
array('parser/parseSelectUnion'),
64+
array('parser/parseSelectUnion2'),
6465
);
6566
}
6667
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
(SELECT DISTINCT `User`, `Host` FROM `mysql`.`user` ) UNION (SELECT DISTINCT `User`, `Host` FROM `mysql`.`db` ) UNION (SELECT DISTINCT `User`, `Host` FROM `mysql`.`tables_priv` ) UNION (SELECT DISTINCT `User`, `Host` FROM `mysql`.`columns_priv` ) UNION (SELECT DISTINCT `User`, `Host` FROM `mysql`.`procs_priv` ) ORDER BY `User` ASC, `Host` ASC

0 commit comments

Comments
 (0)