Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the line numbers in errors start from the beginning of file #872

Open
n-splv opened this issue Feb 12, 2024 · 0 comments
Open

Make the line numbers in errors start from the beginning of file #872

n-splv opened this issue Feb 12, 2024 · 0 comments

Comments

@n-splv
Copy link

n-splv commented Feb 12, 2024

When exploring the data, it's not uncommon to have multiple rather complex queries written in a single file. In the UI the line numbers start from the beginning of a file, which is conventional.

However, if a query contains errors, the traceback reports its line number starting from the query itself:

/*
Other queries here
*/
select this;
ERROR:  column "this" does not exist
LINE 1: select this;
               ^

So when your error is at line 42, you have to go check which line does your query begin at and do the math in your head, which is not too hard, but definitely not convenient either :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant