Skip to main content
code formatting
Source Link
julienc
  • 20.4k
  • 19
  • 87
  • 86

Thanks to JoshuaBoshi for his answer, which solved the problem. After calling the procedure, I had to close the cursor and open it again before using it to execute another statement:

cursor.close()

cursor = connection.cursor()

cursor.close() 

cursor = connection.cursor() 

The cursor can be closed immediately after fetchall()fetchall(). The result set still remains and can be looped through.

Thanks to JoshuaBoshi for his answer, which solved the problem. After calling the procedure, I had to close the cursor and open it again before using it to execute another statement:

cursor.close()

cursor = connection.cursor()

The cursor can be closed immediately after fetchall(). The result set still remains and can be looped through.

Thanks to JoshuaBoshi for his answer, which solved the problem. After calling the procedure, I had to close the cursor and open it again before using it to execute another statement:

cursor.close() 

cursor = connection.cursor() 

The cursor can be closed immediately after fetchall(). The result set still remains and can be looped through.

added 114 characters in body
Source Link
user984003
  • 29.9k
  • 69
  • 205
  • 319

Thanks to JoshuaBoshi for his answer, which solved the problem. After calling the procedure, I had to close the cursor and open it again before using it to execute another statement:

cursor.close()

cursor = connection.cursor()

The cursor can be closed immediately after fetchall(). The result set still remains and can be looped through.

Thanks to JoshuaBoshi for his answer, which solved the problem. After calling the procedure, I had to close the cursor and open it again before using it to execute another statement:

cursor.close()

cursor = connection.cursor()

Thanks to JoshuaBoshi for his answer, which solved the problem. After calling the procedure, I had to close the cursor and open it again before using it to execute another statement:

cursor.close()

cursor = connection.cursor()

The cursor can be closed immediately after fetchall(). The result set still remains and can be looped through.

Source Link
user984003
  • 29.9k
  • 69
  • 205
  • 319

Thanks to JoshuaBoshi for his answer, which solved the problem. After calling the procedure, I had to close the cursor and open it again before using it to execute another statement:

cursor.close()

cursor = connection.cursor()