include/dbapi/driver/ftds64/freetds/dblib.h File Reference

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

Go to the source code of this file.

Classes

struct  tds_dblib_loginrec
struct  tag_DBPROC_ROWBUF
struct  BCP_HOSTCOLINFO
struct  BCP_HOSTFILEINFO
struct  DB_BCPINFO
struct  _DBREMOTE_PROC_PARAM
struct  _DBREMOTE_PROC
struct  tds_dblib_dbprocess

Defines

#define DBLIB_INFO_MSG_TYPE   0
#define DBLIB_ERROR_MSG_TYPE   1

Typedefs

typedef tag_DBPROC_ROWBUF DBPROC_ROWBUF
typedef _DBREMOTE_PROC_PARAM DBREMOTE_PROC_PARAM
typedef _DBREMOTE_PROC DBREMOTE_PROC

Enumerations

enum  {
  _DB_RES_INIT = 0, _DB_RES_RESULTSET_EMPTY = 1, _DB_RES_RESULTSET_ROWS = 2, _DB_RES_NEXT_RESULT = 3,
  _DB_RES_NO_MORE_RESULTS = 4, _DB_RES_SUCCEED = 5
}

Functions

int dbperror (DBPROCESS *dbproc, DBINT msgno, int errnum)
int _dblib_handle_info_message (const TDSCONTEXT *ctxptr, TDSSOCKET *tdsptr, TDSMESSAGE *msgptr)
int _dblib_handle_err_message (const TDSCONTEXT *ctxptr, TDSSOCKET *tdsptr, TDSMESSAGE *msgptr)
int _dblib_client_msg (DBPROCESS *dbproc, int dberr, int severity, const char *dberrstr)
void _dblib_setTDS_version (TDSLOGIN *tds_login, DBINT version)
DBINT _convert_char (int srctype, BYTE *src, int destype, BYTE *dest, DBINT destlen)
DBINT _convert_intn (int srctype, BYTE *src, int destype, BYTE *dest, DBINT destlen)
RETCODE _bcp_clear_storage (DBPROCESS *dbproc)
RETCODE _bcp_get_prog_data (DBPROCESS *dbproc)

Variables

MHANDLEFUNC _dblib_msg_handler
EHANDLEFUNC _dblib_err_handler


Define Documentation

#define DBLIB_ERROR_MSG_TYPE   1
 

Definition at line 159 of file dblib.h.

#define DBLIB_INFO_MSG_TYPE   0
 

Definition at line 158 of file dblib.h.


Typedef Documentation

typedef struct tag_DBPROC_ROWBUF DBPROC_ROWBUF
 

typedef struct _DBREMOTE_PROC DBREMOTE_PROC
 

typedef struct _DBREMOTE_PROC_PARAM DBREMOTE_PROC_PARAM
 


Enumeration Type Documentation

anonymous enum
 

Enumerator:
_DB_RES_INIT 
_DB_RES_RESULTSET_EMPTY 
_DB_RES_RESULTSET_ROWS 
_DB_RES_NEXT_RESULT 
_DB_RES_NO_MORE_RESULTS 
_DB_RES_SUCCEED 

Definition at line 33 of file dblib.h.


Function Documentation

RETCODE _bcp_clear_storage DBPROCESS dbproc  ) 
 

RETCODE _bcp_get_prog_data DBPROCESS dbproc  ) 
 

DBINT _convert_char int  srctype,
BYTE src,
int  destype,
BYTE dest,
DBINT  destlen
 

DBINT _convert_intn int  srctype,
BYTE src,
int  destype,
BYTE dest,
DBINT  destlen
 

int _dblib_client_msg DBPROCESS dbproc,
int  dberr,
int  severity,
const char *  dberrstr
 

Definition at line 6266 of file dblib.c.

References g_dblib_ctx, tds_client_msg, dblib_context::tds_ctx, and tds_dblib_dbprocess::tds_socket.

int _dblib_handle_err_message const TDSCONTEXT ctxptr,
TDSSOCKET tdsptr,
TDSMESSAGE msgptr
 

Definition at line 123 of file dbutil.c.

References _dblib_err_handler, EXIT_FAILURE, FAIL, INT_CANCEL, INT_CONTINUE, INT_EXIT, INT_TIMEOUT, tds_message::message, tds_dblib_dbprocess::msdblib, tds_message::msgno, tds_socket::parent, tds_message::server, tds_message::severity, tds_message::state, SUCCEED, and SYBETIME.

int _dblib_handle_info_message const TDSCONTEXT ctxptr,
TDSSOCKET tdsptr,
TDSMESSAGE msgptr
 

Definition at line 80 of file dbutil.c.

References _dblib_msg_handler, EXSERVER, tds_message::line_number, tds_message::message, tds_message::msgno, tds_socket::parent, tds_message::proc_name, tds_message::server, tds_message::severity, tds_message::state, SUCCEED, SYBESMSG, and tds_client_msg.

void _dblib_setTDS_version TDSLOGIN tds_login,
DBINT  version
 

Definition at line 190 of file dbutil.c.

References DBVERSION_100, DBVERSION_42, DBVERSION_46, and tds_set_version.

int dbperror DBPROCESS dbproc,
DBINT  msgno,
int  errnum
 

Definition at line 7049 of file dblib.c.

References _dblib_err_handler, dblib_error_messages, EXCONSISTENCY, INT_CANCEL, strerror(), TDS_DBG_SEVERE, TDS_VECTOR_SIZE, and tdsdump_log.

Referenced by _bcp_check_eof(), _bcp_exec_in(), _bcp_exec_out(), _bcp_measure_terminated_field(), _bcp_readfmt_colinfo(), bcp_batch(), bcp_bind(), bcp_colfmt(), bcp_colfmt_ps(), bcp_collen(), bcp_colptr(), bcp_columns(), bcp_control(), bcp_done(), bcp_exec(), bcp_init(), bcp_moretext(), bcp_options(), bcp_readfmt(), bcp_sendrow(), bcp_writefmt(), copy_data_to_host_var(), dbbind(), dbconvert(), dbresults(), dbsetopt(), dbspid(), dbsqlsend(), dbstrcpy(), dbwritetext(), init_dboptions(), and tdsdbopen().


Variable Documentation

EHANDLEFUNC _dblib_err_handler
 

Definition at line 180 of file dblib.c.

Referenced by _dblib_handle_err_message(), dberrhandle(), and dbperror().

MHANDLEFUNC _dblib_msg_handler
 

Definition at line 179 of file dblib.c.

Referenced by _dblib_handle_info_message(), and dbmsghandle().


Generated on Mon Dec 7 00:15:46 2009 for NCBI C++ ToolKit by  doxygen 1.4.6
Modified on Mon Dec 07 16:21:20 2009 by modify_doxy.py rev. 173732