benlaan/sqlformat — pull request #2 by jtmueller (2013-06-25 02:53:14+00:00)
Title: Using case-insensitive comparisons to support lower-case expressions

When testing this library with some real-world SQL not written by me, it threw an exception when encountering an expression that included a lower-case call to CAST. Since SQL Server accepts this expression, I made some comparisons to string constants into case-insensitive comparisons, and added a couple of unit tests to verify the fix.