Functions

db_mysql/km_val.c File Reference

DB_MYSQL :: Data conversionsModule: DB_MYSQL :: the MySQL driver for Kamailio. More...

#include "../../dprint.h"
#include "../../lib/srdb1/db_ut.h"
#include "km_val.h"
#include "km_my_con.h"
Include dependency graph for db_mysql/km_val.c:

Go to the source code of this file.

Functions


Detailed Description

Definition in file db_mysql/km_val.c.


Function Documentation

int db_mysql_val2str ( const db1_con_t _c,
const db_val_t _v,
char *  _s,
int *  _len 
)

Converting a value to a string, used when converting result from a query

Parameters:
_c database connection
_v source value
_s target string
_len target string length
Returns:
0 on success, negative on error

Definition at line 46 of file db_mysql/km_val.c.

References DB1_BLOB, DB1_STR, DB1_STRING, VAL_BLOB, VAL_STR, VAL_STRING, and VAL_TYPE.

Referenced by db_mysql_delete(), db_mysql_insert(), db_mysql_insert_delayed(), db_mysql_insert_update(), db_mysql_query(), db_mysql_replace(), and db_mysql_update().

Here is the caller graph for this function: