mariadb_field_attr
Syntax
#include <mysql.h>
int mariadb_field_attr(MARIADB_CONST_STRING *attr,
const MYSQL_FIELD *field,
enum mariadb_field_attr_t type)Parameter
attr: A pointer which returns extended metadata informationfield: Specifies the field which contains extended metadata informationtype:Specifies type of metadata information. Supported types areMARIADB_FIELD_ATTR_DATA_TYPE_NAMEandMARIADB_FIELD_ATTR_FORMAT_NAME.
Description
Returns extended metadata information for pluggable field types like JSON and GEOMETRY.
Return Value
Returns zero on success or non zero if the field doesn't provide extended metadata information.
Notes
Pluggable field type support requires MariaDB Server.
To check if the server supports pluggable field types, check the extended server capabilities which can be obtained by api function mariadb_get_info().
Example
History
mariadb_field_attr was added in MariaDB Connector/C 3.1.8.
See Also
This page is: Copyright © 2026 MariaDB. All rights reserved.
Last updated
Was this helpful?

