Skip to content

fix: SQLite errors marked with the MySQL splitter #932

Closed

Description

@EVWorth

When a statement in a script fails, resultStore's failedStatementOf finds it with splitSqlStatements, the MySQL splitter, even on a SQLite connection. That splitter doesn't know SQLite trigger bodies (BEGIN … END;) and handles # comments and backslash escapes the MySQL way. On a SQLite script that contains a trigger, the highlighted statement and the "Statement N of M" count can be wrong even though statementIndex is right.

Fix

Build the failing statement's text from what the backend reports (each SQLite result carries sql after #928), or choose the splitter by connection type. Test with a SQLite script whose trigger body comes before the failing statement.

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