Module: DB_MYSQL :: the MySQL driver for Kamailio. More...
#include <string.h>
#include <mysql/mysql.h>
#include "../../db/db_res.h"
#include "../../mem/mem.h"
#include "../../dprint.h"
#include "row.h"
#include "my_con.h"
#include "res.h"

Go to the source code of this file.
Functions | |
| int | db_mysql_convert_result (const db_con_t *_h, db_res_t *_r) |
| Fill the result structure with data from database. | |
| static int | db_mysql_convert_rows (const db_con_t *_h, db_res_t *_r) |
| Convert rows from mysql to db API representation. | |
| int | db_mysql_get_columns (const db_con_t *_h, db_res_t *_r) |
| Get and convert columns from a result. | |
Module: DB_MYSQL :: the MySQL driver for Kamailio.
Definition in file db_mysql/res.c.
Fill the result structure with data from database.
| _h | database connection | |
| _r | database result |
Definition at line 204 of file db_mysql/res.c.
References db_free_columns(), db_mysql_convert_rows(), db_mysql_get_columns(), and LM_ERR.
Referenced by db_mysql_store_result().
Convert rows from mysql to db API representation.
| _h | database connection | |
| _r | database result set |
Definition at line 158 of file db_mysql/res.c.
References CON_CONNECTION, CON_RESULT, CON_ROW, db_allocate_rows(), db_free_rows(), db_mysql_convert_row(), LM_DBG, LM_ERR, RES_ROW_N, and RES_ROWS.
Referenced by db_mysql_convert_result().
Get and convert columns from a result.
Get and convert columns from a result, fills the result structure with data from the database.
| _h | database connection | |
| _r | database result set |
Definition at line 53 of file db_mysql/res.c.
References CON_CONNECTION, CON_RESULT, db_allocate_columns(), DB_BIGINT, DB_BITMAP, DB_BLOB, DB_DATETIME, DB_DOUBLE, db_free_columns(), DB_INT, DB_STRING, len, LM_DBG, LM_ERR, LM_WARN, pkg_malloc, RES_COL_N, RES_NAMES, RES_TYPES, s, and sip_uri::type.
Referenced by db_mysql_convert_result(), and db_mysql_fetch_result().
1.5.6