Closed MathiasG-2159628 closed 7 months ago
solved: needed to assign connection.cursor() to a variable:
connection = psycopg2.connect(**db_params)
cur = connection.cursor()
cur.execute('SELECT * FROM rri;')
rows = cur.fetchall()
connection.commit()
connection.close()
After using the following query , I receive the error: psycopg2.ProgrammingError: no results to fetch. However there are clearly records present in the database table.
Insert operations work just fine.
I really appreciate if someone can reach out because I'm at my wit's end.