mysql_get_client_version(3)

πŸ“¦
version 13.0.2 Β· 4 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, centos-stream 10, debian trixie, fedora 43, fedora 44, nixpkgs unstable, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ mysql_get_client_version ✨

okay bestie, welcome to the MariaDB Connector/C manual page for mysql_get_client_version(3) πŸ’… this one's short and sweet, we love a low-effort slay.


🌸 NAME 🌸

mysql_get_client_version β€” returns client version number πŸ‘‘


πŸŽ€ SYNOPSIS πŸŽ€

unsigned long mysql_get_client_version(void);

πŸ¦‹ DESCRIPTION πŸ¦‹

so basically this function returns a number representing the client library version πŸ’– it's giving "one integer that contains multitudes" fr fr.

the value has the format XXYYZZ, and it's built like this:

major version * 10000 + minor version * 100 + patch version

so the number is literally just the version parts smooshed together. iconic math, no cap ✨

πŸ’œ Notes πŸ’œ

  • if you want a string containing the client library version instead, use the mysql_get_client_info(3) function 🫢 different vibe, same energy.
  • ⚠️ big one, pay attention bestie: since MariaDB Server 10.2.6 and MariaDB Connector/C 3.0.1, the client library is bundled with the server package and returns the server package version 😭 so it's not the connector's own version anymore. if you want the client version of the connector, please use the constant MARIADB_PACKAGE_VERSION_ID instead. periodt.

⭐ RETURN VALUE ⭐

a long integer representing the client version πŸ’… that's it, that's the whole thing.


🌈 SEE ALSO 🌈


Version 3.4 of this page, and yeah, it lives under mysql_get_client_version(3) β€” that's the whole glow-up, mwah πŸ’‹ thanks for reading bestie, go call mysql_get_client_info(3) if you need the string version, ily πŸŽ€πŸ¦‹πŸ’–

πŸ“¦ where this page comes from