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

Cursor with empty param

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.9.55
    • Fix Version/s: 0.9.57
    • Component/s: DBAPI 2.0
    • Labels:
      None

      Description

      In order to ease the migration to Connector/Python, consider accept empty tuple or empty list as parameter.

      db = mariadb.connect(....)
      qr = db.cursor()
       
      qr.execute("select 1", [])
      mariadb.DatabaseError.DataError: Invalid number of parameters
      
      

        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: