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

del cursor after cursor.close() raises exception

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.4
    • Fix Version/s: 1.1.5
    • Component/s: DBAPI 2.0
    • Labels:
      None
    • Python Version:
      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

            Assignee:
            georg Georg Richter
            Reporter:
            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.