Changes in cl-postgres and s-sql to allow use of plain proper lists in parameterized queries. Previously only vectors could be used. The following show examples using both vectors and lists in queries using both raw sql and s-sql.
(query "select name from employee where id = any($1)"
#(1 3 4))
(query "select name from employee where id = any($1)"
'(1 3 4))
(let ((emp-ids #(1 2)))
(query "select name from employee where id = any($1)"
emp-ids))
(let ((emp-ids '(1 2)))
(query "select name from employee where id = any($1)"
emp-ids))
(query (:select 'name :from 'employee :where (:= 'id (:any* '$1)))
#(1 3) :column)
'("Jason" "Celia")
(query (:select 'name :from 'employee :where (:= 'id (:any* '$1)))
'(1 3) :column)
'("Jason" "Celia")
Plain proper lists can also now be used in s-sql queries using :in. Previously you needed to use :set
Changes in cl-postgres and s-sql to allow use of plain proper lists in parameterized queries. Previously only vectors could be used. The following show examples using both vectors and lists in queries using both raw sql and s-sql.
Plain proper lists can also now be used in s-sql queries using :in. Previously you needed to use :set
Now you can also provide a list.