#include <ecpglib.h>
#include <ecpgerrno.h>
#include <sqlca.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Go to the source code of this file.
◆ ECPGdebug
◆ main()
Definition at line 25 of file sql-quote.c.
25 {
26
27
28
29
30#line 9 "quote.pgc"
31 char var [ 25 ] ;
32
33#line 10 "quote.pgc"
35
36#line 11 "quote.pgc"
37
38
41#line 14 "quote.pgc"
42
43
45#line 16 "quote.pgc"
46
47
48#line 17 "quote.pgc"
49
50
51#line 18 "quote.pgc"
52
53
55#line 20 "quote.pgc"
56
58#line 20 "quote.pgc"
59
61#line 20 "quote.pgc"
62
63
65#line 22 "quote.pgc"
66
68#line 22 "quote.pgc"
69
71#line 22 "quote.pgc"
72
73
75 ECPGt_char,(var),(
long)25,(
long)1,(25)*
sizeof(
char),
77#line 24 "quote.pgc"
78
80#line 24 "quote.pgc"
81
83#line 24 "quote.pgc"
84
85 printf(
"Standard conforming strings: %s\n", var);
86
87
89#line 28 "quote.pgc"
90
92#line 28 "quote.pgc"
93
95#line 28 "quote.pgc"
96
97
99#line 30 "quote.pgc"
100
102#line 30 "quote.pgc"
103
105#line 30 "quote.pgc"
106
107
109#line 32 "quote.pgc"
110
112#line 32 "quote.pgc"
113
115#line 32 "quote.pgc"
116
117
118#line 33 "quote.pgc"
119
120
122#line 35 "quote.pgc"
123
125#line 35 "quote.pgc"
126
128#line 35 "quote.pgc"
129
130
131
132#line 37 "quote.pgc"
133
134
136 {
140 ECPGt_char,(var),(
long)25,(
long)1,(25)*
sizeof(
char),
142#line 41 "quote.pgc"
143
145#line 41 "quote.pgc"
146
148#line 41 "quote.pgc"
149
151#line 41 "quote.pgc"
152
153 printf(
"value: %d %s\n",
i, var);
154 }
155
157#line 45 "quote.pgc"
158
160#line 45 "quote.pgc"
161
163#line 45 "quote.pgc"
164
166#line 46 "quote.pgc"
167
169#line 46 "quote.pgc"
170
172#line 46 "quote.pgc"
173
174
176#line 48 "quote.pgc"
177
179#line 48 "quote.pgc"
180
182#line 48 "quote.pgc"
183
184
185 return 0;
186}
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)
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 ECPG_NOT_FOUND, ECPGconnect(), ECPGdebug, ECPGdisconnect(), ECPGdo(), ECPGsetcommit(), ECPGst_normal, ECPGt_char, ECPGt_EOIT, ECPGt_EORT, ECPGt_int, ECPGt_NO_INDICATOR, ECPGtrans(), fb(), i, printf, sqlca, and sqlprint().