sqlx icon indicating copy to clipboard operation
sqlx copied to clipboard

Improve error messaging for empty named parameter keys

Open leefernandes opened this issue 2 years ago • 0 comments

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", ""}

leefernandes avatar Mar 23 '24 16:03 leefernandes