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

ConnectionPool connection_count property throws an exception

    XMLWordPrintable

Details

    • 3.10

    Description

      It's trying to access a non-existing property:

      return len(self._connections)

      Please double-check the logic but maybe it should sum up the new properties like this:

      return len(self._connections_free) + len(self._connections_used)

      Referring to this line: https://github.com/mariadb-corporation/mariadb-connector-python/blob/1.1/mariadb/connectionpool.py#L292

      Maybe also check if those lists are not None (because they are set to None in the "close" method).

      Attachments

        Activity

          People

            georg Georg Richter
            naktinis Rimvydas
            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.