Skip to content

Make the results of every statement in a script reachable #844

Closed

Description

@EVWorth

Severity: P2.

What happens

On http://localhost:1420/?mock=connected:

  1. Enter UPDATE products SET price = 1 WHERE id = 1; and SELECT * FROM products; on two lines and press Ctrl+Shift+Enter. The pane shows only "Query executed. 1 row(s) affected. (2ms)". There are no result tabs, so the SELECT's grid cannot be reached at all.
  2. Reverse the order (SELECT ...; UPDATE ...;). "Result 1" and "Result 2" tabs appear above the grid. Clicking Result 2 replaces the whole pane, tab strip included, with the "1 row(s) affected" message, so there is no way back to Result 1 short of re-running.
  3. The tabs are labelled only "Result 1 / Result 2", not by statement or row count.

FR-2.2.1 and FR-2.2.6 ask for every result set, displayed in order.

Cause

src/components/grid/ResultsGrid.tsx:304-306 returns <GridPlaceholder> whenever the active result has no columns. That return comes before the result-tab strip is rendered at :332-347.

Fix

Render the result-tab strip above both the placeholder and the grid. Label each tab with its statement (verb and table) and its row or affected count. Default to the first result that has columns.

Part of #783.

Activity

  1. added
    bug
    on Oct 21, 2026
  2. added a commit that references this issue on Oct 29, 2026
    4aa59c3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions