1mariadb_connection(3) MariaDB Connector/C mariadb_connection(3)
2
3
4
5 Name
6 mariadb_connection - checks if the client is connected to a MariaDB
7 database server
8
9 Synopsis
10 #include <mysql.h>
11
12 my_bool mariadb_connection(MYSQL * mysql);
13
14 Description
15 Checks if the client is connected to a MariaDB or MySQL database serv‐
16 er.
17
18 Parameter
19 mysql - mysql handle, which was previously allocated by mysql_init(3)
20 and connected by mysql_real_connect(3).
21
22 Return value
23 Returns a non zero value if connected to a MariaDB database server,
24 otherwise zero.
25
26
27
28Version 3.3.1 mariadb_connection(3)