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

Cursor parameters as list

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed (View Workflow)
    • Trivial
    • Resolution: Fixed
    • 0.9.55
    • 0.9.56
    • DBAPI 2.0
    • None

    Description

      Cursor parameters are allowed to be only tuples.

      qr.execute('select ?', [True])
      Traceback (most recent call last):
        File "<input>", line 1, in <module>
          qr.execute('select ?', [True])
      TypeError: argument 2 must be tuple!
      

      Please consider accept list as well, it makes migration to Connector/Python a lot easier.

      Attachments

        Activity

          People

            georg Georg Richter
            lucianobarcaro Luciano Barcaro
            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.