[CONC-579] provide capabilities API Created: 2022-02-09  Updated: 2022-02-10  Resolved: 2022-02-09

Status: Closed
Project: MariaDB Connector/C
Component/s: API
Affects Version/s: None
Fix Version/s: N/A

Type: Task Priority: Minor
Reporter: Diego Dupin Assignee: Georg Richter
Resolution: Done Votes: 0
Labels: None


 Description   

Maxscale derive the capabilities from the version to know whether in order to return capabilities to connectors.
It would be more accurate if c/c provide an API to get capabilities, in order to use real server information, and not imagined from a 'server version' that will be particulary wrong if xpand.



 Comments   
Comment by Lawrin Novitsky [ 2022-02-09 ]

There are info types for that for mariadb_get_infov. e.g.

unsigned long ServerCapabilities, ServerExtCapabilities;
mariadb_get_infov(mariadb, MARIADB_CONNECTION_SERVER_CAPABILITIES, (void*)&ServerCapabilities);
mariadb_get_infov(mariadb, MARIADB_CONNECTION_EXTENDED_SERVER_CAPABILITIES, (void*)&ServerExtCapabilities);

mariadb_get_infov

Comment by Lawrin Novitsky [ 2022-02-09 ]

I guess this issue can be closed

Comment by markus makela [ 2022-02-10 ]

I'll be damned, it already exists. I'll make sure to take these into use in MaxScale ASAP.

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