Skip to content

Format position in sql #36

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

Merged
merged 6 commits into from
Feb 27, 2025
Merged

Format position in sql #36

merged 6 commits into from
Feb 27, 2025

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.

2 participants