-
Notifications
You must be signed in to change notification settings - Fork 259
mariadb_field_attr
Georg Richter edited this page Jun 11, 2021
·
2 revisions
mariadb_field_attr - returns extended metadata information for pluggable field types
#include <mysql.h>
int *mariadb_field_attr(MARIADB_CONST_STRING *attr,
const MYSQL_FIELD *field,
enum mariadb_field_attr_t type)
Returns extended metadata information for pluggable field types like JSON and GEOMETRY.
-
attr
A pointer which returns extended metadata information -
field
specifies the field which contains extended metadata information -
type
specifies type of metadata information. Current supported values areMARIADB_FIELD_METADATA_DATA_TYPE_NAME
andMARIADB_FIELD_METADATA_FORMAT_NAME
.
Returns zero on success or non zero if the field doesn't provide extended metadata information.
- Pluggable field type support is available in MariaDB server version 10.5.2 and later
- To check if the server supports pluggable field types, check the extended server capabilities which can be obtained by api function mariadb_get_info()
mariadb_field_attr was added in MariaDB Connector/C 3.1.8
MariaDB Connector/C Reference