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

Expected value of lastrowid is 0 but returns None

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 1.1.7, 1.1.8
    • 1.1.9
    • Documentation
    • None
    • 3.12

    Description

      I don't know if the bug is in the description or in the code but the documentation says that cursor.lastrowid will return zero if there was nothing inserted, but the code clearly shows that it will return None, zero can't possibly be returned from this code.
      https://github.com/mariadb-corporation/mariadb-connector-python/blame/v1.1.8/mariadb/cursors.py#L543C25-L543C25

      Attachments

        Activity

          People

            georg Georg Richter
            IRONALEKS Aleks
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.