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

SELECT with binary object fails

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 1.1.0b1
    • 1.1.0b2
    • DBAPI 2.0
    • None
    • 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

            georg Georg Richter
            georg Georg Richter
            Votes:
            0 Vote for this issue
            Watchers:
            1 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.