sqlx
sqlx copied to clipboard
Improve error messaging for empty named parameter keys
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", ""}