0

As the title states, I am not getting the line numbers for errors in SQL Developer when I query a Postgres DB. Just a position error. Something like:

ERROR: syntax error at or near "SELECT"
Position: 135

I went into the preference and have the 'Show Line Numbers' enabled:

enter image description here

but they aren't showing. Is this an issue with Postgres in SQL Developer or something else?

Thanks.

1
  • Looks like an issue with your editor, I tried 2 different editors on some bad SQL and both gave me a nice error message. Including the line and position of the error. Commented Jan 26, 2022 at 19:26

1 Answer 1

0

Preference you set is related to line numbers here:

enter image description here

(that's the result of a mouse right-click).

What you're looking for is related to the way database reports errors. As far as Oracle is concerned, it works as expected:

enter image description here

As I don't use PostgreSQL, I can't comment it.

Sign up to request clarification or add additional context in comments.

2 Comments

Thanks @Littlefoot I think you might be on to something. This is likely an issue with the database returning the error as opposed ot SQL Developer. I'll have a look at that and see if there's something that can be done in Postgres.
You're welcome; good luck!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.