9 #define ECPGdebug(X,Y) ECPGdebug((X)+100,(Y))
16 #line 1 "regression.h"
61 float f = ( float ) 3.71 ;
73 double dbl = 404.404 ;
101 {
ECPGconnect(__LINE__, 1,
"ecpg1_regression" , NULL, NULL , NULL, 0);
108 {
ECPGdo(__LINE__, 1, 0, NULL, 0,
ECPGst_normal,
"create table test ( id int , c char ( 10 ) , s smallint , i int , b bool , f float , l bigint , dbl double precision , dec decimal , dat date , tmp timestamptz )",
ECPGt_EOIT,
ECPGt_EORT);
121 {
ECPGdo(__LINE__, 1, 0, NULL, 0,
ECPGst_normal,
"insert into test ( id , c , s , i , b , f , l , dbl ) values ( 1 , $1 , $2 , $3 , $4 , $5 , $6 , $7 )",
122 ECPGt_char,(
c),(
long)
sizeof(
"abc"),(
long)1,(
sizeof(
"abc"))*
sizeof(
char),
159 {
ECPGdo(__LINE__, 1, 0, NULL, 0,
ECPGst_normal,
"insert into test ( id , c , s , i , b , f , l , dbl , dec , dat , tmp ) values ( 2 , $1 , $2 , $3 , $4 , $5 , $6 , $7 , $8 , $9 , $10 )",
160 ECPGt_char,(
c),(
long)
sizeof(
"abc"),(
long)1,(
sizeof(
"abc"))*
sizeof(
char),
194 {
ECPGdo(__LINE__, 1, 0, NULL, 0,
ECPGst_normal,
"select c , s , i , b , f , l , dbl , dec , dat , tmp from test where id = 1",
ECPGt_EOIT,
195 ECPGt_char,(
c),(
long)
sizeof(
"abc"),(
long)1,(
sizeof(
"abc"))*
sizeof(
char),
232 printf(
"second select\n");
234 {
ECPGdo(__LINE__, 1, 0, NULL, 0,
ECPGst_normal,
"select c , s , i , b , f , l , dbl , dec , dat , tmp from test where id = 2",
ECPGt_EOIT,
235 ECPGt_char,(
c),(
long)
sizeof(
"abc"),(
long)1,(
sizeof(
"abc"))*
sizeof(
char),
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)
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)