From 85826b7832a9c2c9c7365f28f1e69a44bec76de0 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 4fd9b3e..4d179ff 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))); } /**