PHP-SQL-Parser icon indicating copy to clipboard operation
PHP-SQL-Parser copied to clipboard

Add ignore comment option

Open shu1007 opened this issue 3 years ago • 1 comments

Hello. Nice to meet you. The Parser is a good one, but I'm having a bit of trouble with it. You can parse SQL with comments, but there is an error when generating SQL from a parsed SQL containing comments. The generated SQL is a single row, so generating it with comments can be tricky. So I added a new parse option called ignore_comment. If you set it to true, the comments will be ignored and parsed. Please check the change by all means.

shu1007 avatar Nov 04 '20 17:11 shu1007

I will check it out after Thanksgiving and merge the PR. Thanks!!

greenlion avatar Nov 26 '20 03:11 greenlion