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:
[]
|