Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit b25749c

Browse files
committed
Make ECPG regression tests independent of standard_conforming_strings.
Per buildfarm, again.
1 parent 0e22e08 commit b25749c

File tree

4 files changed

+131
-88
lines changed

4 files changed

+131
-88
lines changed

src/interfaces/ecpg/test/expected/sql-quote.c

Lines changed: 62 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,7 @@ if (sqlca.sqlcode < 0) sqlprint();}
6161
#line 20 "quote.pgc"
6262

6363

64-
{ ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "show standard_conforming_strings", ECPGt_EOIT,
65-
ECPGt_char,(var),(long)25,(long)1,(25)*sizeof(char),
66-
ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
64+
{ ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "set standard_conforming_strings to off", ECPGt_EOIT, ECPGt_EORT);
6765
#line 22 "quote.pgc"
6866

6967
if (sqlca.sqlwarn[0] == 'W') sqlprint();
@@ -72,85 +70,110 @@ if (sqlca.sqlwarn[0] == 'W') sqlprint();
7270
if (sqlca.sqlcode < 0) sqlprint();}
7371
#line 22 "quote.pgc"
7472

73+
74+
{ ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "show standard_conforming_strings", ECPGt_EOIT,
75+
ECPGt_char,(var),(long)25,(long)1,(25)*sizeof(char),
76+
ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
77+
#line 24 "quote.pgc"
78+
79+
if (sqlca.sqlwarn[0] == 'W') sqlprint();
80+
#line 24 "quote.pgc"
81+
82+
if (sqlca.sqlcode < 0) sqlprint();}
83+
#line 24 "quote.pgc"
84+
7585
printf("Standard conforming strings: %s\n", var);
7686

7787
/* this is a\\b actually */
7888
{ ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into \"My_Table\" values ( 1 , 'a\\\\\\\\b' )", ECPGt_EOIT, ECPGt_EORT);
79-
#line 26 "quote.pgc"
89+
#line 28 "quote.pgc"
8090

8191
if (sqlca.sqlwarn[0] == 'W') sqlprint();
82-
#line 26 "quote.pgc"
92+
#line 28 "quote.pgc"
8393

8494
if (sqlca.sqlcode < 0) sqlprint();}
85-
#line 26 "quote.pgc"
95+
#line 28 "quote.pgc"
8696

8797
/* this is a\\b */
8898
{ ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into \"My_Table\" values ( 1 , E'a\\\\\\\\b' )", ECPGt_EOIT, ECPGt_EORT);
89-
#line 28 "quote.pgc"
99+
#line 30 "quote.pgc"
90100

91101
if (sqlca.sqlwarn[0] == 'W') sqlprint();
92-
#line 28 "quote.pgc"
102+
#line 30 "quote.pgc"
93103

94104
if (sqlca.sqlcode < 0) sqlprint();}
95-
#line 28 "quote.pgc"
105+
#line 30 "quote.pgc"
96106

97107

98108
{ ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "set standard_conforming_strings to on", ECPGt_EOIT, ECPGt_EORT);
99-
#line 30 "quote.pgc"
109+
#line 32 "quote.pgc"
100110

101111
if (sqlca.sqlwarn[0] == 'W') sqlprint();
102-
#line 30 "quote.pgc"
112+
#line 32 "quote.pgc"
103113

104114
if (sqlca.sqlcode < 0) sqlprint();}
105-
#line 30 "quote.pgc"
115+
#line 32 "quote.pgc"
116+
106117

118+
{ ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "show standard_conforming_strings", ECPGt_EOIT,
119+
ECPGt_char,(var),(long)25,(long)1,(25)*sizeof(char),
120+
ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
121+
#line 34 "quote.pgc"
122+
123+
if (sqlca.sqlwarn[0] == 'W') sqlprint();
124+
#line 34 "quote.pgc"
125+
126+
if (sqlca.sqlcode < 0) sqlprint();}
127+
#line 34 "quote.pgc"
128+
129+
printf("Standard conforming strings: %s\n", var);
107130

108131
/* this is a\\\\b actually */
109132
{ ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into \"My_Table\" values ( 2 , 'a\\\\\\\\b' )", ECPGt_EOIT, ECPGt_EORT);
110-
#line 33 "quote.pgc"
133+
#line 38 "quote.pgc"
111134

