#include <ecpglib.h>
#include <ecpgerrno.h>
#include <sqlca.h>
Go to the source code of this file.
◆ ECPGdebug [1/2]
◆ ECPGdebug [2/2]
◆ PGDLLIMPORT
◆ POSTGRES_SQLCA_H
◆ sqlca
◆ SQLERRMC_LEN
◆ ECPGget_sqlca()
Definition at line 108 of file misc.c.
109{
111
113
116 {
122 }
124}
static pthread_key_t sqlca_key
void ecpg_init_sqlca(struct sqlca_t *sqlca)
static void ecpg_sqlca_key_init(void)
static pthread_once_t sqlca_key_once
void pthread_setspecific(pthread_key_t key, void *val)
void * pthread_getspecific(pthread_key_t key)
◆ main()
Definition at line 110 of file sql-define.c.
111{
112
113
114
115
116#line 10 "define.pgc"
118
119#line 11 "define.pgc"
120 char s [ 200 ] ;
121
122#line 12 "define.pgc"
123
124
126
127
128#line 16 "define.pgc"
129
131#line 17 "define.pgc"
132
134#line 17 "define.pgc"
135
136
138#line 19 "define.pgc"
139
141#line 19 "define.pgc"
142
144#line 20 "define.pgc"
145
147#line 20 "define.pgc"
148
149
150
152#line 23 "define.pgc"
153
155#line 23 "define.pgc"
156
157
158
159
160
161
162
163
165#line 31 "define.pgc"
166
168#line 31 "define.pgc"
169
170
171
172
173
177 ECPGt_char,(s),(
long)200,(
long)1,(200)*
sizeof(
char),
179#line 36 "define.pgc"
180
182#line 36 "define.pgc"
183
184
185 printf(
"i: %d, s: %s\n",
i, s);
186
187
188
190#line 42 "define.pgc"
191
193#line 42 "define.pgc"
194
195
196
197
198
199
200
201
202
203
204
206#line 53 "define.pgc"
207
209#line 53 "define.pgc"
210
211
212
213
217#line 57 "define.pgc"
218
220#line 57 "define.pgc"
221
222 printf(
"original CMDLINESYM: %d\n",
i);
223
224
225
229#line 62 "define.pgc"
230
232#line 62 "define.pgc"
233
234 printf(
"redefined CMDLINESYM: %d\n",
i);
235
236
237
241#line 67 "define.pgc"
242
244#line 67 "define.pgc"
245
246 printf(
"redefined CMDLINESYM: %d\n",
i);
247
248
249
250
251
252
253
254
255
256
257
258
260#line 81 "define.pgc"
261
263#line 81 "define.pgc"
264
265 return 0;
266}
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,...)
References ECPGconnect(), ECPGdebug, ECPGdisconnect(), ECPGdo(), ECPGst_normal, ECPGt_char, ECPGt_EOIT, ECPGt_EORT, ECPGt_int, ECPGt_NO_INDICATOR, fb(), i, printf, sqlca, and sqlprint().