db_mysql/val.h File Reference

DB_MYSQL :: Data conversions val.c

Module: DB_MYSQL :: the MySQL driver for Kamailio. More...

#include <mysql/mysql.h>
#include "../../db/db_val.h"
#include "../../db/db.h"

Include dependency graph for db_mysql/val.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int db_mysql_val2str (const db_con_t *_con, const db_val_t *_v, char *_s, int *_len)
 Converting a value to a string.


Detailed Description

DB_MYSQL :: Data conversions val.c

Module: DB_MYSQL :: the MySQL driver for Kamailio.

Definition in file db_mysql/val.h.


Function Documentation

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

Converting a value to a string.

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/val.c.

References CON_CONNECTION, DB_BLOB, DB_STR, DB_STRING, db_val2str(), len, LM_DBG, LM_ERR, s, VAL_BLOB, VAL_STR, VAL_STRING, and VAL_TYPE.

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


Generated on Mon May 21 18:00:46 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6