112135
if (sqlca.sqlwarn[0] == 'W') sqlprint();
113-
#line 33 "quote.pgc"
136+
#line 38 "quote.pgc"
114137

115138
if (sqlca.sqlcode < 0) sqlprint();}
116-
#line 33 "quote.pgc"
139+
#line 38 "quote.pgc"
117140

118141
/* this is a\\b */
119142
{ ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into \"My_Table\" values ( 2 , E'a\\\\\\\\b' )", ECPGt_EOIT, ECPGt_EORT);
120-
#line 35 "quote.pgc"
143+
#line 40 "quote.pgc"
121144

122145
if (sqlca.sqlwarn[0] == 'W') sqlprint();
123-
#line 35 "quote.pgc"
146+
#line 40 "quote.pgc"
124147

125148
if (sqlca.sqlcode < 0) sqlprint();}
126-
#line 35 "quote.pgc"
149+
#line 40 "quote.pgc"
127150

128151

129152
{ ECPGtrans(__LINE__, NULL, "begin");
130-
#line 37 "quote.pgc"
153+
#line 42 "quote.pgc"
131154

132155
if (sqlca.sqlwarn[0] == 'W') sqlprint();
133-
#line 37 "quote.pgc"
156+
#line 42 "quote.pgc"
134157

135158
if (sqlca.sqlcode < 0) sqlprint();}
136-
#line 37 "quote.pgc"
159+
#line 42 "quote.pgc"
137160

138161
/* declare C cursor for select * from \"My_Table\" */
139-
#line 38 "quote.pgc"
162+
#line 43 "quote.pgc"
140163

141164

142165
{ ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "declare C cursor for select * from \"My_Table\"", ECPGt_EOIT, ECPGt_EORT);
143-
#line 40 "quote.pgc"
166+
#line 45 "quote.pgc"
144167

145168
if (sqlca.sqlwarn[0] == 'W') sqlprint();
146-
#line 40 "quote.pgc"
169+
#line 45 "quote.pgc"
147170

148171
if (sqlca.sqlcode < 0) sqlprint();}
149-
#line 40 "quote.pgc"
172+
#line 45 "quote.pgc"
150173

151174

152175
/* exec sql whenever not found break ; */
153-
#line 42 "quote.pgc"
176+
#line 47 "quote.pgc"
154177

155178

156179
while (true)
@@ -160,47 +183,47 @@ if (sqlca.sqlcode < 0) sqlprint();}
160183
ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L,
161184
ECPGt_char,(var),(long)25,(long)1,(25)*sizeof(char),
162185
ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT);
163-
#line 46 "quote.pgc"
186+
#line 51 "quote.pgc"
164187

165188
if (sqlca.sqlcode == ECPG_NOT_FOUND) break;
166-
#line 46 "quote.pgc"
189+
#line 51 "quote.pgc"
167190

168191
if (sqlca.sqlwarn[0] == 'W') sqlprint();
169-
#line 46 "quote.pgc"
192+
#line 51 "quote.pgc"
170193

171194
if (sqlca.sqlcode < 0) sqlprint();}
172-
#line 46 "quote.pgc"
195+
#line 51 "quote.pgc"
173196

174197
printf("value: %d %s\n", i, var);
175198
}
176199

177200
{ ECPGtrans(__LINE__, NULL, "rollback");
178-
#line 50 "quote.pgc"
201+
#line 55 "quote.pgc"
179202

180203
if (sqlca.sqlwarn[0] == 'W') sqlprint();
181-
#line 50 "quote.pgc"
204+
#line 55 "quote.pgc"
182205

183206
if (sqlca.sqlcode < 0) sqlprint();}
184-
#line 50 "quote.pgc"
207+
#line 55 "quote.pgc"
185208

186209
{ ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "drop table \"My_Table\"", ECPGt_EOIT, ECPGt_EORT);
187-
#line 51 "quote.pgc"
210+
#line 56 "quote.pgc"
188211

189212
if (sqlca.sqlwarn[0] == 'W') sqlprint();
190-
#line 51 "quote.pgc"
213+
#line 56 "quote.pgc"
191214

