Closed little-dude closed 5 years ago
So it turns out my query is wrong (I'm an SQL newbie). In the WHERE
clause, it needs AND
instead of commas, which makes sense. I found this by using cls-postgresql
directly instead of conman
:
myapp.db.core=> (get-status db2 {:message_id 3 :user_id 1})
Execution error (PSQLException) at org.postgresql.core.v3.QueryExecutorImpl/receiveErrorResponse (QueryExecutorImpl.java:2468).
ERROR: syntax error at or near ","
Position: 59
It would be nice if conman
was able to report this kind of errors, but that's probably a separate issue.
Sorry for the noise, and thanks for you work on Luminus, it's making me enjoy Clojure and web development :)
No worries, and glad to hear everything's working. :)
Hi,
I'm not 100% sure whether this is an issue with
conman
orhugsql
(or even if something wrong with my code). I have the following sql query:The idea is that I want to be able to do
The query seems ok to me:
But when I execute it I get an un-helpful error message, and this is where I'm stuck:
Do you have any idea about what is wrong with this request?