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
Say which statement failed in a script, and keep the earlier results #845
On http://localhost:1420/?mock=connected, run this with Ctrl+Shift+Enter:
SELECT*FROM products;
SELECT*FROM nope;
SELECT1;
The results pane shows a red "Query Error" box reading only "Error: Table 'shop.nope' doesn't exist". It does not say which statement or line failed, and it shows no error code (1146). Nothing is marked in the editor, and the first statement's results, which succeeded, are discarded.
Cause
The backend and the mock reject with a structured error carrying statementIndex, but CommandError keeps only code and sqlState (src/lib/tauri-api.ts:49-60), so the index is lost.
src/stores/resultStore.ts:491 sets results: [] on any failure.
The placeholder renders String(e) (src/components/grid/GridPlaceholder.tsx:36-48).
Fix
Carry statementIndex on CommandError.
Show "Statement 2 of 3 failed (1146)" with the statement text.
Add a Monaco error marker on that statement's range.
Keep and show the results of the statements before it.
Done across #908 (frontend), #916 (completedResults from the backend) and #926 (timeouts keep them too). #922 adds an end-to-end test through the mock.
Activity
fix(query): say which statement of a script failed
fix(editor): editor and results polish from the review
fix(ux): editor, grid and results review fixes (#908)
feat: report completed results and transaction state (#916)
fix: grid cell keys, tx switch prompt, CSV import (#922)
EVWorth commentedon Oct 30, 2026
Done across #908 (frontend), #916 (
completedResultsfrom the backend) and #926 (timeouts keep them too). #922 adds an end-to-end test through the mock.Generated by Claude Code