mariadb_dyn...exists_named(3)
β¨ Name β¨
mariadb_dyncol_exists_named β bestie, it checks if a column with a given name exists π
It lives in the MariaDB Connector/C manual, section 3, and it's lowkey one of the most useful little gremlins in the dynamic column family π
π¦ Synopsis π¦
enum enum_dyncol_func_result
mariadb_dyncol_exists_named(DYNAMIC_COLUMN *str,
MYSQL_LEX_STRING *column_key);
Look at that signature. Gorgeous. Iconic. No notes. π
πΈ Description πΈ
Okay so picture this: you've got a dynamic column and you're sitting there like "β¦does this thing have a column named that or not π". That's literally the entire job of mariadb_dyncol_exists_named. It checks if a column with the specified column key exists. That's it. That's the function. Simple queen behaviour, no cap π«Ά
No guessing, no vibes-based archaeology β you ask, it tells you yes or no. Periodt.
π Parameter π
*strβ the dynamic column. The thing you're snooping around in π*column_keyβ the column key you're searching for. The name you're hunting for, the main character of this query β¨
π Return value π
ER_DYNCOL_YESβ slay!! A column with the given key exists πER_DYNCOL_NOβ no column exists, or there was an error π
Heads up bestie:ER_DYNCOL_NOis doing double duty here β it covers both "nope, not there" and "something went wrong". So don't read aNOas a guaranteed clean answer, iykyk π
π See also π
mariadb_dyncol_exists_numβ same energy, but for numeric keys π- Dynamic Column Error Codes β go read the error codes so you know what you're actually getting back π
Version 3.4 of the MariaDB Connector/C docs, and that's the whole page babes β go forth and check your columns, 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