[postmodern-devel] Passing a list to a prepared query

Sebastian Tennant sebyte at smolny.plus.com
Fri May 14 17:53:08 UTC 2010


Hi,

I'd like to do this:

 (defprepared addresses-by-ids
   "SELECT address FROM users WHERE id IN $1" :column)

and then call it like so:

 CLUSER> (addresses-by-ids "(1,2,3)")

Is this possible?  I've tried a few different approaches but keep getting
errors.

Many thanks for great software by the way.

Seb
-- 
Emacs' AlsaPlayer - Music Without Jolts
Lightweight, full-featured and mindful of your idyllic happiness.
http://home.gna.org/eap





More information about the postmodern-devel mailing list