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

cursor.rowcount returns 0 after a SELECT query that produces 1 row

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.9.59
    • Fix Version/s: 1.0.0
    • Component/s: Generic
    • Labels:
      None
    • Environment:
      Windows 10 64-bit, Python 3.8.3, MariaDB 10.4 (x64), MariaDB Connector/C 3.1.7

      Description

      After cursor.execute() for a few SELECT queries I am always getting cursor.rowcount==0. The documentation here https://github.com/mariadb-corporation/mariadb-connector-python/wiki/cursor.md says "... the number of rows that the last execute*() produced (for DQL statements like SELECT) ..."

        Attachments

          Activity

            People

            Assignee:
            georg Georg Richter
            Reporter:
            rserge Serge Rogatch
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: