NCBI C++ ToolKit
Functions | Variables
blk_in.c File Reference
#include <config.h>
#include <stdio.h>
#include <ctpublic.h>
#include <bkpublic.h>
#include "common.h"
#include "blk_in.h"
#include <common/test_assert.h>
+ Include dependency graph for blk_in.c:

Go to the source code of this file.

Go to the SVN repository for this file.

Functions

static CS_RETCODE do_bind (CS_BLKDESC *blkdesc, int colnum, CS_INT host_format, CS_INT host_type, CS_INT host_maxlen, void *var_addr, CS_INT *var_len_addr, CS_SMALLINT *var_ind_addr)
 
static void do_binds (CS_BLKDESC *blkdesc)
 
int main (int argc, char **argv)
 

Variables

static char command [512]
 
int not_null_bit = 1
 
CS_INT l_not_null_bit = 4
 
CS_SMALLINT i_not_null_bit = 0
 
char not_null_char [] = "a char"
 
CS_INT l_not_null_char = 6
 
CS_SMALLINT i_not_null_char = 0
 
char not_null_varchar [] = "a varchar"
 
CS_INT l_not_null_varchar = 9
 
CS_SMALLINT i_not_null_varchar = 0
 
char not_null_datetime [] = "Dec 17 2003 3:44PM"
 
CS_INT l_not_null_datetime = 19
 
CS_SMALLINT i_not_null_datetime = 0
 
char not_null_smalldatetime [] = "Dec 17 2003 3:44PM"
 
CS_INT l_not_null_smalldatetime = 19
 
CS_SMALLINT i_not_null_smalldatetime = 0
 
char not_null_money [] = "12.34"
 
CS_INT l_not_null_money = 5
 
CS_SMALLINT i_not_null_money = 0
 
char not_null_smallmoney [] = "12.34"
 
CS_INT l_not_null_smallmoney = 5
 
CS_SMALLINT i_not_null_smallmoney = 0
 
char not_null_float [] = "12.34"
 
CS_INT l_not_null_float = 5
 
CS_SMALLINT i_not_null_float = 0
 
char not_null_real [] = "12.34"
 
CS_INT l_not_null_real = 5
 
CS_SMALLINT i_not_null_real = 0
 
char not_null_decimal [] = "12.34"
 
CS_INT l_not_null_decimal = 5
 
CS_SMALLINT i_not_null_decimal = 0
 
char not_null_numeric [] = "12.34"
 
CS_INT l_not_null_numeric = 5
 
CS_SMALLINT i_not_null_numeric = 0
 
int not_null_int = 1234
 
CS_INT l_not_null_int = 4
 
CS_SMALLINT i_not_null_int = 0
 
int not_null_smallint = 1234
 
CS_INT l_not_null_smallint = 4
 
CS_SMALLINT i_not_null_smallint = 0
 
int not_null_tinyint = 123
 
CS_INT l_not_null_tinyint = 4
 
CS_SMALLINT i_not_null_tinyint = 0
 
CS_INT l_null_char = 0
 
CS_SMALLINT i_null_char = -1
 
CS_INT l_null_varchar = 0
 
CS_SMALLINT i_null_varchar = -1
 
CS_INT l_null_datetime = 0
 
CS_SMALLINT i_null_datetime = -1
 
CS_INT l_null_smalldatetime = 0
 
CS_SMALLINT i_null_smalldatetime = -1
 
CS_INT l_null_money = 0
 
CS_SMALLINT i_null_money = -1
 
CS_INT l_null_smallmoney = 0
 
CS_SMALLINT i_null_smallmoney = -1
 
CS_INT l_null_float = 0
 
CS_SMALLINT i_null_float = -1
 
CS_INT l_null_real = 0
 
CS_SMALLINT i_null_real = -1
 
CS_INT l_null_decimal = 0
 
CS_SMALLINT i_null_decimal = -1
 
CS_INT l_null_numeric = 0
 
CS_SMALLINT i_null_numeric = -1
 
CS_INT l_null_int = 0
 
CS_SMALLINT i_null_int = -1
 
CS_INT l_null_smallint = 0
 
CS_SMALLINT i_null_smallint = -1
 
CS_INT l_null_tinyint = 0
 
CS_SMALLINT i_null_tinyint = -1
 

Function Documentation

◆ do_bind()

static CS_RETCODE do_bind ( CS_BLKDESC blkdesc,
int  colnum,
CS_INT  host_format,
CS_INT  host_type,
CS_INT  host_maxlen,
void *  var_addr,
CS_INT var_len_addr,
CS_SMALLINT var_ind_addr 
)
static

◆ do_binds()

static void do_binds ( CS_BLKDESC blkdesc)
static

◆ main()

int main ( int  argc,
char **  argv 
)

Variable Documentation

◆ command

char command[512]
static

Definition at line 31 of file blk_in.c.

Referenced by main().

◆ i_not_null_bit

CS_SMALLINT i_not_null_bit = 0

Definition at line 38 of file blk_in.c.

