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
The following snippet fails if the statements in execute() and executemany() are the same, since the current implementation doesn't reprepare the statement.
import mariadb |
|
c=mariadb.connect(db="test", user="foobar", password="foobar", host="127.0.0.1") |
cursor=c.cursor() |
|
cursor.execute("insert into t1 values (NULL,?)", (1,)); |
cursor.executemany("insert into t1 values (NULL,?)", [(1,),(2,)]); |