fix(restore): surface DatabaseImporter errors + quote-aware split #294
Reference in New Issue
Block a user
Delete Branch "fix/databaseimporter-surface-errors"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
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_01WbGBN9VyRK61zczYWcCQ2ib244c9f353to028e1c7e80