Answer the question
In order to leave comments, you need to log in
Why is there an error when passing a tuple of 1 element to a sql query?
Dear developers, the question arose why an exception is generated when passing a tuple to a SQL query:
psycopg2.ProgrammingError: syntax error at or near ")"
LINE 7: ...roduct='T' and c.status='A' ORDER BY c.id in (194,) DESC,c.c...
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question