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

SELECT with binary object fails

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.0b1
    • Fix Version/s: 1.1.0b2
    • Component/s: DBAPI 2.0
    • Labels:
      None
    • Python Version:
      3.9

      Description

      Select with binary parameter fails.

      Example:

      import mariadb
      import os
       
      connection= mariadb.connect(db="test")
       
      data= os.urandom(32)
      cursor= connection.cursor()
      cursor.execute("create temporary table t1 (a blob)")
       
      cursor.execute("insert into t1 values (?)", (data,))
      cursor.execute("select * from t1 where a=?", (data,))
      rows= cursor.fetchall()
      print(rows)
      

      Output:

      []
      

        Attachments

          Activity

            People

            Assignee:
            georg Georg Richter
            Reporter:
            georg Georg Richter
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Git Integration