du-song / SublimeFormatSQL

Sublime Text 2 command to format long SQL statement to a more readable form (also available via Package Control)
Other
112 stars 43 forks source link

Convert identifiers to lowercase #4

Open dserodio opened 12 years ago

dserodio commented 12 years ago

(credit: http://thecrumb.com/thecrumb/2012/01/23/sublime-text-2-format-sql/)

du-song commented 12 years ago

Hi, would you provide an option for this (and off by default) ? there are some case that identifiers are case sensitive in MySQL, see http://dev.mysql.com/doc/refman/5.0/en/identifier-case-sensitivity.html ; and in MS SQL Server, it's also configurable.

dserodio commented 12 years ago

Ok, I'll take a stab at it. Never developed a Sublime package nor used python-sqlparse, but I'll give it a try.