You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[P1][bug] SQL import runs serially; one failed statement aborts rest when stopOnError=true #365
src/components/import/ImportDialog.tsx:240-275 reads file -> splitSqlStatements -> runs each via api.executeQuery. Same transactional gap as backup F3.
Files
src/components/import/ImportDialog.tsx:240-275
Repro
Create test SQL file with one intentional error mid-file
Import against empty DB with stopOnError=true (default)
Observe first N-1 statements committed, dump aborted mid-way
Expected
Whole import wrapped in transaction. On error, full rollback.
Proposed fix
M: wrap whole import in transaction (BEGIN/COMMIT/ROLLBACK). Requires dedicated import_sql_batch Tauri command owning connection for duration (option b, matches F1).
Acceptance
SQL file with mid-file error imported with stopOnError=true results in zero statements applied (full rollback).
Activity
fix(import): stop at the first failed statement, and say what already…