-
Notifications
You must be signed in to change notification settings - Fork 267
mariadb_dyncol_unpack
Georg Richter edited this page Sep 17, 2018
·
1 revision
mariadb_dyncol_unpack - extracts keys and values of all columns
#include <mariadb_dyncol.h>
enum enum_dyncol_func_result
mariadb_dyncol_unpack(DYNAMIC_COLUMN *str,
uint *column_count,
MYSQL_LEX_STRING **column_keys,
DYNAMIC_COLUMN_VALUE **values);
The mariadb_dyncol_unpack()
function extracts all keys and values of a dynamic column.
-
str
- Pointer to aDYNAMIC_COLUMN
structure -
column count
- Pointer to an unsigned integer which will receive the number of columns -
column_keys
- Pointer of an array ofMYSQL_LEX_STRING
structures, which will contain the column keys -
values
- Pointer of an array ofDYNAMIC_COLUMN_VALUE
structures, which will contain the values.
Returns ER_DYNCOL_OK
on success, otherwise an error.
- The
column_keys
andvalues
arrays will be allocated bymariadb_dyncol_unpack()
and must be freed by application.
MariaDB Connector/C Reference