#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.
◆ ECPGdebug
◆ main()
Definition at line 22 of file connect-test5.c.
23{
24
25
26
27
28
29#line 16 "test5.pgc"
30 char db [ 200 ] ;
31
32#line 17 "test5.pgc"
33 char id [ 200 ] ;
34
35#line 18 "test5.pgc"
36 char *
user =
"regress_ecpg_user1" ;
37
38#line 19 "test5.pgc"
39
40
42
44#line 23 "test5.pgc"
45
47#line 24 "test5.pgc"
48
50#line 25 "test5.pgc"
51
53#line 26 "test5.pgc"
54
56#line 27 "test5.pgc"
57
58
59 strcpy(db,
"ecpg2_regression");
62#line 31 "test5.pgc"
63
65#line 32 "test5.pgc"
66
67
69#line 34 "test5.pgc"
70
72#line 35 "test5.pgc"
73
74
76#line 37 "test5.pgc"
77
79#line 38 "test5.pgc"
80
81
83#line 40 "test5.pgc"
84
86#line 41 "test5.pgc"
87
88
89
90
91
92 {
ECPGconnect(
__LINE__, 0,
"ecpg2_regression" ,
"regress_ecpg_user1" ,
"connectpw" ,
"main", 0); }
93#line 46 "test5.pgc"
94
96#line 47 "test5.pgc"
97
98
99 {
ECPGconnect(
__LINE__, 0,
"unix:postgresql://localhost/ecpg2_regression" ,
"regress_ecpg_user1" ,
"connectpw" ,
"main", 0); }
100#line 49 "test5.pgc"
101
103#line 50 "test5.pgc"
104
105
106 {
ECPGconnect(
__LINE__, 0,
"unix:postgresql://localhost/ecpg2_regression" ,
"regress_ecpg_user1" ,
"connectpw" ,
"main", 0); }
107#line 52 "test5.pgc"
108
110#line 53 "test5.pgc"
111
112
114#line 55 "test5.pgc"
115
117#line 56 "test5.pgc"
118
119
120 {
ECPGconnect(
__LINE__, 0,
"unix:postgresql://localhost/ecpg2_regression?connect_timeout=180&client_encoding=sql_ascii" ,
"regress_ecpg_user1" ,
"connectpw" ,
"main", 0); }
121#line 58 "test5.pgc"
122
124#line 59 "test5.pgc"
125
126
127 {
ECPGconnect(
__LINE__, 0,
"unix:postgresql://200.46.204.71/ecpg2_regression" ,
"regress_ecpg_user1" ,
"connectpw" ,
"main", 0); }
128#line 61 "test5.pgc"
129
131#line 62 "test5.pgc"
132
133
134 {
ECPGconnect(
__LINE__, 0,
"unix:postgresql://localhost/?gssencmode=disable" ,
"regress_ecpg_user2" ,
"insecure" ,
"main", 0); }
135#line 64 "test5.pgc"
136
138#line 65 "test5.pgc"
139
140
141
143#line 68 "test5.pgc"
144
146#line 69 "test5.pgc"
147
149#line 70 "test5.pgc"
150
151
152
154#line 73 "test5.pgc"
155
156
157 return 0;
158}
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)
References ECPGconnect(), ECPGdebug, ECPGdisconnect(), ECPGdo(), ECPGst_normal, ECPGt_EOIT, ECPGt_EORT, ECPGtrans(), fb(), and user.