Skip to content
Snippets Groups Projects
Commit ea958f41 authored by Nikita Pettik's avatar Nikita Pettik
Browse files

sql: display line and position in syntax errors

When it comes for huge queries, it may turn out to be useful to see
exact position of occurred error. Hence, let's now display line and
position within line near which syntax error takes place. Note that it
can be done only during parsing process (since AST can be analysed only
after its construction is completed), so most of semantic errors still
don't contain position. A few errors have been reworked to match new
formatting patterns.

First iteration of this patch is implemented by @romanhabibov

Closes #2611
parent 64745b10
No related branches found
No related tags found
No related merge requests found
Showing
with 126 additions and 72 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment