[CONPY-129] "Commands out of sync; you can't run this command now" when call system tables Created: 2020-11-11 Updated: 2020-11-16 Resolved: 2020-11-11 |
|
| Status: | Closed |
| Project: | MariaDB Connector/Python |
| Component/s: | DBAPI 2.0 |
| Affects Version/s: | 1.0.4 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Blocker |
| Reporter: | Frank | Assignee: | Georg Richter |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Environment: |
MariaDB 10.5.7 |
||
| Description |
|
When I try to get system tables with this sample:
If fails with: |
| Comments |
| Comment by Georg Richter [ 2020-11-11 ] |
|
This is expected behavior, since MariaDB Connector/Python uses unbuffered resultsets by default. If you want to buffer your results, you need to declare a cursor with keyword buffered=True . For using multiple cursors on the same connection with unbuffered result set you have to specify cursor_type when creating the cursor. |
| Comment by Frank [ 2020-11-11 ] |
|
The final problem is, that both connectors has the same option, but in different manner. |