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 187 forks source link

fix incorrect splitting of create procedure statement #70

Open subotin opened 9 years ago

subotin commented 9 years ago

For example: DROP PROCEDURE IF EXISTS proc_name; CREATE PROCEDURE proc_name (IN inParam INT) BEGIN SELECT * FROM some table WHERE 1=1; END;