Referenced by do_binds().

◆ i_not_null_char

CS_SMALLINT i_not_null_char = 0

Definition at line 42 of file blk_in.c.

Referenced by do_binds().

◆ i_not_null_datetime

CS_SMALLINT i_not_null_datetime = 0

Definition at line 50 of file blk_in.c.

Referenced by do_binds().

◆ i_not_null_decimal

CS_SMALLINT i_not_null_decimal = 0

Definition at line 74 of file blk_in.c.

Referenced by do_binds().

◆ i_not_null_float

CS_SMALLINT i_not_null_float = 0

Definition at line 66 of file blk_in.c.

Referenced by do_binds().

◆ i_not_null_int

CS_SMALLINT i_not_null_int = 0

Definition at line 82 of file blk_in.c.

Referenced by do_binds().

◆ i_not_null_money

CS_SMALLINT i_not_null_money = 0

Definition at line 58 of file blk_in.c.

Referenced by do_binds().

◆ i_not_null_numeric

CS_SMALLINT i_not_null_numeric = 0

Definition at line 78 of file blk_in.c.

Referenced by do_binds().

◆ i_not_null_real

CS_SMALLINT i_not_null_real = 0

Definition at line 70 of file blk_in.c.

Referenced by do_binds().

◆ i_not_null_smalldatetime

CS_SMALLINT i_not_null_smalldatetime = 0

Definition at line 54 of file blk_in.c.

Referenced by do_binds().

◆ i_not_null_smallint

CS_SMALLINT i_not_null_smallint = 0

Definition at line 86 of file blk_in.c.

Referenced by do_binds().

◆ i_not_null_smallmoney

CS_SMALLINT i_not_null_smallmoney = 0

Definition at line 62 of file blk_in.c.

Referenced by do_binds().

◆ i_not_null_tinyint

CS_SMALLINT i_not_null_tinyint = 0

Definition at line 90 of file blk_in.c.

Referenced by do_binds().

◆ i_not_null_varchar

CS_SMALLINT i_not_null_varchar = 0

Definition at line 46 of file blk_in.c.

Referenced by do_binds().

◆ i_null_char

CS_SMALLINT i_null_char = -1

Definition at line 93 of file blk_in.c.

Referenced by do_binds().

◆ i_null_datetime

CS_SMALLINT i_null_datetime = -1

Definition at line 99 of file blk_in.c.

Referenced by do_binds().

◆ i_null_decimal

CS_SMALLINT i_null_decimal = -1

Definition at line 117 of file blk_in.c.

Referenced by do_binds().

◆ i_null_float

CS_SMALLINT i_null_float = -1

Definition at line 111 of file blk_in.c.

Referenced by do_binds().

◆ i_null_int

CS_SMALLINT i_null_int = -1

Definition at line 123 of file blk_in.c.

Referenced by do_binds().

◆ i_null_money

CS_SMALLINT i_null_money = -1

Definition at line 105 of file blk_in.c.

Referenced by do_binds().

◆ i_null_numeric

CS_SMALLINT i_null_numeric = -1

Definition at line 120 of file blk_in.c.

Referenced by do_binds().

◆ i_null_real

CS_SMALLINT i_null_real = -1

Definition at line 114 of file blk_in.c.

Referenced by do_binds().

◆ i_null_smalldatetime

CS_SMALLINT i_null_smalldatetime = -1

Definition at line 102 of file blk_in.c.

Referenced by do_binds().

◆ i_null_smallint

CS_SMALLINT i_null_smallint = -1

Definition at line 126 of file blk_in.c.

Referenced by do_binds().

◆ i_null_smallmoney

CS_SMALLINT i_null_smallmoney = -1

Definition at line 108 of file blk_in.c.

Referenced by do_binds().

◆ i_null_tinyint

CS_SMALLINT i_null_tinyint = -1

Definition at line 129 of file blk_in.c.

Referenced by do_binds().

◆ i_null_varchar

CS_SMALLINT i_null_varchar = -1

Definition at line 96 of file blk_in.c.

Referenced by do_binds().

◆ l_not_null_bit

CS_INT l_not_null_bit = 4

Definition at line 37 of file blk_in.c.

Referenced by do_binds().

◆ l_not_null_char

CS_INT l_not_null_char = 6

Definition at line 41 of file blk_in.c.

Referenced by do_binds().

◆ l_not_null_datetime

CS_INT l_not_null_datetime = 19

Definition at line 49 of file blk_in.c.

Referenced by do_binds().

◆ l_not_null_decimal

CS_INT l_not_null_decimal = 5

Definition at line 73 of file blk_in.c.

Referenced by do_binds().

◆ l_not_null_float

CS_INT l_not_null_float = 5

Definition at line 65 of file blk_in.c.

Referenced by do_binds().

◆ l_not_null_int

CS_INT l_not_null_int = 4

Definition at line 81 of file blk_in.c.

Referenced by do_binds().

◆ l_not_null_money

CS_INT l_not_null_money = 5

Definition at line 57 of file blk_in.c.

