greenlion / PHP-SQL-Parser

A pure PHP SQL (non validating) parser w/ focus on MySQL dialect of SQL
BSD 3-Clause "New" or "Revised" License
601 stars 156 forks source link

coma in function return true, false #342

Open tsukasa-mixer opened 3 years ago

tsukasa-mixer commented 3 years ago
SELECT if(true, true, false) FROM t
$parsed = (new PHPSQLParser())->parse($query);
$query = (new PHPSQLCreator())->create($parsed);

d($query);
SELECT if(true true false) FROM t