A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/long__binary_8c_source.html below:

NCBI C++ ToolKit: src/dbapi/driver/ftds14/freetds/ctlib/unittests/long_binary.c Source File

26

printf(

"message from csmsg_callback(): %s\n"

, emsgp->

msgstring

);

34

fprintf(stderr,

"%s(): failed\n"

, name);

42  CS_INT

result_type, int_result, copied, rows_read;

47

memset(&datafmt, 0,

sizeof

(datafmt));

56

printf(

"received %d bytes\n"

, (

int

) int_result);

69

printf(

"executing sql: %s\n"

,

sql

);

76 main

(

int

argc,

char

**argv)

82  unsigned char buffer

[65536];

89

printf(

"-- begin --\n"

);

94  execute_sql

(

command

,

"if object_id('mps_table') is not null drop table mps_table"

);

95  execute_sql

(

command

,

"if object_id('mps_rpc') is not null drop procedure mps_rpc"

);

97

ret =

execute_sql

(

command

,

"create procedure mps_rpc (@varbinary_param varbinary(max)) as " 98  "insert mps_table values (@varbinary_param) " "select len(varbinary_data) from mps_table"

);

106

buffer_len = atoi(argv[1]);

107  if

(buffer_len < 0 || buffer_len >

sizeof

(

buffer

))

110

printf(

"sending %d bytes\n"

, buffer_len);

112  for

(

i

= 0;

i

< buffer_len;

i

++)

115

memset(&datafmt, 0,

sizeof

(datafmt));

116

strcpy(datafmt.

name

,

"@varbinary_param"

);

131

printf(

"-- end --\n"

);

CS_RETCODE cs_config(CS_CONTEXT *ctx, CS_INT action, CS_INT property, CS_VOID *buffer, CS_INT buflen, CS_INT *outlen)

CS_RETCODE try_ctlogin(CS_CONTEXT **ctx, CS_CONNECTION **conn, CS_COMMAND **cmd, int verbose)

CS_RETCODE try_ctlogout(CS_CONTEXT *ctx, CS_CONNECTION *conn, CS_COMMAND *cmd, int verbose)

CS_RETCODE ct_command(CS_COMMAND *cmd, CS_INT type, const CS_VOID *buffer, CS_INT buflen, CS_INT option)

CS_RETCODE ct_results(CS_COMMAND *cmd, CS_INT *result_type)

CS_RETCODE ct_fetch(CS_COMMAND *cmd, CS_INT type, CS_INT offset, CS_INT option, CS_INT *rows_read)

CS_RETCODE ct_send(CS_COMMAND *cmd)

CS_RETCODE ct_bind(CS_COMMAND *cmd, CS_INT item, CS_DATAFMT *datafmt, CS_VOID *buffer, CS_INT *copied, CS_SMALLINT *indicator)

CS_RETCODE ct_setparam(CS_COMMAND *cmd, CS_DATAFMT *datafmt, CS_VOID *data, CS_INT *datalen, CS_SMALLINT *indicator)

static int fetch_results(CS_COMMAND *command)

static void check_ret(const char *name, CS_RETCODE ret)

static const CS_INT unused

int main(int argc, char **argv)

static CS_RETCODE csmsg_callback(CS_CONTEXT *ctx, CS_CLIENTMSG *emsgp)

static int execute_sql(CS_COMMAND *command, const char *sql)

static const CS_INT nullterm

static CS_CONTEXT * context


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4