con.c File Reference

#include "con.h"
#include "../../mem/mem.h"
#include "../../dprint.h"
#include "../../ut.h"
#include <time.h>

Include dependency graph for con.c:

Go to the source code of this file.

Defines

#define DSN_ATTR   "DSN="
#define DSN_ATTR_LEN   (sizeof(DSN_ATTR)-1)
#define PWD_ATTR   "PWD="
#define PWD_ATTR_LEN   (sizeof(PWD_ATTR)-1)
#define UID_ATTR   "UID="
#define UID_ATTR_LEN   (sizeof(UID_ATTR)-1)

Functions

char * db_unixodbc_build_conn_str (const struct db_id *id, char *buf)
void db_unixodbc_extract_error (const char *fn, const SQLHANDLE handle, const SQLSMALLINT type, char *stret)
void db_unixodbc_free_connection (struct my_con *con)
struct my_condb_unixodbc_new_connection (struct db_id *id)


Define Documentation

#define DSN_ATTR   "DSN="

Definition at line 40 of file con.c.

Referenced by db_unixodbc_build_conn_str().

#define DSN_ATTR_LEN   (sizeof(DSN_ATTR)-1)

Definition at line 41 of file con.c.

Referenced by db_unixodbc_build_conn_str().

#define PWD_ATTR   "PWD="

Definition at line 44 of file con.c.

Referenced by db_unixodbc_build_conn_str().

#define PWD_ATTR_LEN   (sizeof(PWD_ATTR)-1)

Definition at line 45 of file con.c.

Referenced by db_unixodbc_build_conn_str().

#define UID_ATTR   "UID="

Definition at line 42 of file con.c.

Referenced by db_unixodbc_build_conn_str().

#define UID_ATTR_LEN   (sizeof(UID_ATTR)-1)

Definition at line 43 of file con.c.

Referenced by db_unixodbc_build_conn_str().


Function Documentation

char* db_unixodbc_build_conn_str ( const struct db_id id,
char *  buf 
)

void db_unixodbc_extract_error ( const char *  fn,
const SQLHANDLE  handle,
const SQLSMALLINT  type,
char *  stret 
)

Definition at line 205 of file con.c.

References len, and LM_ERR.

Referenced by db_unixodbc_get_columns(), db_unixodbc_new_connection(), db_unixodbc_submit_query(), and reconnect().

void db_unixodbc_free_connection ( struct my_con con  ) 

Definition at line 195 of file con.c.

References my_con::dbc, my_con::env, and pkg_free.

Referenced by db_unixodbc_close().

struct my_con* db_unixodbc_new_connection ( struct db_id id  )  [read]


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