Open simkoc opened 4 years ago
Please try this:
(dbi:with-connection (con :postgres
:username "test"
:database-name "test")
(apply #'dbi:execute
(dbi:prepare con
"SELECT a,
b
FROM T
WHERE c = ? AND
a IN ? AND")
2
(list "1" "2")))
Sorry for the delay. I still get the same exception.
I have the following issue:
results in
DB Error: syntax error at or near "$2" (Code: 42601)
But
does not.
How can I prepare a statement when I have list(s) as parameters?