Skip to content

Conversation

@LHolten
Copy link

@LHolten LHolten commented Feb 25, 2025

This adds more detail to errors when preparing a statement fails due to a syntax error or unknown column.
Errors now look like this:

db error: ERROR: column "invalid_field" does not exist
SQL: SELECT /*ERROR =>*/invalid_field FROM test_user WHERE name = $1;

It includes a single line of the SQL code and inserts the /*ERROR =>*/ comment

basbossink-ds
basbossink-ds previously approved these changes Feb 25, 2025
Copy link

@basbossink-ds basbossink-ds left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@LHolten
Copy link
Author

LHolten commented Feb 26, 2025

this is not quite done yet

@LHolten
Copy link
Author

LHolten commented Feb 27, 2025

Now it is done I believe

Copy link

@basbossink-ds basbossink-ds left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@basbossink-ds basbossink-ds merged commit 913a65f into master Feb 27, 2025
2 of 4 checks passed
@rudolphfroger rudolphfroger deleted the format-position-in-sql branch March 19, 2025 08:48
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.

3 participants