Referenced by do_binds().

◆ l_not_null_numeric

CS_INT l_not_null_numeric = 5

Definition at line 77 of file blk_in.c.

Referenced by do_binds().

◆ l_not_null_real

CS_INT l_not_null_real = 5

Definition at line 69 of file blk_in.c.

Referenced by do_binds().

◆ l_not_null_smalldatetime

CS_INT l_not_null_smalldatetime = 19

Definition at line 53 of file blk_in.c.

Referenced by do_binds().

◆ l_not_null_smallint

CS_INT l_not_null_smallint = 4

Definition at line 85 of file blk_in.c.

Referenced by do_binds().

◆ l_not_null_smallmoney

CS_INT l_not_null_smallmoney = 5

Definition at line 61 of file blk_in.c.

Referenced by do_binds().

◆ l_not_null_tinyint

CS_INT l_not_null_tinyint = 4

Definition at line 89 of file blk_in.c.

Referenced by do_binds().

◆ l_not_null_varchar

CS_INT l_not_null_varchar = 9

Definition at line 45 of file blk_in.c.

Referenced by do_binds().

◆ l_null_char

CS_INT l_null_char = 0

Definition at line 92 of file blk_in.c.

Referenced by do_binds().

◆ l_null_datetime

CS_INT l_null_datetime = 0

Definition at line 98 of file blk_in.c.

Referenced by do_binds().

◆ l_null_decimal

CS_INT l_null_decimal = 0

Definition at line 116 of file blk_in.c.

Referenced by do_binds().

◆ l_null_float

CS_INT l_null_float = 0

Definition at line 110 of file blk_in.c.

Referenced by do_binds().

◆ l_null_int

CS_INT l_null_int = 0

Definition at line 122 of file blk_in.c.

Referenced by do_binds().

◆ l_null_money

CS_INT l_null_money = 0

Definition at line 104 of file blk_in.c.

Referenced by do_binds().

◆ l_null_numeric

CS_INT l_null_numeric = 0

Definition at line 119 of file blk_in.c.

Referenced by do_binds().

◆ l_null_real

CS_INT l_null_real = 0

Definition at line 113 of file blk_in.c.

Referenced by do_binds().

◆ l_null_smalldatetime

CS_INT l_null_smalldatetime = 0

Definition at line 101 of file blk_in.c.

Referenced by do_binds().

◆ l_null_smallint

CS_INT l_null_smallint = 0

Definition at line 125 of file blk_in.c.

Referenced by do_binds().

◆ l_null_smallmoney

CS_INT l_null_smallmoney = 0

Definition at line 107 of file blk_in.c.

Referenced by do_binds().

◆ l_null_tinyint

CS_INT l_null_tinyint = 0

Definition at line 128 of file blk_in.c.

Referenced by do_binds().

◆ l_null_varchar

CS_INT l_null_varchar = 0

Definition at line 95 of file blk_in.c.

Referenced by do_binds().

◆ not_null_bit

int not_null_bit = 1

Definition at line 36 of file blk_in.c.

Referenced by do_binds().

◆ not_null_char

char not_null_char[] = "a char"

Definition at line 40 of file blk_in.c.

Referenced by do_binds().

◆ not_null_datetime

char not_null_datetime[] = "Dec 17 2003 3:44PM"

Definition at line 48 of file blk_in.c.

Referenced by do_binds().

◆ not_null_decimal

char not_null_decimal[] = "12.34"

Definition at line 72 of file blk_in.c.

Referenced by do_binds().

◆ not_null_float

char not_null_float[] = "12.34"

Definition at line 64 of file blk_in.c.

Referenced by do_binds().

◆ not_null_int

int not_null_int = 1234

Definition at line 80 of file blk_in.c.

Referenced by do_binds().

◆ not_null_money

char not_null_money[] = "12.34"

Definition at line 56 of file blk_in.c.

Referenced by do_binds().

◆ not_null_numeric

char not_null_numeric[] = "12.34"

Definition at line 76 of file blk_in.c.

Referenced by do_binds().

◆ not_null_real

char not_null_real[] = "12.34"

Definition at line 68 of file blk_in.c.

Referenced by do_binds().

◆ not_null_smalldatetime

char not_null_smalldatetime[] = "Dec 17 2003 3:44PM"

Definition at line 52 of file blk_in.c.

Referenced by do_binds().

◆ not_null_smallint

int not_null_smallint = 1234

Definition at line 84 of file blk_in.c.

Referenced by do_binds().

◆ not_null_smallmoney

char not_null_smallmoney[] = "12.34"

Definition at line 60 of file blk_in.c.

Referenced by do_binds().

◆ not_null_tinyint

int not_null_tinyint = 123

Definition at line 88 of file blk_in.c.

Referenced by do_binds().

◆ not_null_varchar

char not_null_varchar[] = "a varchar"

Definition at line 44 of file blk_in.c.

Referenced by do_binds().

Modified on Tue Feb 27 05:55:52 2024 by modify_doxy.py rev. 669887