Postgres SSL SYSCALL error: EOF detected with python and psycopg

前端 未结 7 1916
误落风尘
误落风尘 2020-12-15 03:40

Using psycopg2 package with python 2.7 I keep getting the titled error: psycopg2.DatabaseError: SSL SYSCALL error: EOF detected

It only occurs when I add a WHE

7条回答
  •  温柔的废话
    2020-12-15 04:11

    You may need to express % as %% because % is the placeholder marker. http://initd.org/psycopg/docs/usage.html#passing-parameters-to-sql-queries

提交回复
热议问题