Summary
SQL Workspace tab-close confirms dirty result-grid edits, but Execute (and a successful re-run) disposes/replaces stagingBuffer with no prompt. Pending cell edits vanish. Same class as Table Browser #771.
Repro
- Run a simple
SELECT with a PK in the result (Postgres / MySQL / SQLite).
- Edit a cell (pending badge).
- Press Execute again (same or different query).
Expected: discard dialog, Cancel keeps the buffer. Actual: buffer is disposed; status becomes a new row count.
Scope
- Gate Execute in
postgres_sql_workspace / mysql_sql_workspace / sqlite_sql_workspace with the same discard confirm as tab close (showUnsavedTabChangesDialog or confirmDiscardTableEditsIfDirty).
- Tests: dirty buffer + Execute does not dispose until confirmed.
Out of scope
- SQL-grid schema/PK/rowid Save parity (separate issue).
- Extension Table Browser discard (separate issue).
Summary
SQL Workspace tab-close confirms dirty result-grid edits, but Execute (and a successful re-run) disposes/replaces
stagingBufferwith no prompt. Pending cell edits vanish. Same class as Table Browser #771.Repro
SELECTwith a PK in the result (Postgres / MySQL / SQLite).Expected: discard dialog, Cancel keeps the buffer. Actual: buffer is disposed; status becomes a new row count.
Scope
postgres_sql_workspace/mysql_sql_workspace/sqlite_sql_workspacewith the same discard confirm as tab close (showUnsavedTabChangesDialogorconfirmDiscardTableEditsIfDirty).Out of scope