Skip to content

Conversation

@leefernandes
Copy link

@leefernandes leefernandes commented Mar 23, 2024

This PR is to improve the error message returned by sqlx when a named bind parameter name is empty.
Example: SELECT * FROM person WHERE id=:id -- TODO: Improve stuff

Instead of could not find name in struct{ID:1}
the output is sqlx.bindArgs: empty named parameter at index 1 in []string{"id", ""}

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