jdorn / sql-formatter

A lightweight php class for formatting sql statements. Handles automatic indentation and syntax highlighting.
http://jdorn.github.com/sql-formatter/
MIT License
3.89k stars 186 forks source link

Formatting named parameters #74

Closed xPaw closed 9 years ago

xPaw commented 9 years ago

PDO has named variables like :name, I've looked at the code and it only checks for @.

See http://php.net/manual/en/pdostatement.bindparam.php

Currently it's formatted like this: 2015-03-22-193102gst