forked from greenlion/PHP-SQL-Parser
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: robert.kubac <[email protected]>
- Loading branch information
Showing
2 changed files
with
22 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
namespace PHPSQLParser\Test\Creator; | ||
use PHPSQLParser\PHPSQLParser; | ||
use PHPSQLParser\PHPSQLCreator; | ||
|
||
class issue319Test extends \PHPUnit\Framework\TestCase | ||
{ | ||
public function testIssue319() | ||
{ | ||
$sql = 'SELECT start_date FROM users INNER JOIN vacation ON DATE(start_date) <= DATE(end_date)'; | ||
|
||
$parser = new PHPSQLParser(); | ||
$creator = new PHPSQLCreator(); | ||
|
||
$parser->parse($sql, true); | ||
|
||
$this->assertEquals($sql, $creator->create($parser->parsed)); | ||
} | ||
} |