[MXS-3993] Use native capability API from C/C Created: 2022-02-10  Updated: 2022-03-02  Resolved: 2022-03-02

Status: Closed
Project: MariaDB MaxScale
Component/s: Protocol
Affects Version/s: None
Fix Version/s: 22.08.0

Type: Task Priority: Minor
Reporter: markus makela Assignee: markus makela
Resolution: Fixed Votes: 0
Labels: None

Sprint: MXS-SPRINT-151

 Description   

Now that we found out that one is available in CONC-579, we ought to take it into use.

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);



 Comments   
Comment by markus makela [ 2022-02-23 ]

The practical benefits of this are quite low as the capabilities are mostly hard-coded based on the database version. The only real case where this would help if the database sends a faked version string claiming to be something newer than it is.

Generated at Thu Feb 08 04:25:26 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.