71 #line 17 "num_test.pgc"
74 #line 19 "num_test.pgc"
82 #line 25 "num_test.pgc"
85 {
ECPGconnect(__LINE__, 0,
"ecpg1_regression" , NULL, NULL , NULL, 0);
86 #line 27 "num_test.pgc"
89 #line 27 "num_test.pgc"
93 #line 29 "num_test.pgc"
96 #line 29 "num_test.pgc"
98 {
ECPGdo(__LINE__, 0, 1, NULL, 0,
ECPGst_normal,
"create table test ( text char ( 5 ) , num numeric ( 14 , 7 ) )",
ECPGt_EOIT,
ECPGt_EORT);
99 #line 30 "num_test.pgc"
102 #line 30 "num_test.pgc"
128 {
ECPGdo(__LINE__, 0, 1, NULL, 0,
ECPGst_normal,
"insert into test ( text , num ) values ( 'test' , $1 )",
131 #line 55 "num_test.pgc"
134 #line 55 "num_test.pgc"
144 #line 61 "num_test.pgc"
147 #line 61 "num_test.pgc"
170 printf(
"to long(%d) = %ld %ld\n",
i, l1, l2);
180 printf(
"min int = %d\n", min);
185 printf(
"max int = %d\n", max);
189 #line 101 "num_test.pgc"
192 #line 101 "num_test.pgc"
195 #line 102 "num_test.pgc"
198 #line 102 "num_test.pgc"
bool ECPGsetcommit(int lineno, const char *mode, const char *connection_name)
bool ECPGdisconnect(int lineno, const char *connection_name)
bool ECPGconnect(int lineno, int c, const char *name, const char *user, const char *passwd, const char *connection_name, int autocommit)
static void PGresult * res
bool ECPGdo(const int lineno, const int compat, const int force_indicator, const char *connection_name, const bool questionmarks, const int st, const char *query,...)
bool ECPGtrans(int lineno, const char *connection_name, const char *transaction)
void PGTYPESchar_free(char *ptr)
int PGTYPESnumeric_copy(numeric *src, numeric *dst)
int PGTYPESnumeric_mul(numeric *var1, numeric *var2, numeric *result)
int PGTYPESnumeric_to_long(numeric *nv, long *lp)
int PGTYPESnumeric_to_double(numeric *nv, double *dp)
int PGTYPESnumeric_to_int(numeric *nv, int *ip)
char * PGTYPESnumeric_to_asc(numeric *num, int dscale)
numeric * PGTYPESnumeric_new(void)
int PGTYPESnumeric_from_int(signed int int_val, numeric *var)
int PGTYPESnumeric_sub(numeric *var1, numeric *var2, numeric *result)
numeric * PGTYPESnumeric_from_asc(char *str, char **endptr)
void PGTYPESnumeric_free(numeric *var)
int PGTYPESnumeric_div(numeric *var1, numeric *var2, numeric *result)
int PGTYPESnumeric_add(numeric *var1, numeric *var2, numeric *result)
static void print_double(double x)