mariadb_dyn...mn_cmp_named(3)
β¨ mariadb_dyn...mn_cmp_named π
okay so bestie, we're in the MariaDB Connector/C manual, and today's main character is mariadb_dyncol_column_cmp_named. yes the name is a whole mouthful, no we are not renaming it, it's iconic as is. π
πΈ Name πΈ
mariadb_dyncol_column_cmp_named β literally just compares two column names. that's the whole job. that's the vibe. β¨
π¦ Synopsis π¦
#include <mariadb_dyncol.h>
int mariadb_dyncol_column_cmp_named(const MYSQL_LEX_STRING *s1,
const MYSQL_LEX_STRING *s2);
π Description π
so what it does is it compares two dynamic column keys, and those keys are handed to it as a pointer to a MYSQL_LEX_STRING structure. that's it. two keys walk in, a comparison walks out. π«Ά
π Parameter π
s1β the first key, the one going in first, no pressure bestie πs2β the second key, the challenger π¦
β Return value β
it hands you back an integer, and the sign is the whole story: it's less than, equal to, or greater than zero depending on whether the first bytes of s1 are found, respectively, to be less than, to match, or be greater than the first bytes of s2. yes that sentence is a lot. no you can't skip it. that's the contract, periodt. π
ngl, the sign is the entire point here β don't just check for zero and call it a day, that's not the vibe check the function is doing. π
and that's the page!! Version 3.4, straight out of the MariaDB Connector/C manual, mwah π go forth and compare those column names, you absolute legend π§ββοΈπβ¨
π¦ where this page comes from
- alpine 3.22: mariadb-doc 11.4.13-r0 Β· GPL-2.0-or-later
- alpine 3.23: mariadb-doc 11.4.13-r0 Β· GPL-2.0-or-later
- alpine 3.24: mariadb-doc 11.8.9-r0 Β· GPL-2.0-only
- arch rolling: mariadb 13.0.2-2 Β· GPL-2.0-only
- arch rolling: mariadb-lts 12.3.3-2 Β· GPL-2.0-only
- centos-stream 10: mariadb-connector-c-doc 3.4.4-2.el10 Β· LGPL-2.1-or-later
- debian trixie: libmariadb-dev 1:11.8.6-0+deb13u1 Β· GPL-2.0-only
- fedora 43: mariadb-connector-c-doc 3.4.5-2.fc43 Β· LGPL-2.1-or-later AND PHP-3.0 AND PHP-3.01
- fedora 43: mariadb-connector-c-doc 3.4.9-2.fc43 Β· LGPL-2.1-or-later AND PHP-3.0 AND PHP-3.01 AND LicenseRef-Fedora-Public-Domain
- fedora 44: mariadb-connector-c-doc 3.4.8-3.fc44 Β· LGPL-2.1-or-later AND PHP-3.0 AND PHP-3.01
- fedora 44: mariadb-connector-c-doc 3.4.9-2.fc44 Β· LGPL-2.1-or-later AND PHP-3.0 AND PHP-3.01 AND LicenseRef-Fedora-Public-Domain
- nixpkgs unstable: mariadb-server 11.8.8
- opensuse-leap 16.0: libmariadb-devel 3.4.9-160000.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: libmariadb-devel 3.4.9-160000.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: libmariadb-devel 3.4.9-160000.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: libmariadb-devel 3.4.9-160000.1.1 Β· LGPL-2.1-or-later
- ubuntu questing: libmariadb-dev 1:11.8.3-1build1
- ubuntu resolute: libmariadb-dev 1:11.8.6-5 Β· GPL-2.0-only
- ubuntu resolute: libmariadb-dev 1:11.8.6-5ubuntu0.1 Β· GPL-2.0-only
- ubuntu stonking: libmariadb-dev 1:11.8.9+ds-4ubuntu2 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms