Functions | |
static int | _bcp_add_fixed_columns (DBPROCESS *dbproc, int behaviour, BYTE *rowbuffer, int start) |
static int | _bcp_add_variable_columns (DBPROCESS *dbproc, int behaviour, BYTE *rowbuffer, int start, int *var_cols) |
static RETCODE | _bcp_build_bulk_insert_stmt (TDSSOCKET *tds, TDS_PBCB *clause, TDSCOLUMN *bcpcol, int first) |
static RETCODE | _bcp_exec_in (DBPROCESS *dbproc, DBINT *rows_copied) |
static RETCODE | _bcp_exec_out (DBPROCESS *dbproc, DBINT *rows_copied) |
static char * | _bcp_fgets (char *buffer, size_t size, FILE *f) |
static void | _bcp_free_columns (DBPROCESS *dbproc) |
static RETCODE | _bcp_free_storage (DBPROCESS *dbproc) |
static RETCODE | _bcp_get_col_data (DBPROCESS *dbproc, TDSCOLUMN *bindcol) |
static RETCODE | _bcp_get_term_var (BYTE *pdata, BYTE *term, int term_len) |
static offset_type | _bcp_measure_terminated_field (FILE *hostfile, BYTE *terminator, int term_len) |
static RETCODE | _bcp_read_hostfile (DBPROCESS *dbproc, FILE *hostfile, int *row_error) |
static int | _bcp_readfmt_colinfo (DBPROCESS *dbproc, char *buf, BCP_HOSTCOLINFO *ci) |
static RETCODE | _bcp_send_bcp_record (DBPROCESS *dbproc, int behaviour) |
static RETCODE | _bcp_send_colmetadata (DBPROCESS *dbproc) |
static RETCODE | _bcp_start_copy_in (DBPROCESS *dbproc) |
static RETCODE | _bcp_start_new_batch (DBPROCESS *dbproc) |
static int | rtrim (char *istr, int ilen) |
static int _bcp_add_fixed_columns | ( | DBPROCESS * | dbproc, | |
int | behaviour, | |||
BYTE * | rowbuffer, | |||
int | start | |||
) | [static] |
dbproc | contains all information needed by db-lib to manage communications with the server. | |
behaviour | ||
rowbuffer | ||
start |
static int _bcp_add_variable_columns | ( | DBPROCESS * | dbproc, | |
int | behaviour, | |||
BYTE * | rowbuffer, | |||
int | start, | |||
int * | var_cols | |||
) | [static] |
dbproc | contains all information needed by db-lib to manage communications with the server. | |
behaviour | ||
rowbuffer | ||
start | ||
var_cols |
static RETCODE _bcp_build_bulk_insert_stmt | ( | TDSSOCKET * | tds, | |
TDS_PBCB * | clause, | |||
TDSCOLUMN * | bcpcol, | |||
int | first | |||
) | [static] |
tds | ||
clause | ||
bcpcol | ||
first |
static RETCODE _bcp_exec_in | ( | DBPROCESS * | dbproc, | |
DBINT * | rows_copied | |||
) | [static] |
dbproc | contains all information needed by db-lib to manage communications with the server. | |
rows_copied |
static RETCODE _bcp_exec_out | ( | DBPROCESS * | dbproc, | |
DBINT * | rows_copied | |||
) | [static] |
dbproc | contains all information needed by db-lib to manage communications with the server. | |
rows_copied |
static char* _bcp_fgets | ( | char * | buffer, | |
size_t | size, | |||
FILE * | f | |||
) | [static] |
buffer | ||
size | ||
f |
static void _bcp_free_columns | ( | DBPROCESS * | dbproc | ) | [static] |
dbproc | contains all information needed by db-lib to manage communications with the server. |
static RETCODE _bcp_free_storage | ( | DBPROCESS * | dbproc | ) | [static] |
dbproc | contains all information needed by db-lib to manage communications with the server. |
static RETCODE _bcp_get_col_data | ( | DBPROCESS * | dbproc, | |
TDSCOLUMN * | bindcol | |||
) | [static] |
dbproc | contains all information needed by db-lib to manage communications with the server. | |
bindcol |
static RETCODE _bcp_get_term_var | ( | BYTE * | pdata, | |
BYTE * | term, | |||
int | term_len | |||
) | [static] |
pdata | ||
term | ||
term_len |
static offset_type _bcp_measure_terminated_field | ( | FILE * | hostfile, | |
BYTE * | terminator, | |||
int | term_len | |||
) | [static] |
hostfile | ||
terminator | ||
term_len |
static RETCODE _bcp_read_hostfile | ( | DBPROCESS * | dbproc, | |
FILE * | hostfile, | |||
int * | row_error | |||
) | [static] |
dbproc | contains all information needed by db-lib to manage communications with the server. | |
hostfile | ||
row_error |
static int _bcp_readfmt_colinfo | ( | DBPROCESS * | dbproc, | |
char * | buf, | |||
BCP_HOSTCOLINFO * | ci | |||
) | [static] |
dbproc | contains all information needed by db-lib to manage communications with the server. | |
buf | ||
ci |
static RETCODE _bcp_send_bcp_record | ( | DBPROCESS * | dbproc, | |
int | behaviour | |||
) | [static] |
dbproc | contains all information needed by db-lib to manage communications with the server. | |
behaviour |
static RETCODE _bcp_send_colmetadata | ( | DBPROCESS * | dbproc | ) | [static] |
dbproc | contains all information needed by db-lib to manage communications with the server. |
static RETCODE _bcp_start_copy_in | ( | DBPROCESS * | dbproc | ) | [static] |
dbproc | contains all information needed by db-lib to manage communications with the server. |
static RETCODE _bcp_start_new_batch | ( | DBPROCESS * | dbproc | ) | [static] |
dbproc | contains all information needed by db-lib to manage communications with the server. |
static int rtrim | ( | char * | istr, | |
int | ilen | |||
) | [static] |
istr | ||
ilen |