Python mysql.connector InternalError: Unread result found when close cursor

前端 未结 2 1680
执笔经年
执笔经年 2021-01-13 17:32

I want to read part of result from cursor and then close it without reading all result. cursor.close() raises InternalError: Unread result found. I

2条回答
  •  滥情空心
    2021-01-13 18:06

    All you have to do is pass buffered = true in your cursor. Read more official docs

    cursor = conn.cursor(buffered=True)
    

提交回复
热议问题