Skip to content

Conversation

@mousetail
Copy link

Does your PR solve an issue?

This makes Postgres errors include the line number for easier debugging. This makes the error output similar to what MySQL and SQLite do by default.

Is this a breaking change?

While changing the display of an error could in theory break weird workflows, it seems quite unlikely. Worst case people who have already implemented workarounds will get two line numbers.

Alternatives Considered

An alternative would be to print the position rather than the line number. This could maybe be combined with the macros to put an error only under the relevant line, but as an isolated change a line number is more human readable, and more in line with what the other databases implement.

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

Successfully merging this pull request may close these issues.

1 participant