PyMySQLPool icon indicating copy to clipboard operation
PyMySQLPool copied to clipboard

raise err.ProgrammingError("Cursor closed") pymysql.err.ProgrammingError: Cursor closed

Open mupciamkotki opened this issue 2 years ago • 0 comments

raise err.ProgrammingError("Cursor closed") pymysql.err.ProgrammingError: Cursor closed Not sure what's wrong

with cur as cursor: pool.init() sql = "INSERT INTO users (email, password) VALUES (%s, %s)" cur.execute(sql, (email, password)) pool.release(connection)

      edit it was due to it being in with block, but now it works for a few threads and I still get packet sequence error 

mupciamkotki avatar Jan 18 '23 15:01 mupciamkotki