Skip to content
This repository was archived by the owner on Oct 18, 2023. It is now read-only.
This repository was archived by the owner on Oct 18, 2023. It is now read-only.

SQL parse errors difficult to understand #459

Open
@CodingDoug

Description

@CodingDoug

A few examples:

select * from table_name,;

SQL string could not be parsed: near SEMI, "None": syntax error at (1, 27)

create table table_name (
    text_ text,
);

SQL string could not be parsed: near RP, "None": syntax error at (3, 2)

In all cases, the "None" doesn't seem to be helpful at all. Maybe that's a rust string format thing.

I'm not really sure what information we have at our disposal to improve this. The sqlite3 CLI:

  • Shows surrounding text
  • Points an arrow at the location of the parse error
  • Converts symbols like "RP" to ")"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions