First, please post plain text.
Second, you are not capturing the error from the query; capture and print 
that error and it will likely inform you what the issue is. (On the 
row.Scan.)
Third, perhaps the issue is your use of $1 instead of ?. 

This is regarding sqlx, but the issue they describe seems to be postgres 
vs. mysql issue rather than sqlx specific: 
https://github.com/jmoiron/sqlx/issues/78

So perhaps the error you would find after dealing with my second issue 
above would be something like the error the above person was getting, "Error 
1054: Unknown column '$1' in 'where clause'"

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/924da652-961b-4b2d-80f6-50b06710403ao%40googlegroups.com.

Reply via email to