Is it possible to return a line number in syntax error messages? Something like: Syntax error near "("
is completely unhelpful when I have 40+ open parentheses in a query.
I know you can get the cursor position of the error, so why not be able to count the new lines between the start of the doc and the cursor position?