paul-rouse / mysql-simple

A mid-level client library for the MySQL database, intended to be fast and easy to use.
Other
91 stars 35 forks source link

Feature request: support for passing lists to variable argument sql functions #30

Closed quickdudley closed 7 years ago

quickdudley commented 8 years ago

My motivating example is the field() function. In the program I'm writing: I'd like to call it with a column name as the initial argument and the remaining arguments defined at runtime. Something like this: query conn "SELECT * FROM example_table ORDER BY field(f,?)" (Only (VaArgs [1,4,2,3])) I don't mind whether VaArgs is a new type or you just use the In type, but the In type doesn't currently work in this context.

paul-rouse commented 7 years ago

Closed via #31