#include <ecpglib.h>
#include <ecpgerrno.h>
#include <sqlca.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
Go to the source code of this file.
|
#define | ECPGdebug(X, Y) ECPGdebug((X)+100,(Y)) |
|
◆ ECPGdebug
#define ECPGdebug |
( |
|
X, |
|
|
|
Y |
|
) |
| ECPGdebug((X)+100,(Y)) |
◆ main()
Definition at line 31 of file connect-test3.c.
32{
33
34
35
36
37#line 16 "test3.pgc"
38 char id [ 200 ] ;
39
40#line 17 "test3.pgc"
42
43#line 18 "test3.pgc"
44
45
47
48 strcpy(id, "first");
49 {
ECPGconnect(__LINE__, 0,
"ecpg2_regression" , NULL, NULL ,
id, 0); }
50#line 23 "test3.pgc"
51
52 {
ECPGconnect(__LINE__, 0,
"ecpg1_regression" , NULL, NULL ,
"second", 0); }
53#line 24 "test3.pgc"
54
55
56
60#line 27 "test3.pgc"
61
62
63
65#line 30 "test3.pgc"
66
70#line 31 "test3.pgc"
71
72
73 {
ECPGconnect(__LINE__, 0,
"ecpg1_regression" , NULL, NULL ,
"second", 0); }
74#line 33 "test3.pgc"
75
76
78#line 35 "test3.pgc"
79
80
81 {
ECPGconnect(__LINE__, 0,
"ecpg2_regression" , NULL, NULL ,
"second", 0); }
82#line 37 "test3.pgc"
83
85#line 38 "test3.pgc"
86
87
89#line 40 "test3.pgc"
90
92#line 41 "test3.pgc"
93
95#line 42 "test3.pgc"
96
97
98
99
100
101
102
103
104
105 return 0;
106}
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,...)
References ECPGconnect(), ECPGdebug, ECPGdisconnect(), ECPGdo(), ECPGst_normal, ECPGt_char, ECPGt_EOIT, ECPGt_EORT, ECPGt_NO_INDICATOR, and res.