[Tarantool-patches] [PATCH] sql: display line and position in syntax errors

Nikita Pettik korablev at tarantool.org
Fri Dec 27 20:07:23 MSK 2019


On 11 Dec 17:36, Nikita Pettik wrote:
> 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
> ---
> Branch: https://github.com/tarantool/tarantool/tree/np/gh-2611-line-pos-syntax-error
> Issue: https://github.com/tarantool/tarantool/issues/2611
> v1: https://lists.tarantool.org/pipermail/tarantool-patches/2019-October/011841.html

If nobody has objections (concerning new error messages patterns),
I am going to push it.



More information about the Tarantool-patches mailing list