fix(restore): surface DatabaseImporter errors + quote-aware split #294

Merged
jmiller merged 1 commits from fix/databaseimporter-surface-errors into dev 2026-07-16 18:06:57 +00:00
Owner

Closes #188. RestoreEngine ignored DatabaseImporter::hasErrors(), so a non-stepped restore reported success even with failed SQL statements. It now logs the failures and returns a warning. DatabaseImporter also gets the quote/backtick/escape-aware statement splitter (a ; or newline inside a value no longer splits a statement; comments only skipped between statements), matching the stepped-engine fix (#291/#292).

https://claude.ai/code/session_01WbGBN9VyRK61zczYWcCQ2i

Closes #188. RestoreEngine ignored DatabaseImporter::hasErrors(), so a non-stepped restore reported success even with failed SQL statements. It now logs the failures and returns a warning. DatabaseImporter also gets the quote/backtick/escape-aware statement splitter (a ; or newline inside a value no longer splits a statement; comments only skipped between statements), matching the stepped-engine fix (#291/#292). https://claude.ai/code/session_01WbGBN9VyRK61zczYWcCQ2i
jmiller added 1 commit 2026-07-16 18:06:53 +00:00
fix(restore): surface DatabaseImporter errors + quote-aware split (#188)
Universal: Pre-Release / Build Pre-Release (${{ inputs.stability || github.ref_name }}) (push) Failing after 7s
Universal: PR Check / Branch Policy (pull_request) Successful in 2s
Universal: PR Check / Secret Scan (pull_request) Successful in 8s
Universal: PR Check / Validate PR (pull_request) Failing after 12s
Generic: Project CI / Lint & Validate (pull_request) Successful in 15s
Branch Cleanup / Delete merged branch (pull_request) Successful in 1s
RC Revert / Rename rc/ back to dev/ (pull_request) Has been skipped
Joomla: Metadata Validation / Validate Joomla Metadata (pull_request) Successful in 12s
Generic: Project CI / Tests (pull_request) Has been cancelled
Universal: PR Check / Build RC Package (pull_request) Has been cancelled
Universal: PR Check / Report Issues (pull_request) Has been cancelled
028e1c7e80
RestoreEngine ignored DatabaseImporter::hasErrors(), so the non-stepped
restore always reported success even when SQL statements failed. It now
logs the failures and returns a warning ("database may be incomplete").
DatabaseImporter's splitter is also quote/backtick/escape-aware so a ; or
newline inside a value no longer splits a statement, and comments are only
skipped between statements — matching the stepped-engine fix (#291).

Closes #188.

Claude-Session: https://claude.ai/code/session_01WbGBN9VyRK61zczYWcCQ2i
jmiller force-pushed fix/databaseimporter-surface-errors from b244c9f353 to 028e1c7e80 2026-07-16 18:06:53 +00:00 Compare
jmiller merged commit f3bcf9d79e into dev 2026-07-16 18:06:57 +00:00
jmiller deleted branch fix/databaseimporter-surface-errors 2026-07-16 18:06:58 +00:00
Sign in to join this conversation.