Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
1.1.0a1
-
None
-
3.9
Description
Since execute() and executemany() use the same callback for retrieving data, array_size needs to be cleared.
Example:
import mariadb
connection= mariadb.connect(db="test") |
|
cursor= connection.cursor() |
|
cursor.execute("create temporary table t1 (a int, b int)") |
|
cursor.executemany("insert into t1 values (?,?)", [(1,2),(3,4)]) |
|
cursor.execute("insert into t1 values (?,?)", (4,5)) |
raises exception:
mariadb.DataError: Can't access column number 1 at row 1
Attachments
Activity
Field | Original Value | New Value |
---|---|---|
Affects Version/s | 1.1.0a1 [ 26100 ] | |
Affects Version/s | 1.1.0 [ 25706 ] |
Fix Version/s | 1.1.0a2 [ 26093 ] |
issue.field.resolutiondate | 2021-09-07 06:49:52.0 | 2021-09-07 06:49:52.242 |
Resolution | Fixed [ 1 ] | |
Status | Open [ 1 ] | Closed [ 6 ] |
Workflow | MariaDB v3 [ 124854 ] | MariaDB v4 [ 135716 ] |