[CONPY-56] Support dictionary option in cursor class Created: 2020-04-12 Updated: 2020-04-14 Resolved: 2020-04-14 |
|
| Status: | Closed |
| Project: | MariaDB Connector/Python |
| Component/s: | DBAPI 2.0 |
| Affects Version/s: | 0.9.56 |
| Fix Version/s: | 0.9.57 |
| Type: | New Feature | Priority: | Major |
| Reporter: | Georg Richter | Assignee: | Georg Richter |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Compatibility | ||
| Description |
|
Support returning Dict class instead of default list when fetching rows:
should return
|
| Comments |
| Comment by Georg Richter [ 2020-04-12 ] | |||||||
|
It should be documented, that this option only exists for compatibility reasons. If possible dictionary=True should be avoided, since it may lead to inconsistency: While in a dictionary keys are unique, they are not unique in a result set:
| |||||||
| Comment by Georg Richter [ 2020-04-14 ] | |||||||
|
rev. e873f87fabe99410dab5e736eb6f50104fbd1999 |