Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6e11202

Browse files
author
Michael Meskes
committed
Made parser check for valid copy to/from stdin/stdout combinations.
Lots of small changes in regression test suite
1 parentd42cb5d commit6e11202

33 files changed

+748
-714
lines changed

‎src/interfaces/ecpg/ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2072,5 +2072,9 @@ Fr Aug 4 10:44:30 CEST 2006
20722072
Mo Aug 7 14:56:44 CEST 2006
20732073

20742074
- Joachim fixed some bugs in numeric handling in pgtypeslib.
2075+
2076+
Tu Aug 8 13:26:25 CEST 2006
2077+
2078+
- Made parser check for valid copy to/from stdin/stdout combinations.
20752079
- Set ecpg library version to 5.2.
20762080
- Set ecpg version to 4.2.1.

‎src/interfaces/ecpg/ecpglib/data.c

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/data.c,v 1.32 2006/06/21 10:24:40 meskes Exp $ */
1+
/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/data.c,v 1.33 2006/08/08 11:51:24 meskes Exp $ */
22

33
#definePOSTGRES_ECPG_INTERNAL
44
#include"postgres_fe.h"
@@ -16,6 +16,8 @@
1616
#include"pgtypes_timestamp.h"
1717
#include"pgtypes_interval.h"
1818

19+
staticenum {NOT_CHECKED,REGRESS,NORMAL }ECPG_regression_mode=NOT_CHECKED;
20+
1921
staticbool
2022
garbage_left(enumARRAY_TYPEisarray,char*scan_length,enumCOMPAT_MODEcompat)
2123
{
@@ -49,8 +51,32 @@ ECPGget_data(const PGresult *results, int act_tuple, int act_field, int lineno,
4951
intbinary=PQfformat(results,act_field);
5052
intsize=PQgetlength(results,act_tuple,act_field);
5153
intvalue_for_indicator=0;
54+
longlog_offset;
55+
56+
/*
57+
* use a global variable to see if the environment variable
58+
* ECPG_REGRESSION is set or not. Remember the state in order to avoid
59+
* subsequent calls to getenv() for this purpose.
60+
*/
61+
if (ECPG_regression_mode==NOT_CHECKED)
62+
{
63+
if (getenv("ECPG_REGRESSION"))
64+
ECPG_regression_mode=REGRESS;
65+
else
66+
ECPG_regression_mode=NORMAL;
67+
}
68+
69+
/*
70+
* If we are running in a regression test, do not log the offset
71+
* variable, it depends on the machine's alignment.
72+
*/
73+
if (ECPG_regression_mode==REGRESS)
74+
log_offset=-1;
75+
else
76+
log_offset=offset;
77+
78+
ECPGlog("ECPGget_data line %d: RESULT: %s offset: %ld array: %s\n",lineno,pval ? (binary ?"BINARY" :pval) :"EMPTY",log_offset,isarray ?"Yes" :"No");
5279

53-
ECPGlog("ECPGget_data line %d: RESULT: %s offset: %ld array: %s\n",lineno,pval ? (binary ?"BINARY" :pval) :"EMPTY",offset,isarray ?"Yes" :"No");
5480
/* We will have to decode the value */
5581

5682
/*

‎src/interfaces/ecpg/ecpglib/misc.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/misc.c,v 1.29 2006/07/31 13:26:46 meskes Exp $ */
1+
/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/misc.c,v 1.30 2006/08/08 11:51:24 meskes Exp $ */
22

33
#definePOSTGRES_ECPG_INTERNAL
44
#include"postgres_fe.h"
@@ -262,7 +262,7 @@ ECPGlog(const char *format,...)
262262
* regression tests set this environment variable to get the same
263263
* output for every run.
264264
*/
265-
if (getenv("ECPG_DONT_LOG_PID"))
265+
if (getenv("ECPG_REGRESSION"))
266266
snprintf(f,bufsize,"[NO_PID]: %s",format);
267267
else
268268
snprintf(f,bufsize,"[%d]: %s", (int)getpid(),format);
@@ -272,7 +272,7 @@ ECPGlog(const char *format,...)
272272
va_end(ap);
273273

274274
/* dump out internal sqlca variables */
275-
if (getenv("ECPG_DONT_LOG_PID"))
275+
if (getenv("ECPG_REGRESSION"))
276276
fprintf(debugstream,"[NO_PID]: sqlca: code: %ld, state: %s\n",
277277
sqlca->sqlcode,sqlca->sqlstate);
278278

‎src/interfaces/ecpg/preproc/preproc.y

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/preproc.y,v 1.327 2006/08/02 13:43:23 meskes Exp $*/
1+
/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/preproc.y,v 1.328 2006/08/08 11:51:24 meskes Exp $*/
22

33
/* Copyright comment*/
44
%{
@@ -1379,19 +1379,23 @@ ClosePortalStmt: CLOSE name
13791379

13801380
CopyStmt:COPYopt_binaryqualified_nameopt_oidscopy_from
13811381
copy_file_namecopy_delimiteropt_withcopy_opt_list
1382-
{$$ = cat_str(9, make_str("copy"),$2,$3,$4,$5,$6,$7,$8,$9); }
1382+
{
1383+
if (strcmp($5,"to") ==0 && strcmp($6,"stdin") ==0)
1384+
mmerror(PARSE_ERROR, ET_ERROR,"copy to stdin not possible.\n");
1385+
elseif (strcmp($5,"from") ==0 && strcmp($6,"stdout") ==0)
1386+
mmerror(PARSE_ERROR, ET_ERROR,"copy from stdout not possible.\n");
1387+
elseif (strcmp($5,"from") ==0 && strcmp($6,"stdin") ==0)
1388+
mmerror(PARSE_ERROR, ET_WARNING,"copy from stdin not implemented.\n");
1389+
1390+
$$ = cat_str(9, make_str("copy"),$2,$3,$4,$5,$6,$7,$8,$9);
1391+
}
13831392
;
13841393

13851394
copy_from:TO{$$ = make_str("to"); }
13861395
|FROM{$$ = make_str("from"); }
13871396
;
13881397

1389-
/*
1390-
* copy_file_name NULL indicates stdio is used. Whether stdin or stdout is
1391-
* used depends on the direction. (It really doesn't make sense to copy from
1392-
* stdout. We silently correct the "typo". - AY 9/94
1393-
*/
1394-
copy_file_name:StringConst{$$ =$1; }
1398+
copy_file_name:StringConst{$$ =$1; }
13951399
|STDIN{$$ = make_str("stdin"); }
13961400
|STDOUT{$$ = make_str("stdout"); }
13971401
;

‎src/interfaces/ecpg/test/errors/init.pgc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ int main(void)
6969
int c=10>>2;
7070
bool h=2||1;
7171
long iay /* = 1L */ ;
72-
long long iax /* = 40000000000LL */ ;
7372
exec sql end declare section;
7473

7574
int f=fa();
@@ -83,8 +82,8 @@ int main(void)
8382
ECPGdebug(1, stderr);
8483

8584
printf("%d %d %d %d %d %d %d %d %d %d %d\n", a, b, b2, c, d, e, f, g, h, i, j);
86-
iax =iay = 0;
87-
printf("%ld %lld\n", iay, iax);
85+
iay = 0;
86+
printf("%ld\n", iay);
8887
exec sql whenever sqlerror do fa();
8988
exec sql select now();
9089
exec sql whenever sqlerror do fb(20);

‎src/interfaces/ecpg/test/expected/compat_informix-test_informix.stderr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,17 @@
4646
[NO_PID]: sqlca: code: 0, state: 00000
4747
[NO_PID]: ECPGexecute line 54: Correctly got 1 tuples with 2 fields
4848
[NO_PID]: sqlca: code: 0, state: 00000
49-
[NO_PID]: ECPGget_data line 54: RESULT: 7 offset:4 array: Yes
49+
[NO_PID]: ECPGget_data line 54: RESULT: 7 offset:-1 array: Yes
5050
[NO_PID]: sqlca: code: 0, state: 00000
51-
[NO_PID]: ECPGget_data line 54: RESULT: 0 offset:52 array: Yes
51+
[NO_PID]: ECPGget_data line 54: RESULT: 0 offset:-1 array: Yes
5252
[NO_PID]: sqlca: code: 0, state: 00000
5353
[NO_PID]: ECPGexecute line 54: QUERY: fetch forward from c on connection regress1
5454
[NO_PID]: sqlca: code: 0, state: 00000
5555
[NO_PID]: ECPGexecute line 54: Correctly got 1 tuples with 2 fields
5656
[NO_PID]: sqlca: code: 0, state: 00000
57-
[NO_PID]: ECPGget_data line 54: RESULT: 14 offset:4 array: Yes
57+
[NO_PID]: ECPGget_data line 54: RESULT: 14 offset:-1 array: Yes
5858
[NO_PID]: sqlca: code: 0, state: 00000
59-
[NO_PID]: ECPGget_data line 54: RESULT: 1 offset:52 array: Yes
59+
[NO_PID]: ECPGget_data line 54: RESULT: 1 offset:-1 array: Yes
6060
[NO_PID]: sqlca: code: 0, state: 00000
6161
[NO_PID]: ECPGexecute line 54: QUERY: fetch forward from c on connection regress1
6262
[NO_PID]: sqlca: code: 0, state: 00000

‎src/interfaces/ecpg/test/expected/compat_informix-test_informix2.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@
1414
[NO_PID]: sqlca: code: 0, state: 00000
1515
[NO_PID]: ECPGexecute line 78: Correctly got 1 tuples with 1 fields
1616
[NO_PID]: sqlca: code: 0, state: 00000
17-
[NO_PID]: ECPGget_data line 78: RESULT: Wed May 07 13:28:34 2003 offset:8 array: Yes
17+
[NO_PID]: ECPGget_data line 78: RESULT: Wed May 07 13:28:34 2003 offset:-1 array: Yes
1818
[NO_PID]: sqlca: code: 0, state: 00000
1919
[NO_PID]: ECPGexecute line 89: QUERY: select customerid , timestamp from history where timestamp = timestamp '2003-05-07 13:28:34' limit 1 on connection regress1
2020
[NO_PID]: sqlca: code: 0, state: 00000
2121
[NO_PID]: ECPGexecute line 89: Correctly got 1 tuples with 2 fields
2222
[NO_PID]: sqlca: code: 0, state: 00000
23-
[NO_PID]: ECPGget_data line 89: RESULT: 1 offset:4 array: Yes
23+
[NO_PID]: ECPGget_data line 89: RESULT: 1 offset:-1 array: Yes
2424
[NO_PID]: sqlca: code: 0, state: 00000
25-
[NO_PID]: ECPGget_data line 89: RESULT: Wed May 07 13:28:34 2003 offset:8 array: Yes
25+
[NO_PID]: ECPGget_data line 89: RESULT: Wed May 07 13:28:34 2003 offset:-1 array: Yes
2626
[NO_PID]: sqlca: code: 0, state: 00000
2727
[NO_PID]: ECPGexecute line 103: QUERY: insert into history ( customerid , timestamp , action_taken , narrative ) values( 2 , timestamp '2003-05-08 15:53:39' , 'test' , 'test' ) on connection regress1
2828
[NO_PID]: sqlca: code: 0, state: 00000

‎src/interfaces/ecpg/test/expected/complex-test1.stderr

Lines changed: 63 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -48,29 +48,29 @@
4848
[NO_PID]: sqlca: code: 0, state: 00000
4949
[NO_PID]: ECPGexecute line 118: Correctly got 4 tuples with 3 fields
5050
[NO_PID]: sqlca: code: 0, state: 00000
51-
[NO_PID]: ECPGget_data line 118: RESULT: db: 'r1' offset:8 array: Yes
51+
[NO_PID]: ECPGget_data line 118: RESULT: db: 'r1' offset:-1 array: Yes
5252
[NO_PID]: sqlca: code: 0, state: 00000
53-
[NO_PID]: ECPGget_data line 118: RESULT: db: 'r1' offset:8 array: Yes
53+
[NO_PID]: ECPGget_data line 118: RESULT: db: 'r1' offset:-1 array: Yes
5454
[NO_PID]: sqlca: code: 0, state: 00000
55-
[NO_PID]: ECPGget_data line 118: RESULT: db: 'r1' offset:8 array: Yes
55+
[NO_PID]: ECPGget_data line 118: RESULT: db: 'r1' offset:-1 array: Yes
5656
[NO_PID]: sqlca: code: 0, state: 00000
57-
[NO_PID]: ECPGget_data line 118: RESULT: db: 'r1' offset:8 array: Yes
57+
[NO_PID]: ECPGget_data line 118: RESULT: db: 'r1' offset:-1 array: Yes
5858
[NO_PID]: sqlca: code: 0, state: 00000
59-
[NO_PID]: ECPGget_data line 118: RESULT: 1 offset:4 array: Yes
59+
[NO_PID]: ECPGget_data line 118: RESULT: 1 offset:-1 array: Yes
6060
[NO_PID]: sqlca: code: 0, state: 00000
61-
[NO_PID]: ECPGget_data line 118: RESULT: 2 offset:4 array: Yes
61+
[NO_PID]: ECPGget_data line 118: RESULT: 2 offset:-1 array: Yes
6262
[NO_PID]: sqlca: code: 0, state: 00000
63-
[NO_PID]: ECPGget_data line 118: RESULT: 11 offset:4 array: Yes
63+
[NO_PID]: ECPGget_data line 118: RESULT: 11 offset:-1 array: Yes
6464
[NO_PID]: sqlca: code: 0, state: 00000
65-
[NO_PID]: ECPGget_data line 118: RESULT: 12 offset:4 array: Yes
65+
[NO_PID]: ECPGget_data line 118: RESULT: 12 offset:-1 array: Yes
6666
[NO_PID]: sqlca: code: 0, state: 00000
67-
[NO_PID]: ECPGget_data line 118: RESULT: f offset: 1 array: Yes
67+
[NO_PID]: ECPGget_data line 118: RESULT: f offset:-1 array: Yes
6868
[NO_PID]: sqlca: code: 0, state: 00000
69-
[NO_PID]: ECPGget_data line 118: RESULT: t offset: 1 array: Yes
69+
[NO_PID]: ECPGget_data line 118: RESULT: t offset:-1 array: Yes
7070
[NO_PID]: sqlca: code: 0, state: 00000
71-
[NO_PID]: ECPGget_data line 118: RESULT: f offset: 1 array: Yes
71+
[NO_PID]: ECPGget_data line 118: RESULT: f offset:-1 array: Yes
7272
[NO_PID]: sqlca: code: 0, state: 00000
73-
[NO_PID]: ECPGget_data line 118: RESULT: t offset: 1 array: Yes
73+
[NO_PID]: ECPGget_data line 118: RESULT: t offset:-1 array: Yes
7474
[NO_PID]: sqlca: code: 0, state: 00000
7575
[NO_PID]: ECPGexecute line 133: QUERY: insert into "Test" ( name , amount , letter ) values( 'db: ''r1''' , 1001 , 'f' ) on connection pm
7676
[NO_PID]: sqlca: code: 0, state: 00000
@@ -100,29 +100,29 @@
100100
[NO_PID]: sqlca: code: 0, state: 00000
101101
[NO_PID]: ECPGexecute line 148: Correctly got 4 tuples with 3 fields
102102
[NO_PID]: sqlca: code: 0, state: 00000
103-
[NO_PID]: ECPGget_data line 148: RESULT: db: 'r1' offset:8 array: Yes
103+
[NO_PID]: ECPGget_data line 148: RESULT: db: 'r1' offset:-1 array: Yes
104104
[NO_PID]: sqlca: code: 0, state: 00000
105-
[NO_PID]: ECPGget_data line 148: RESULT: db: 'r1' offset:8 array: Yes
105+
[NO_PID]: ECPGget_data line 148: RESULT: db: 'r1' offset:-1 array: Yes
106106
[NO_PID]: sqlca: code: 0, state: 00000
107-
[NO_PID]: ECPGget_data line 148: RESULT: db: 'r1' offset:8 array: Yes
107+
[NO_PID]: ECPGget_data line 148: RESULT: db: 'r1' offset:-1 array: Yes
108108
[NO_PID]: sqlca: code: 0, state: 00000
109-
[NO_PID]: ECPGget_data line 148: RESULT: db: 'r1' offset:8 array: Yes
109+
[NO_PID]: ECPGget_data line 148: RESULT: db: 'r1' offset:-1 array: Yes
110110
[NO_PID]: sqlca: code: 0, state: 00000
111-
[NO_PID]: ECPGget_data line 148: RESULT: 1 offset:4 array: Yes
111+
[NO_PID]: ECPGget_data line 148: RESULT: 1 offset:-1 array: Yes
112112
[NO_PID]: sqlca: code: 0, state: 00000
113-
[NO_PID]: ECPGget_data line 148: RESULT: 2 offset:4 array: Yes
113+
[NO_PID]: ECPGget_data line 148: RESULT: 2 offset:-1 array: Yes
114114
[NO_PID]: sqlca: code: 0, state: 00000
115-
[NO_PID]: ECPGget_data line 148: RESULT: 11 offset:4 array: Yes
115+
[NO_PID]: ECPGget_data line 148: RESULT: 11 offset:-1 array: Yes
116116
[NO_PID]: sqlca: code: 0, state: 00000
117-
[NO_PID]: ECPGget_data line 148: RESULT: 12 offset:4 array: Yes
117+
[NO_PID]: ECPGget_data line 148: RESULT: 12 offset:-1 array: Yes
118118
[NO_PID]: sqlca: code: 0, state: 00000
119-
[NO_PID]: ECPGget_data line 148: RESULT: f offset: 1 array: Yes
119+
[NO_PID]: ECPGget_data line 148: RESULT: f offset:-1 array: Yes
120120
[NO_PID]: sqlca: code: 0, state: 00000
121-
[NO_PID]: ECPGget_data line 148: RESULT: t offset: 1 array: Yes
121+
[NO_PID]: ECPGget_data line 148: RESULT: t offset:-1 array: Yes
122122
[NO_PID]: sqlca: code: 0, state: 00000
123-
[NO_PID]: ECPGget_data line 148: RESULT: f offset: 1 array: Yes
123+
[NO_PID]: ECPGget_data line 148: RESULT: f offset:-1 array: Yes
124124
[NO_PID]: sqlca: code: 0, state: 00000
125-
[NO_PID]: ECPGget_data line 148: RESULT: t offset: 1 array: Yes
125+
[NO_PID]: ECPGget_data line 148: RESULT: t offset:-1 array: Yes
126126
[NO_PID]: sqlca: code: 0, state: 00000
127127
[NO_PID]: ECPGexecute line 162: QUERY: close CUR on connection main
128128
[NO_PID]: sqlca: code: 0, state: 00000
@@ -132,83 +132,83 @@
132132
[NO_PID]: sqlca: code: 0, state: 00000
133133
[NO_PID]: ECPGexecute line 165: Correctly got 6 tuples with 3 fields
134134
[NO_PID]: sqlca: code: 0, state: 00000
135-
[NO_PID]: ECPGget_data line 165: RESULT: db: 'pm' offset:8 array: Yes
135+
[NO_PID]: ECPGget_data line 165: RESULT: db: 'pm' offset:-1 array: Yes
136136
[NO_PID]: sqlca: code: 0, state: 00000
137-
[NO_PID]: ECPGget_data line 165: RESULT: db: 'pm' offset:8 array: Yes
137+
[NO_PID]: ECPGget_data line 165: RESULT: db: 'pm' offset:-1 array: Yes
138138
[NO_PID]: sqlca: code: 0, state: 00000
139-
[NO_PID]: ECPGget_data line 165: RESULT: db: 'r1' offset:8 array: Yes
139+
[NO_PID]: ECPGget_data line 165: RESULT: db: 'r1' offset:-1 array: Yes
140140
[NO_PID]: sqlca: code: 0, state: 00000
141-
[NO_PID]: ECPGget_data line 165: RESULT: db: 'r1' offset:8 array: Yes
141+
[NO_PID]: ECPGget_data line 165: RESULT: db: 'r1' offset:-1 array: Yes
142142
[NO_PID]: sqlca: code: 0, state: 00000
143-
[NO_PID]: ECPGget_data line 165: RESULT: db: 'r1' offset:8 array: Yes
143+
[NO_PID]: ECPGget_data line 165: RESULT: db: 'r1' offset:-1 array: Yes
144144
[NO_PID]: sqlca: code: 0, state: 00000
145-
[NO_PID]: ECPGget_data line 165: RESULT: db: 'r1' offset:8 array: Yes
145+
[NO_PID]: ECPGget_data line 165: RESULT: db: 'r1' offset:-1 array: Yes
146146
[NO_PID]: sqlca: code: 0, state: 00000
147-
[NO_PID]: ECPGget_data line 165: RESULT: 1 offset:4 array: Yes
147+
[NO_PID]: ECPGget_data line 165: RESULT: 1 offset:-1 array: Yes
148148
[NO_PID]: sqlca: code: 0, state: 00000
149-
[NO_PID]: ECPGget_data line 165: RESULT: 101 offset:4 array: Yes
149+
[NO_PID]: ECPGget_data line 165: RESULT: 101 offset:-1 array: Yes
150150
[NO_PID]: sqlca: code: 0, state: 00000
151-
[NO_PID]: ECPGget_data line 165: RESULT: 1001 offset:4 array: Yes
151+
[NO_PID]: ECPGget_data line 165: RESULT: 1001 offset:-1 array: Yes
152152
[NO_PID]: sqlca: code: 0, state: 00000
153-
[NO_PID]: ECPGget_data line 165: RESULT: 1002 offset:4 array: Yes
153+
[NO_PID]: ECPGget_data line 165: RESULT: 1002 offset:-1 array: Yes
154154
[NO_PID]: sqlca: code: 0, state: 00000
155-
[NO_PID]: ECPGget_data line 165: RESULT: 1011 offset:4 array: Yes
155+
[NO_PID]: ECPGget_data line 165: RESULT: 1011 offset:-1 array: Yes
156156
[NO_PID]: sqlca: code: 0, state: 00000
157-
[NO_PID]: ECPGget_data line 165: RESULT: 1012 offset:4 array: Yes
157+
[NO_PID]: ECPGget_data line 165: RESULT: 1012 offset:-1 array: Yes
158158
[NO_PID]: sqlca: code: 0, state: 00000
159-
[NO_PID]: ECPGget_data line 165: RESULT: f offset: 1 array: Yes
159+
[NO_PID]: ECPGget_data line 165: RESULT: f offset:-1 array: Yes
160160
[NO_PID]: sqlca: code: 0, state: 00000
161-
[NO_PID]: ECPGget_data line 165: RESULT: f offset: 1 array: Yes
161+
[NO_PID]: ECPGget_data line 165: RESULT: f offset:-1 array: Yes
162162
[NO_PID]: sqlca: code: 0, state: 00000
163-
[NO_PID]: ECPGget_data line 165: RESULT: f offset: 1 array: Yes
163+
[NO_PID]: ECPGget_data line 165: RESULT: f offset:-1 array: Yes
164164
[NO_PID]: sqlca: code: 0, state: 00000
165-
[NO_PID]: ECPGget_data line 165: RESULT: t offset: 1 array: Yes
165+
[NO_PID]: ECPGget_data line 165: RESULT: t offset:-1 array: Yes
166166
[NO_PID]: sqlca: code: 0, state: 00000
167-
[NO_PID]: ECPGget_data line 165: RESULT: f offset: 1 array: Yes
167+
[NO_PID]: ECPGget_data line 165: RESULT: f offset:-1 array: Yes
168168
[NO_PID]: sqlca: code: 0, state: 00000
169-
[NO_PID]: ECPGget_data line 165: RESULT: t offset: 1 array: Yes
169+
[NO_PID]: ECPGget_data line 165: RESULT: t offset:-1 array: Yes
170170
[NO_PID]: sqlca: code: 0, state: 00000
171171
[NO_PID]: ECPGtrans line 172 action = commit connection = main
172172
[NO_PID]: sqlca: code: 0, state: 00000
173173
[NO_PID]: ECPGexecute line 175: QUERY: select name , amount , letter from "Test" on connection pm
174174
[NO_PID]: sqlca: code: 0, state: 00000
175175
[NO_PID]: ECPGexecute line 175: Correctly got 6 tuples with 3 fields
176176
[NO_PID]: sqlca: code: 0, state: 00000
177-
[NO_PID]: ECPGget_data line 175: RESULT: db: 'pm' offset:16 array: Yes
177+
[NO_PID]: ECPGget_data line 175: RESULT: db: 'pm' offset:-1 array: Yes
178178
[NO_PID]: sqlca: code: 0, state: 00000
179-
[NO_PID]: ECPGget_data line 175: RESULT: db: 'pm' offset:16 array: Yes
179+
[NO_PID]: ECPGget_data line 175: RESULT: db: 'pm' offset:-1 array: Yes
180180
[NO_PID]: sqlca: code: 0, state: 00000
181-
[NO_PID]: ECPGget_data line 175: RESULT: db: 'r1' offset:16 array: Yes
181+
[NO_PID]: ECPGget_data line 175: RESULT: db: 'r1' offset:-1 array: Yes
182182
[NO_PID]: sqlca: code: 0, state: 00000
183-
[NO_PID]: ECPGget_data line 175: RESULT: db: 'r1' offset:16 array: Yes
183+
[NO_PID]: ECPGget_data line 175: RESULT: db: 'r1' offset:-1 array: Yes
184184
[NO_PID]: sqlca: code: 0, state: 00000
185-
[NO_PID]: ECPGget_data line 175: RESULT: db: 'r1' offset:16 array: Yes
185+
[NO_PID]: ECPGget_data line 175: RESULT: db: 'r1' offset:-1 array: Yes
186186
[NO_PID]: sqlca: code: 0, state: 00000
187-
[NO_PID]: ECPGget_data line 175: RESULT: db: 'r1' offset:16 array: Yes
187+
[NO_PID]: ECPGget_data line 175: RESULT: db: 'r1' offset:-1 array: Yes
188188
[NO_PID]: sqlca: code: 0, state: 00000
189-
[NO_PID]: ECPGget_data line 175: RESULT: 1 offset:16 array: Yes
189+
[NO_PID]: ECPGget_data line 175: RESULT: 1 offset:-1 array: Yes
190190
[NO_PID]: sqlca: code: 0, state: 00000
191-
[NO_PID]: ECPGget_data line 175: RESULT: 101 offset:16 array: Yes
191+
[NO_PID]: ECPGget_data line 175: RESULT: 101 offset:-1 array: Yes
192192
[NO_PID]: sqlca: code: 0, state: 00000
193-
[NO_PID]: ECPGget_data line 175: RESULT: 1001 offset:16 array: Yes
193+
[NO_PID]: ECPGget_data line 175: RESULT: 1001 offset:-1 array: Yes
194194
[NO_PID]: sqlca: code: 0, state: 00000
195-
[NO_PID]: ECPGget_data line 175: RESULT: 1002 offset:16 array: Yes
195+
[NO_PID]: ECPGget_data line 175: RESULT: 1002 offset:-1 array: Yes
196196
[NO_PID]: sqlca: code: 0, state: 00000
197-
[NO_PID]: ECPGget_data line 175: RESULT: 1011 offset:16 array: Yes
197+
[NO_PID]: ECPGget_data line 175: RESULT: 1011 offset:-1 array: Yes
198198
[NO_PID]: sqlca: code: 0, state: 00000
199-
[NO_PID]: ECPGget_data line 175: RESULT: 1012 offset:16 array: Yes
199+
[NO_PID]: ECPGget_data line 175: RESULT: 1012 offset:-1 array: Yes
200200
[NO_PID]: sqlca: code: 0, state: 00000
201-
[NO_PID]: ECPGget_data line 175: RESULT: f offset:16 array: Yes
201+
[NO_PID]: ECPGget_data line 175: RESULT: f offset:-1 array: Yes
202202
[NO_PID]: sqlca: code: 0, state: 00000
203-
[NO_PID]: ECPGget_data line 175: RESULT: f offset:16 array: Yes
203+
[NO_PID]: ECPGget_data line 175: RESULT: f offset:-1 array: Yes
204204
[NO_PID]: sqlca: code: 0, state: 00000
205-
[NO_PID]: ECPGget_data line 175: RESULT: f offset:16 array: Yes
205+
[NO_PID]: ECPGget_data line 175: RESULT: f offset:-1 array: Yes
206206
[NO_PID]: sqlca: code: 0, state: 00000
207-
[NO_PID]: ECPGget_data line 175: RESULT: t offset:16 array: Yes
207+
[NO_PID]: ECPGget_data line 175: RESULT: t offset:-1 array: Yes
208208
[NO_PID]: sqlca: code: 0, state: 00000
209-
[NO_PID]: ECPGget_data line 175: RESULT: f offset:16 array: Yes
209+
[NO_PID]: ECPGget_data line 175: RESULT: f offset:-1 array: Yes
210210
[NO_PID]: sqlca: code: 0, state: 00000
211-
[NO_PID]: ECPGget_data line 175: RESULT: t offset:16 array: Yes
211+
[NO_PID]: ECPGget_data line 175: RESULT: t offset:-1 array: Yes
212212
[NO_PID]: sqlca: code: 0, state: 00000
213213
[NO_PID]: ECPGexecute line 183: QUERY: insert into "Test" ( name , amount , letter ) values( 'db: ''r1''' , 1407 , 'f' ) on connection main
214214
[NO_PID]: sqlca: code: 0, state: 00000
@@ -218,11 +218,11 @@
218218
[NO_PID]: sqlca: code: 0, state: 00000
219219
[NO_PID]: ECPGexecute line 186: Correctly got 1 tuples with 3 fields
220220
[NO_PID]: sqlca: code: 0, state: 00000
221-
[NO_PID]: ECPGget_data line 186: RESULT: db: 'r1' offset:8 array: Yes
221+
[NO_PID]: ECPGget_data line 186: RESULT: db: 'r1' offset:-1 array: Yes
222222
[NO_PID]: sqlca: code: 0, state: 00000
223-
[NO_PID]: ECPGget_data line 186: RESULT: 1407 offset:4 array: Yes
223+
[NO_PID]: ECPGget_data line 186: RESULT: 1407 offset:-1 array: Yes
224224
[NO_PID]: sqlca: code: 0, state: 00000
225-
[NO_PID]: ECPGget_data line 186: RESULT: f offset: 1 array: Yes
225+
[NO_PID]: ECPGget_data line 186: RESULT: f offset:-1 array: Yes
226226
[NO_PID]: sqlca: code: 0, state: 00000
227227
[NO_PID]: ECPGsetcommit line 192 action = on connection = main
228228
[NO_PID]: sqlca: code: 0, state: 00000

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp