[CONPY-78] Check for server capabilities instead of version Created: 2020-06-15  Updated: 2020-06-15  Resolved: 2020-06-15

Status: Closed
Project: MariaDB Connector/Python
Component/s: DBAPI 2.0, Generic
Affects Version/s: 0.9.59
Fix Version/s: 1.0.0

Type: Bug Priority: Major
Reporter: Georg Richter Assignee: Georg Richter
Resolution: Fixed Votes: 0
Labels: None


 Description   

To check if the server supports bulk operations we need to check the extended capability flag instead of server version number:

mariadb_get_infov(self->stmt->mysql, 
                      MARIADB_CONNECTION_EXTENDED_SERVER_CAPABILITIES,
                      &extended_server_capabilities);
  if (!(extended_server_capabilities & (MARIADB_CLIENT_STMT_BULK_OPERATIONS >> 32)))
  {
      ...
  }


Generated at Thu Feb 08 03:30:05 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.