Written as a scanner rather than a split on ; because a Drupal dump is full of semicolons inside
string values -- serialized PHP, rendered HTML, .htaccess bodies -- and a naive split truncates
every one of those rows into invalid SQL that still parses far enough to look plausible.
Splits a dump into statements.
Written as a scanner rather than a split on
;because a Drupal dump is full of semicolons inside string values -- serialized PHP, rendered HTML,.htaccessbodies -- and a naive split truncates every one of those rows into invalid SQL that still parses far enough to look plausible.