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

Cursor parameters as list

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed (View Workflow)
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 0.9.55
    • Fix Version/s: 0.9.56
    • Component/s: DBAPI 2.0
    • Labels:
      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

            Assignee:
            georg Georg Richter
            Reporter:
            lucianobarcaro Luciano Barcaro
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: