[CONPY-109] Support for multiple statements in cursor.execute Created: 2020-08-20 Updated: 2020-09-01 Resolved: 2020-09-01 |
|
| Status: | Closed |
| Project: | MariaDB Connector/Python |
| Component/s: | DBAPI 2.0 |
| Affects Version/s: | None |
| Fix Version/s: | N/A |
| Type: | New Feature | Priority: | Major |
| Reporter: | Jürgen Schwarze | Assignee: | Georg Richter |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | None | ||
| Attachments: |
|
| Description |
|
The following code with import changed for MySQL connector works with MySQL, but the MariaDB connctor has no keyword parameter multi in its cursor.execute method. It would be great, to see this functionality in an upcoming version of the MariaDB for Python connector. With such an function the user
The code for operations.sql could look like this:
|
| Comments |
| Comment by Georg Richter [ 2020-09-01 ] | |||||||||||||
|
Similiar to MySQLdb or pymysql multi statement capability has to be set when establishing the connection, not via execute.
| |||||||||||||
| Comment by Jürgen Schwarze [ 2020-09-01 ] | |||||||||||||
|
I was not aware of this way to solve my problem. This is a great solution. |