Documentation Home
MySQL 5.7 C API Developer Guide
Download this Manual
PDF (US Ltr) - 1.1Mb
PDF (A4) - 1.1Mb
HTML Download (TGZ) - 141.5Kb
HTML Download (Zip) - 164.5Kb


MySQL 5.7 C API Developer Guide  /  C API Function Descriptions  /  mysql_get_client_version()

7.28 mysql_get_client_version()

unsigned long mysql_get_client_version(void)

Description

Returns an integer that represents the MySQL client library version. The value has the format XYYZZ where X is the major version, YY is the release level (or minor version), and ZZ is the sub-version within the release level:

major_version*10000 + release_level*100 + sub_version

For example, "5.7.33" is returned as 50733.

The function value is the version of MySQL that provides the client library. For more information, see Section 4.5, “C API Server Version and Client Library Version”.

Return Values

An integer that represents the MySQL client library version.

Errors

None.