sql-formatter icon indicating copy to clipboard operation
sql-formatter copied to clipboard

A lightweight php class for formatting sql statements. Handles automatic indentation and syntax highlighting.

Results 40 sql-formatter issues
Sort by recently updated
recently updated
newest added

The following queries are formatted using SqlFormatter:format() method ``` SELECT path, CHARINDEX( '\', path_sep) AS sep FROM dirs AS d ``` ``` SELECT path, '\' AS sep FROM dirs AS...

Postgresql has support of an array type and there are two operators that break sql-formatter and it's depended php-reports. This pull-request adds support for @ operators to sql-formatter.

When sql code has "!= "operator, formatting code gets wrong syntax formatting"! = ". There is an extra space between the "!" symbol and the "=" symbol for example: ```sql...

Several bugs have been fixed since the 1.2.17 release. It would be great to release them, so that people using Composer with the default setting (allowing only stable versions of...

having something like this: CASE WHEN ... WHEN ... WHEN ... THEN ... is not creating a line break after each WHEN command. right now its beiing displayed like this:...

Debian-Bug: https://bugs.debian.org/882918

1) ### Space is removed between DELIMITER and semicolon. If I execute ```php \SqlFormatter::format('DELIMITER ;'); ``` Then I get `DELIMITER;` My expectation is that space will be preserved after DELIMITER....