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
Description
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 ")"