Uploaded image for project: 'MariaDB Connector/Python'
  1. MariaDB Connector/Python
  2. CONPY-222

del cursor after cursor.close() raises exception

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 1.1.4
    • 1.1.5
    • DBAPI 2.0
    • None
    • 3.10

    Description

      When deleting a cursor via del cursor and the cursor was closed before, an exception will be thrown:

      >>> import mariadb
      >>> c=mariadb.connect()
      >>> cursor=c.cursor()
      >>> cursor.close()
      >>> del cursor
      Exception ignored in: <function Cursor._del_ at 0x7ff0136b8ee0>
      mariadb.ProgrammingError: Cursor is closed

      Same issue was reported on Stackoverflow

      Attachments

        Activity

          People

            georg Georg Richter
            georg Georg Richter
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.