Skip to content

fix: SQLite queries have no row cap #933

Closed

Description

@EVWorth

The SQLite executor (mas-sqlite/src/query.rs) reads every row and always reports rows_truncated: false. A SELECT * on a large table loads the whole table into memory and sends all of it over IPC. The MySQL executor stops at the row limit and sets rows_truncated.

Fix

Apply the same row limit and memory guard the MySQL path uses, set rows_truncated, and add a test with more rows than the limit.

Related, smaller

  • SQLite results never report transaction, although Connection::is_autocommit() could answer it cheaply. That would give the TX badge (Show an open transaction, and warn before closing a tab that has one #843) on SQLite too.
  • datasource.ts hard-codes index_type: "BTREE" for SQLite. SqliteIndexInfo can't express DESC, collation or partial indexes, so showing them would need new IPC fields.

Activity

  1. added
    bug
    on Oct 30, 2026
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