Skip to content

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

@mupciamkotki

Description

@mupciamkotki

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 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions