|
FreeTDS API
|
Static functions internal to the bcp library. More...
Functions | |
| 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, int size, FILE *f) |
| static void | _bcp_free_columns (DBPROCESS *dbproc) |
| static void | _bcp_free_storage (DBPROCESS *dbproc) |
| static TDSRET | _bcp_get_col_data (TDSBCPINFO *bcpinfo, TDSCOLUMN *bindcol, int offset TDS_UNUSED) |
| For a bcp in from program variables, get the data from the host variable. | |
| static int | _bcp_get_term_var (const BYTE *pdata, const BYTE *term, int term_len) |
| Get the data for bcp-in from program variables, where the program data have been identified as character terminated, This is a low-level, internal function. | |
| static STATUS | _bcp_read_hostfile (DBPROCESS *dbproc, FILE *hostfile, bool *row_error, bool skip) |
| static int | _bcp_readfmt_colinfo (DBPROCESS *dbproc, char *buf, BCP_HOSTCOLINFO *ci) |
| static int | rtrim (char *str, int len) |
| trim a string of trailing blanks | |
Static functions internal to the bcp library.
|
static |
| dbproc | contains all information needed by db-lib to manage communications with the server. |
| rows_copied |
|
static |
| dbproc | contains all information needed by db-lib to manage communications with the server. |
| rows_copied |
|
static |
| buffer | |
| size | |
| f |
|
static |
| dbproc | contains all information needed by db-lib to manage communications with the server. |
|
static |
| dbproc | contains all information needed by db-lib to manage communications with the server. |
|
static |
For a bcp in from program variables, get the data from the host variable.
| dbproc | contains all information needed by db-lib to manage communications with the server. |
| bindcol |
|
static |
Get the data for bcp-in from program variables, where the program data have been identified as character terminated,
This is a low-level, internal function.
Call it correctly.
| pdata | |
| term | |
| term_len |
|
static |
| dbproc | contains all information needed by db-lib to manage communications with the server. |
| hostfile | |
| row_error |
|
static |
| dbproc | contains all information needed by db-lib to manage communications with the server. |
| buf | |
| ci |
|
static |
trim a string of trailing blanks
Replaces spaces at the end of a string with NULs
| str | pointer to a character buffer (not null-terminated) |
| len | size of the str in bytes |