greenlion / PHP-SQL-Parser

A pure PHP SQL (non validating) parser w/ focus on MySQL dialect of SQL
BSD 3-Clause "New" or "Revised" License
602 stars 156 forks source link

Remove duplicate switch cases for code clarity #303

Closed TysonAndre closed 5 years ago

TysonAndre commented 5 years ago

If there are duplicate switch cases, only the earliest one is used.

On line 444 of SQLProcessor, case ';' was a continue 2; instead.

Detected via static analysis (no other issues of the same type were seen)

greenlion commented 5 years ago

Thank you for your contribution.