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

Cursor with empty param

    XMLWordPrintable

Details

    • New Feature
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 0.9.55
    • 0.9.57
    • DBAPI 2.0
    • 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

            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.