Bug in query parameter string formatting #1

Closed
mgrabmueller opened this Issue Apr 29, 2011 · 1 comment

Comments

Projects
None yet
2 participants

When putting one question mark into the query and putting one parameter into the parameter list of query, the error message

Database.MySQL.formatQuery: more '?' characters than parameters

results. My query looks like this:

cust <- MS.query connection "select id, name, resellerID, comment from customer where id=?" [custId] :: IO [(Int, ByteString, Int, ByteString)]

BTW: Thanks for your work and for sharing.

Collaborator

bos commented Apr 29, 2011

Fixed in 06eed69, thanks.

bos closed this Apr 29, 2011

bos was assigned Apr 29, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment