“ProgrammingError: syntax error at or near” when executing query in python using psycopg2

前端 未结 1 1533
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-27 14:27

I am running Python v 2.7 and psycopg2 v 2.5 I have a postgresql database function that returns a sql query as a text field.

I am using the following code to call the fu

相关标签:
1条回答
  • 2021-01-27 15:08

    It'd add more clarity if you could describe your table schema in the question.

    The probably mistake could be that either of the following parameters that you are using for string formatting is None.

    (row,old_time,current_time)
    

    Please check your code to resolve the same.

    0 讨论(0)
提交回复
热议问题