Skip to content

Commit

Permalink
FROM list: Add failing test case
Browse files Browse the repository at this point in the history
  • Loading branch information
homersimpsons committed Mar 18, 2021
1 parent d4940bd commit 85826b7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/Mouf/Database/MagicQueryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)));
}

/**
Expand Down

0 comments on commit 85826b7

Please sign in to comment.