Details
- 
    Bug 
- 
    Status: Closed (View Workflow)
- 
    Major 
- 
    Resolution: Fixed
- 
    1.1.0b1
- 
    None
- 
        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,)]); |