From 8b1e1075133720cbd486ffa1c62c78101ba88682 Mon Sep 17 00:00:00 2001 From: Guillaume Date: Thu, 18 Mar 2021 17:45:43 +0100 Subject: [PATCH] FROM list: Add failing test case --- tests/Mouf/Database/MagicQueryTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/Mouf/Database/MagicQueryTest.php b/tests/Mouf/Database/MagicQueryTest.php index 47e2d43..7c2cf96 100644 --- a/tests/Mouf/Database/MagicQueryTest.php +++ b/tests/Mouf/Database/MagicQueryTest.php @@ -208,6 +208,9 @@ public function testStandardSelect() $sql = 'SELECT COUNT(*) AS cnt FROM (SELECT id FROM country) subquery'; $this->assertEquals($sql, self::simplifySql($magicQuery->build($sql))); + + $sql = 'SELECT * FROM A, (SELECT * FROM B) B'; + $this->assertEquals($sql, self::simplifySql($magicQuery->build($sql))); } public function testInNullException() {