192215
if (sqlca.sqlcode < 0) sqlprint();}
193-
#line 51 "quote.pgc"
216+
#line 56 "quote.pgc"
194217

195218

196219
{ ECPGdisconnect(__LINE__, "ALL");
197-
#line 53 "quote.pgc"
220+
#line 58 "quote.pgc"
198221

199222
if (sqlca.sqlwarn[0] == 'W') sqlprint();
200-
#line 53 "quote.pgc"
223+
#line 58 "quote.pgc"
201224

202225
if (sqlca.sqlcode < 0) sqlprint();}
203-
#line 53 "quote.pgc"
226+
#line 58 "quote.pgc"
204227

205228

206229
return 0;

src/interfaces/ecpg/test/expected/sql-quote.stderr

Lines changed: 63 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -10,112 +10,126 @@
1010
[NO_PID]: sqlca: code: 0, state: 00000
1111
[NO_PID]: ecpg_execute on line 20: OK: CREATE TABLE
1212
[NO_PID]: sqlca: code: 0, state: 00000
13-
[NO_PID]: ecpg_execute on line 22: query: show standard_conforming_strings; with 0 parameter(s) on connection regress1
13+
[NO_PID]: ecpg_execute on line 22: query: set standard_conforming_strings to off; with 0 parameter(s) on connection regress1
1414
[NO_PID]: sqlca: code: 0, state: 00000
1515
[NO_PID]: ecpg_execute on line 22: using PQexec
1616
[NO_PID]: sqlca: code: 0, state: 00000
17-
[NO_PID]: ecpg_execute on line 22: correctly got 1 tuples with 1 fields
17+
[NO_PID]: ecpg_execute on line 22: OK: SET
1818
[NO_PID]: sqlca: code: 0, state: 00000
19-
[NO_PID]: ecpg_get_data on line 22: RESULT: off offset: -1; array: no
19+
[NO_PID]: ecpg_execute on line 24: query: show standard_conforming_strings; with 0 parameter(s) on connection regress1
2020
[NO_PID]: sqlca: code: 0, state: 00000
21-
[NO_PID]: ecpg_execute on line 26: query: insert into "My_Table" values ( 1 , 'a\\\\b' ); with 0 parameter(s) on connection regress1
21+
[NO_PID]: ecpg_execute on line 24: using PQexec
22+
[NO_PID]: sqlca: code: 0, state: 00000
23+
[NO_PID]: ecpg_execute on line 24: correctly got 1 tuples with 1 fields
24+
[NO_PID]: sqlca: code: 0, state: 00000
25+
[NO_PID]: ecpg_get_data on line 24: RESULT: off offset: -1; array: no
26+
[NO_PID]: sqlca: code: 0, state: 00000
27+
[NO_PID]: ecpg_execute on line 28: query: insert into "My_Table" values ( 1 , 'a\\\\b' ); with 0 parameter(s) on connection regress1
2228
[NO_PID]: sqlca: code: 0, state: 00000
2329
[NO_PID]: ECPGnoticeReceiver: nonstandard use of \\ in a string literal
2430
[NO_PID]: sqlca: code: 0, state: 00000
2531
[NO_PID]: raising sqlcode 0
2632
[NO_PID]: sqlca: code: 0, state: 22P06
27-
[NO_PID]: ecpg_execute on line 26: using PQexec
33+
[NO_PID]: ecpg_execute on line 28: using PQexec
2834
[NO_PID]: sqlca: code: 0, state: 22P06
29-
[NO_PID]: ecpg_execute on line 26: OK: INSERT 0 1
35+
[NO_PID]: ecpg_execute on line 28: OK: INSERT 0 1
3036
[NO_PID]: sqlca: code: 0, state: 22P06
3137
SQL error: nonstandard use of \\ in a string literal
32-
[NO_PID]: ecpg_execute on line 28: query: insert into "My_Table" values ( 1 , E'a\\\\b' ); with 0 parameter(s) on connection regress1
38+
[NO_PID]: ecpg_execute on line 30: query: insert into "My_Table" values ( 1 , E'a\\\\b' ); with 0 parameter(s) on connection regress1
3339
[NO_PID]: sqlca: code: 0, state: 00000
34-
[NO_PID]: ecpg_execute on line 28: using PQexec
40+
[NO_PID]: ecpg_execute on line 30: using PQexec
3541
[NO_PID]: sqlca: code: 0, state: 00000
36-
[NO_PID]: ecpg_execute on line 28: OK: INSERT 0 1
42+
[NO_PID]: ecpg_execute on line 30: OK: INSERT 0 1
3743
[NO_PID]: sqlca: code: 0, state: 00000
38-
[NO_PID]: ecpg_execute on line 30: query: set standard_conforming_strings to on; with 0 parameter(s) on connection regress1
44+
[NO_PID]: ecpg_execute on line 32: query: set standard_conforming_strings to on; with 0 parameter(s) on connection regress1
3945
[NO_PID]: sqlca: code: 0, state: 00000
40-
[NO_PID]: ecpg_execute on line 30: using PQexec
46+
[NO_PID]: ecpg_execute on line 32: using PQexec
4147
[NO_PID]: sqlca: code: 0, state: 00000
42-
[NO_PID]: ecpg_execute on line 30: OK: SET
48+
[NO_PID]: ecpg_execute on line 32: OK: SET
4349
[NO_PID]: sqlca: code: 0, state: 00000
44-
[NO_PID]: ecpg_execute on line 33: query: insert into "My_Table" values ( 2 , 'a\\\\b' ); with 0 parameter(s) on connection regress1
50+
[NO_PID]: ecpg_execute on line 34: query: show standard_conforming_strings; with 0 parameter(s) on connection regress1
4551
[NO_PID]: sqlca: code: 0, state: 00000
46-
[NO_PID]: ecpg_execute on line 33: using PQexec
52+
[NO_PID]: ecpg_execute on line 34: using PQexec
4753
[NO_PID]: sqlca: code: 0, state: 00000
48-
[NO_PID]: ecpg_execute on line 33: OK: INSERT 0 1
54+
[NO_PID]: ecpg_execute on line 34: correctly got 1 tuples with 1 fields
4955
[NO_PID]: sqlca: code: 0, state: 00000
50-
[NO_PID]: ecpg_execute on line 35: query: insert into "My_Table" values ( 2 , E'a\\\\b' ); with 0 parameter(s) on connection regress1
56+
[NO_PID]: ecpg_get_data on line 34: RESULT: on offset: -1; array: no
5157
[NO_PID]: sqlca: code: 0, state: 00000
52-
[NO_PID]: ecpg_execute on line 35: using PQexec
58+
[NO_PID]: ecpg_execute on line 38: query: insert into "My_Table" values ( 2 , 'a\\\\b' ); with 0 parameter(s) on connection regress1
5359
[NO_PID]: sqlca: code: 0, state: 00000
54-
[NO_PID]: ecpg_execute on line 35: OK: INSERT 0 1
60+
[NO_PID]: ecpg_execute on line 38: using PQexec
5561
[NO_PID]: sqlca: code: 0, state: 00000
56-
[NO_PID]: ECPGtrans on line 37: action "begin"; connection "regress1"
62+
[NO_PID]: ecpg_execute on line 38: OK: INSERT 0 1
5763
[NO_PID]: sqlca: code: 0, state: 00000
58-
[NO_PID]: ecpg_execute on line 40: query: declare C cursor for select * from "My_Table"; with 0 parameter(s) on connection regress1
64+
[NO_PID]: ecpg_execute on line 40: query: insert into "My_Table" values ( 2 , E'a\\\\b' ); with 0 parameter(s) on connection regress1
5965
[NO_PID]: sqlca: code: 0, state: 00000
6066
[NO_PID]: ecpg_execute on line 40: using PQexec
6167
[NO_PID]: sqlca: code: 0, state: 00000
62-
[NO_PID]: ecpg_execute on line 40: OK: DECLARE CURSOR
68+
[NO_PID]: ecpg_execute on line 40: OK: INSERT 0 1
6369
[NO_PID]: sqlca: code: 0, state: 00000
64-
[NO_PID]: ecpg_execute on line 46: query: fetch C; with 0 parameter(s) on connection regress1
70+
[NO_PID]: ECPGtrans on line 42: action "begin"; connection "regress1"
6571
[NO_PID]: sqlca: code: 0, state: 00000
66-
[NO_PID]: ecpg_execute on line 46: using PQexec
72+
[NO_PID]: ecpg_execute on line 45: query: declare C cursor for select * from "My_Table"; with 0 parameter(s) on connection regress1
6773
[NO_PID]: sqlca: code: 0, state: 00000
68-
[NO_PID]: ecpg_execute on line 46: correctly got 1 tuples with 2 fields
74+
[NO_PID]: ecpg_execute on line 45: using PQexec
6975
[NO_PID]: sqlca: code: 0, state: 00000
70-
[NO_PID]: ecpg_get_data on line 46: RESULT: 1 offset: -1; array: no
76+
[NO_PID]: ecpg_execute on line 45: OK: DECLARE CURSOR
7177
[NO_PID]: sqlca: code: 0, state: 00000
72-
[NO_PID]: ecpg_get_data on line 46: RESULT: a\\b offset: -1; array: no
78+
[NO_PID]: ecpg_execute on line 51: query: fetch C; with 0 parameter(s) on connection regress1
7379
[NO_PID]: sqlca: code: 0, state: 00000
74-
[NO_PID]: ecpg_execute on line 46: query: fetch C; with 0 parameter(s) on connection regress1
80+
[NO_PID]: ecpg_execute on line 51: using PQexec
7581
[NO_PID]: sqlca: code: 0, state: 00000
76-
[NO_PID]: ecpg_execute on line 46: using PQexec
82+
[NO_PID]: ecpg_execute on line 51: correctly got 1 tuples with 2 fields
7783
[NO_PID]: sqlca: code: 0, state: 00000
78-
[NO_PID]: ecpg_execute on line 46: correctly got 1 tuples with 2 fields
84+
[NO_PID]: ecpg_get_data on line 51: RESULT: 1 offset: -1; array: no
7985
[NO_PID]: sqlca: code: 0, state: 00000
80-
[NO_PID]: ecpg_get_data on line 46: RESULT: 1 offset: -1; array: no
86+
[NO_PID]: ecpg_get_data on line 51: RESULT: a\\b offset: -1; array: no
8187
[NO_PID]: sqlca: code: 0, state: 00000
82-
[NO_PID]: ecpg_get_data on line 46: RESULT: a\\b offset: -1; array: no
88+
[NO_PID]: ecpg_execute on line 51: query: fetch C; with 0 parameter(s) on connection regress1
8389
[NO_PID]: sqlca: code: 0, state: 00000
84-
[NO_PID]: ecpg_execute on line 46: query: fetch C; with 0 parameter(s) on connection regress1
90+
[NO_PID]: ecpg_execute on line 51: using PQexec
8591
[NO_PID]: sqlca: code: 0, state: 00000
86-
[NO_PID]: ecpg_execute on line 46: using PQexec
92+
[NO_PID]: ecpg_execute on line 51: correctly got 1 tuples with 2 fields
8793
[NO_PID]: sqlca: code: 0, state: 00000
88-
[NO_PID]: ecpg_execute on line 46: correctly got 1 tuples with 2 fields
94+
[NO_PID]: ecpg_get_data on line 51: RESULT: 1 offset: -1; array: no
8995
[NO_PID]: sqlca: code: 0, state: 00000
90-
[NO_PID]: ecpg_get_data on line 46: RESULT: 2 offset: -1; array: no
96+
[NO_PID]: ecpg_get_data on line 51: RESULT: a\\b offset: -1; array: no
9197
[NO_PID]: sqlca: code: 0, state: 00000
92-
[NO_PID]: ecpg_get_data on line 46: RESULT: a\\\\b offset: -1; array: no
98+
[NO_PID]: ecpg_execute on line 51: query: fetch C; with 0 parameter(s) on connection regress1
9399
[NO_PID]: sqlca: code: 0, state: 00000
94-
[NO_PID]: ecpg_execute on line 46: query: fetch C; with 0 parameter(s) on connection regress1
100+
[NO_PID]: ecpg_execute on line 51: using PQexec
95101
[NO_PID]: sqlca: code: 0, state: 00000
96-
[NO_PID]: ecpg_execute on line 46: using PQexec
102+
[NO_PID]: ecpg_execute on line 51: correctly got 1 tuples with 2 fields
97103
[NO_PID]: sqlca: code: 0, state: 00000
98-
[NO_PID]: ecpg_execute on line 46: correctly got 1 tuples with 2 fields
104+
[NO_PID]: ecpg_get_data on line 51: RESULT: 2 offset: -1; array: no
99105
[NO_PID]: sqlca: code: 0, state: 00000
100-
[NO_PID]: ecpg_get_data on line 46: RESULT: 2 offset: -1; array: no
106+
[NO_PID]: ecpg_get_data on line 51: RESULT: a\\\\b offset: -1; array: no
101107
[NO_PID]: sqlca: code: 0, state: 00000
102-
[NO_PID]: ecpg_get_data on line 46: RESULT: a\\b offset: -1; array: no
108+
[NO_PID]: ecpg_execute on line 51: query: fetch C; with 0 parameter(s) on connection regress1
103109
[NO_PID]: sqlca: code: 0, state: 00000
104-
[NO_PID]: ecpg_execute on line 46: query: fetch C; with 0 parameter(s) on connection regress1
110+
[NO_PID]: ecpg_execute on line 51: using PQexec
105111
[NO_PID]: sqlca: code: 0, state: 00000
106-
[NO_PID]: ecpg_execute on line 46: using PQexec
112+
[NO_PID]: ecpg_execute on line 51: correctly got 1 tuples with 2 fields
107113
[NO_PID]: sqlca: code: 0, state: 00000
108-
[NO_PID]: ecpg_execute on line 46: correctly got 0 tuples with 2 fields
114+
[NO_PID]: ecpg_get_data on line 51: RESULT: 2 offset: -1; array: no
109115
[NO_PID]: sqlca: code: 0, state: 00000
110-
[NO_PID]: raising sqlcode 100 on line 46: no data found on line 46
111-
[NO_PID]: sqlca: code: 100, state: 02000
112-
[NO_PID]: ECPGtrans on line 50: action "rollback"; connection "regress1"
116+
[NO_PID]: ecpg_get_data on line 51: RESULT: a\\b offset: -1; array: no
113117
[NO_PID]: sqlca: code: 0, state: 00000
114-
[NO_PID]: ecpg_execute on line 51: query: drop table "My_Table"; with 0 parameter(s) on connection regress1
118+
[NO_PID]: ecpg_execute on line 51: query: fetch C; with 0 parameter(s) on connection regress1
115119
[NO_PID]: sqlca: code: 0, state: 00000
116120
[NO_PID]: ecpg_execute on line 51: using PQexec
117121
[NO_PID]: sqlca: code: 0, state: 00000
118-
[NO_PID]: ecpg_execute on line 51: OK: DROP TABLE
122+
[NO_PID]: ecpg_execute on line 51: correctly got 0 tuples with 2 fields
123+
[NO_PID]: sqlca: code: 0, state: 00000
124+
[NO_PID]: raising sqlcode 100 on line 51: no data found on line 51
125+
[NO_PID]: sqlca: code: 100, state: 02000
126+
[NO_PID]: ECPGtrans on line 55: action "rollback"; connection "regress1"
127+
[NO_PID]: sqlca: code: 0, state: 00000
128+
[NO_PID]: ecpg_execute on line 56: query: drop table "My_Table"; with 0 parameter(s) on connection regress1
129+
[NO_PID]: sqlca: code: 0, state: 00000
130+
[NO_PID]: ecpg_execute on line 56: using PQexec
131+
[NO_PID]: sqlca: code: 0, state: 00000
132+
[NO_PID]: ecpg_execute on line 56: OK: DROP TABLE
119133
[NO_PID]: sqlca: code: 0, state: 00000
120134
[NO_PID]: ecpg_finish: connection regress1 closed
121135
[NO_PID]: sqlca: code: 0, state: 00000

src/interfaces/ecpg/test/expected/sql-quote.stdout

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
Standard conforming strings: off
2+
Standard conforming strings: on
23
value: 1 a\\b
34
value: 1 a\\b
45
value: 2 a\\\\b

0 commit comments

Comments
 (0)