[CONPY-128] Add get_server_version() function Created: 2020-11-11 Updated: 2020-11-16 Resolved: 2020-11-16 |
|
| Status: | Closed |
| Project: | MariaDB Connector/Python |
| Component/s: | Generic |
| Affects Version/s: | 1.0.4 |
| Fix Version/s: | 1.0.5 |
| Type: | New Feature | Priority: | Major |
| Reporter: | Frank | Assignee: | Georg Richter |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
During the migration from the MySQL connector to the MariaDB one, I found an missing but important function. |
| Comments |
| Comment by Georg Richter [ 2020-11-11 ] | ||||
|
What's wrong with using server_version?
| ||||
| Comment by Frank [ 2020-11-11 ] | ||||
|
get_server_version will return an tuple and server_version only an integer. | ||||
| Comment by Georg Richter [ 2020-11-16 ] | ||||
|
Implemented in rev. a47d3e5d760d037e57082b663d7f3c9fd350a998 Added connection attribute server_version_info and (for compatibility) get_server_version() method. Both return a tuple, describing the version number of connected server in following format: (MAJOR_VERSION, MINOR_VERSION, PATCH_VERSION) |