Fix for CONPY-78:

Instead of checking the server version number if a specific feature
is supported, we need to check the server capability or extended
capability flag.
This commit is contained in:
Georg Richter
2020-06-15 10:13:26 +02:00
parent d0e484f8c2
commit ed2695b68c
3 changed files with 21 additions and 8 deletions

View File

@ -424,9 +424,6 @@ MrdbParser_parse(MrdbParser *p, uint8_t is_batch, char *errmsg, size_t errmsg_le
#define MrdbIndicator_Check(a)\
(Py_TYPE((a)) == &MrdbIndicator_Type)
#define MARIADB_FEATURE_SUPPORTED(mysql,version)\
(mysql_get_server_version((mysql)) >= (version))
#define MARIADB_CHECK_CONNECTION(connection, ret)\
if (!(connection) || !(connection)->mysql)\
{\