#include "../../db/db_val.h"#include "../../db/db_ut.h"#include "db_berkeley.h"#include "bdb_res.h"#include "bdb_val.h"#include <string.h>

Go to the source code of this file.
Functions | |
| int | bdb_str2val (db_type_t _t, db_val_t *_v, char *_s, int _l) |
| int | bdb_time2str (time_t _v, char *_s, int *_l) |
| int | bdb_val2str (db_val_t *_v, char *_s, int *_len) |
Does not copy strings
Definition at line 83 of file bdb_val.c.
References DB_BIGINT, DB_BITMAP, DB_BLOB, DB_DATETIME, DB_DOUBLE, DB_INT, DB_STR, db_str2double(), db_str2int(), db_str2time(), DB_STRING, LM_DBG, LM_ERR, _str::s, VAL_BLOB, VAL_DOUBLE, VAL_FREE, VAL_INT, VAL_NULL, VAL_STR, VAL_STRING, VAL_TIME, and VAL_TYPE.
Referenced by bdb_append_row(), and bdb_convert_row().
| int bdb_time2str | ( | time_t | _v, | |
| char * | _s, | |||
| int * | _l | |||
| ) | [inline] |
A copy of db_ut::db_time2str EXCEPT does not wrap the date in single-quotes
Convert a time_t value to string (w.o single-quote)
| _v | source value | |
| _s | target string | |
| _l | available length and target length |
Definition at line 50 of file bdb_val.c.
Referenced by bdb_val2str().
| int bdb_val2str | ( | db_val_t * | _v, | |
| char * | _s, | |||
| int * | _len | |||
| ) |
Definition at line 184 of file bdb_val.c.
References bdb_time2str(), DB_BITMAP, DB_BLOB, DB_DATETIME, DB_DOUBLE, db_double2str(), DB_INT, db_int2str(), DB_STR, DB_STRING, len, LM_DBG, LM_ERR, s, snprintf, VAL_BLOB, VAL_DOUBLE, VAL_INT, VAL_NULL, VAL_STR, VAL_STRING, VAL_TIME, and VAL_TYPE.
Referenced by bdb_update(), and bdblib_valtochar().
1.5.6