PhpGt / Database

Database query organisation.
https://php.gt/database
MIT License
3 stars 3 forks source link

Executing multiple statements - split on semicolon #358

Closed g105b closed 1 year ago

g105b commented 1 year ago

This will need to be tested using a regex such as /([^;]*?('.*?')?)*?;/g as it's completely fine to have semicolons embedded within strings.

g105b commented 1 year ago

Don't use a regex, you fool!

https://github.com/phpmyadmin/sql-parser