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
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.