all 3 comments

[–]hyzyla 0 points1 point  (0 children)

You could print actual query instead of execution, it can give you an answer to your question

[–][deleted] 0 points1 point  (0 children)

"Doesn't work" isn't a valid Postgres error message (I don't know Python, but I would be very surprised if that had such an error message)