mysql_get_proto_info - mariadb-corporation/mariadb-connector-c GitHub Wiki
mysql_get_proto_info - Returns protocol version number
#include <mysql.h>
unsigned int mysql_get_proto_info(MYSQL * mysql);
Returns the protocol version number for the specified connection
-
mysql
- a connection identifier, which was previously allocated by mysql_init() and connected by mysql_real_connect().
MariaDB Connector/C doesn't support protocol version 9 and prior.
The protocol version number in use