forked from greenlion/PHP-SQL-Parser
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove
true
, false
from reseved values
- Loading branch information
Maksim Korobitsyn
committed
Jul 27, 2021
1 parent
e38d6f0
commit 385acfe
Showing
2 changed files
with
22 additions
and
2 deletions.
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 issue342Test extends \PHPUnit_Framework_TestCase | ||
{ | ||
public function testIssue299() | ||
{ | ||
$sql = 'select if(true, true, false) from t'; | ||
|
||
$parser = new PHPSQLParser(); | ||
$creator = new PHPSQLCreator(); | ||
|
||
$parser->parse($sql, true); | ||
|
||
$this->assertEquals($sql, $creator->create($parser->parsed)); | ||
} | ||
} |