phpmyadmin / sql-parser

A validating SQL lexer and parser with a focus on MySQL dialect.
https://packagist.org/packages/phpmyadmin/sql-parser
GNU General Public License v2.0
442 stars 102 forks source link

Don't add too many spaces when replacing clauses #558

Closed MoonE closed 3 months ago

MoonE commented 6 months ago

There were unnecessary spaced included in the statement when

This will require some tests to be updated in phpMyAdmin. e. g.: https://github.com/phpmyadmin/phpmyadmin/blob/99c2939eda6c1c3ab9ffe4b1f903bab182d686db/test/classes/Display/ResultsTest.php#L1469

MauricioFauth commented 6 months ago

I think this should target the master branch.