diff --git a/src/interfaces/ecpg/test/compat_informix/sqlda.pgc b/src/interfaces/ecpg/test/compat_informix/sqlda.pgc index a664e853a938470dbe0b317946cdb3adc0e72ed2..8490d06164846d0e099139982768b8dcd6d945bd 100644 --- a/src/interfaces/ecpg/test/compat_informix/sqlda.pgc +++ b/src/interfaces/ecpg/test/compat_informix/sqlda.pgc @@ -82,7 +82,6 @@ exec sql end declare section; exec sql insert into t1 values (1, 'a', 1.0, 1, 'a'), (2, null, null, null, null), - (3, '"c"', -3, 'nan'::float8, 'c'), (4, 'd', 4.0, 4, 'd'); strcpy(msg, "commit"); diff --git a/src/interfaces/ecpg/test/expected/compat_informix-sqlda.c b/src/interfaces/ecpg/test/expected/compat_informix-sqlda.c index 922448d7c8bfae2391238433f3ec053034c72b60..647f677c14b0974af2ccc9bda4af8557fc83d6c8 100644 --- a/src/interfaces/ecpg/test/expected/compat_informix-sqlda.c +++ b/src/interfaces/ecpg/test/expected/compat_informix-sqlda.c @@ -208,19 +208,19 @@ if (sqlca.sqlcode < 0) exit (1);} strcpy(msg, "insert"); - { ECPGdo(__LINE__, 1, 1, NULL, 0, ECPGst_normal, "insert into t1 values ( 1 , 'a' , 1.0 , 1 , 'a' ) , ( 2 , null , null , null , null ) , ( 3 , '\"c\"' , - 3 , 'nan' :: float8 , 'c' ) , ( 4 , 'd' , 4.0 , 4 , 'd' )", ECPGt_EOIT, ECPGt_EORT); -#line 86 "sqlda.pgc" + { ECPGdo(__LINE__, 1, 1, NULL, 0, ECPGst_normal, "insert into t1 values ( 1 , 'a' , 1.0 , 1 , 'a' ) , ( 2 , null , null , null , null ) , ( 4 , 'd' , 4.0 , 4 , 'd' )", ECPGt_EOIT, ECPGt_EORT); +#line 85 "sqlda.pgc" if (sqlca.sqlcode < 0) exit (1);} -#line 86 "sqlda.pgc" +#line 85 "sqlda.pgc" strcpy(msg, "commit"); { ECPGtrans(__LINE__, NULL, "commit"); -#line 89 "sqlda.pgc" +#line 88 "sqlda.pgc" if (sqlca.sqlcode < 0) exit (1);} -#line 89 "sqlda.pgc" +#line 88 "sqlda.pgc" /* SQLDA test for getting all records from a table */ @@ -229,29 +229,29 @@ if (sqlca.sqlcode < 0) exit (1);} strcpy(msg, "prepare"); { ECPGprepare(__LINE__, NULL, 0, "st_id1", stmt1); -#line 96 "sqlda.pgc" +#line 95 "sqlda.pgc" if (sqlca.sqlcode < 0) exit (1);} -#line 96 "sqlda.pgc" +#line 95 "sqlda.pgc" strcpy(msg, "declare"); ECPG_informix_reset_sqlca(); /* declare mycur1 cursor for $1 */ -#line 99 "sqlda.pgc" +#line 98 "sqlda.pgc" strcpy(msg, "open"); { ECPGdo(__LINE__, 1, 1, NULL, 0, ECPGst_normal, "declare mycur1 cursor for $1", ECPGt_char_variable,(ECPGprepared_statement(NULL, "st_id1", __LINE__)),(long)1,(long)1,(1)*sizeof(char), ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT); -#line 102 "sqlda.pgc" +#line 101 "sqlda.pgc" if (sqlca.sqlcode < 0) exit (1);} -#line 102 "sqlda.pgc" +#line 101 "sqlda.pgc" /* exec sql whenever not found break ; */ -#line 104 "sqlda.pgc" +#line 103 "sqlda.pgc" rec = 0; @@ -261,13 +261,13 @@ if (sqlca.sqlcode < 0) exit (1);} { ECPGdo(__LINE__, 1, 1, NULL, 0, ECPGst_normal, "fetch 1 from mycur1", ECPGt_EOIT, ECPGt_sqlda, &outp_sqlda, 0L, 0L, 0L, ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT); -#line 110 "sqlda.pgc" +#line 109 "sqlda.pgc" if (sqlca.sqlcode == ECPG_NOT_FOUND) break; -#line 110 "sqlda.pgc" +#line 109 "sqlda.pgc" if (sqlca.sqlcode < 0) exit (1);} -#line 110 "sqlda.pgc" +#line 109 "sqlda.pgc" printf("FETCH RECORD %d\n", ++rec); @@ -275,23 +275,23 @@ if (sqlca.sqlcode < 0) exit (1);} } /* exec sql whenever not found continue ; */ -#line 116 "sqlda.pgc" +#line 115 "sqlda.pgc" strcpy(msg, "close"); { ECPGdo(__LINE__, 1, 1, NULL, 0, ECPGst_normal, "close mycur1", ECPGt_EOIT, ECPGt_EORT); -#line 119 "sqlda.pgc" +#line 118 "sqlda.pgc" if (sqlca.sqlcode < 0) exit (1);} -#line 119 "sqlda.pgc" +#line 118 "sqlda.pgc" strcpy(msg, "deallocate"); { ECPGdeallocate(__LINE__, 1, NULL, "st_id1"); -#line 122 "sqlda.pgc" +#line 121 "sqlda.pgc" if (sqlca.sqlcode < 0) exit (1);} -#line 122 "sqlda.pgc" +#line 121 "sqlda.pgc" free(outp_sqlda); @@ -304,29 +304,29 @@ if (sqlca.sqlcode < 0) exit (1);} strcpy(msg, "prepare"); { ECPGprepare(__LINE__, NULL, 0, "st_id2", stmt1); -#line 133 "sqlda.pgc" +#line 132 "sqlda.pgc" if (sqlca.sqlcode < 0) exit (1);} -#line 133 "sqlda.pgc" +#line 132 "sqlda.pgc" strcpy(msg, "declare"); ECPG_informix_reset_sqlca(); /* declare mycur2 cursor for $1 */ -#line 136 "sqlda.pgc" +#line 135 "sqlda.pgc" strcpy(msg, "open"); { ECPGdo(__LINE__, 1, 1, NULL, 0, ECPGst_normal, "declare mycur2 cursor for $1", ECPGt_char_variable,(ECPGprepared_statement(NULL, "st_id2", __LINE__)),(long)1,(long)1,(1)*sizeof(char), ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT); -#line 139 "sqlda.pgc" +#line 138 "sqlda.pgc" if (sqlca.sqlcode < 0) exit (1);} -#line 139 "sqlda.pgc" +#line 138 "sqlda.pgc" /* exec sql whenever not found break ; */ -#line 141 "sqlda.pgc" +#line 140 "sqlda.pgc" rec = 0; @@ -336,13 +336,13 @@ if (sqlca.sqlcode < 0) exit (1);} { ECPGdo(__LINE__, 1, 1, NULL, 0, ECPGst_normal, "fetch from mycur2", ECPGt_EOIT, ECPGt_sqlda, &outp_sqlda, 0L, 0L, 0L, ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT); -#line 147 "sqlda.pgc" +#line 146 "sqlda.pgc" if (sqlca.sqlcode == ECPG_NOT_FOUND) break; -#line 147 "sqlda.pgc" +#line 146 "sqlda.pgc" if (sqlca.sqlcode < 0) exit (1);} -#line 147 "sqlda.pgc" +#line 146 "sqlda.pgc" printf("FETCH RECORD %d\n", ++rec); @@ -350,23 +350,23 @@ if (sqlca.sqlcode < 0) exit (1);} } /* exec sql whenever not found continue ; */ -#line 153 "sqlda.pgc" +#line 152 "sqlda.pgc" strcpy(msg, "close"); { ECPGdo(__LINE__, 1, 1, NULL, 0, ECPGst_normal, "close mycur2", ECPGt_EOIT, ECPGt_EORT); -#line 156 "sqlda.pgc" +#line 155 "sqlda.pgc" if (sqlca.sqlcode < 0) exit (1);} -#line 156 "sqlda.pgc" +#line 155 "sqlda.pgc" strcpy(msg, "deallocate"); { ECPGdeallocate(__LINE__, 1, NULL, "st_id2"); -#line 159 "sqlda.pgc" +#line 158 "sqlda.pgc" if (sqlca.sqlcode < 0) exit (1);} -#line 159 "sqlda.pgc" +#line 158 "sqlda.pgc" free(outp_sqlda); @@ -391,10 +391,10 @@ if (sqlca.sqlcode < 0) exit (1);} strcpy(msg, "prepare"); { ECPGprepare(__LINE__, NULL, 0, "st_id3", stmt2); -#line 182 "sqlda.pgc" +#line 181 "sqlda.pgc" if (sqlca.sqlcode < 0) exit (1);} -#line 182 "sqlda.pgc" +#line 181 "sqlda.pgc" strcpy(msg, "execute"); @@ -403,20 +403,20 @@ if (sqlca.sqlcode < 0) exit (1);} ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_sqlda, &outp_sqlda, 0L, 0L, 0L, ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT); -#line 185 "sqlda.pgc" +#line 184 "sqlda.pgc" if (sqlca.sqlcode < 0) exit (1);} -#line 185 "sqlda.pgc" +#line 184 "sqlda.pgc" dump_sqlda(outp_sqlda); strcpy(msg, "deallocate"); { ECPGdeallocate(__LINE__, 1, NULL, "st_id3"); -#line 190 "sqlda.pgc" +#line 189 "sqlda.pgc" if (sqlca.sqlcode < 0) exit (1);} -#line 190 "sqlda.pgc" +#line 189 "sqlda.pgc" free(inp_sqlda->sqlvar); @@ -428,10 +428,10 @@ if (sqlca.sqlcode < 0) exit (1);} */ { ECPGconnect(__LINE__, 1, "regress1" , NULL, NULL , "con2", 0); -#line 200 "sqlda.pgc" +#line 199 "sqlda.pgc" if (sqlca.sqlcode < 0) exit (1);} -#line 200 "sqlda.pgc" +#line 199 "sqlda.pgc" /* Input sqlda has to be built manually */ @@ -452,10 +452,10 @@ if (sqlca.sqlcode < 0) exit (1);} strcpy(msg, "prepare"); { ECPGprepare(__LINE__, "con2", 0, "st_id4", stmt2); -#line 219 "sqlda.pgc" +#line 218 "sqlda.pgc" if (sqlca.sqlcode < 0) exit (1);} -#line 219 "sqlda.pgc" +#line 218 "sqlda.pgc" strcpy(msg, "execute"); @@ -464,28 +464,28 @@ if (sqlca.sqlcode < 0) exit (1);} ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_sqlda, &outp_sqlda, 0L, 0L, 0L, ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT); -#line 222 "sqlda.pgc" +#line 221 "sqlda.pgc" if (sqlca.sqlcode < 0) exit (1);} -#line 222 "sqlda.pgc" +#line 221 "sqlda.pgc" dump_sqlda(outp_sqlda); strcpy(msg, "commit"); { ECPGtrans(__LINE__, "con2", "commit"); -#line 227 "sqlda.pgc" +#line 226 "sqlda.pgc" if (sqlca.sqlcode < 0) exit (1);} -#line 227 "sqlda.pgc" +#line 226 "sqlda.pgc" strcpy(msg, "deallocate"); { ECPGdeallocate(__LINE__, 1, NULL, "st_id4"); -#line 230 "sqlda.pgc" +#line 229 "sqlda.pgc" if (sqlca.sqlcode < 0) exit (1);} -#line 230 "sqlda.pgc" +#line 229 "sqlda.pgc" free(inp_sqlda->sqlvar); @@ -494,36 +494,36 @@ if (sqlca.sqlcode < 0) exit (1);} strcpy(msg, "disconnect"); { ECPGdisconnect(__LINE__, "con2"); -#line 237 "sqlda.pgc" +#line 236 "sqlda.pgc" if (sqlca.sqlcode < 0) exit (1);} -#line 237 "sqlda.pgc" +#line 236 "sqlda.pgc" /* End test */ strcpy(msg, "drop"); { ECPGdo(__LINE__, 1, 1, NULL, 0, ECPGst_normal, "drop table t1", ECPGt_EOIT, ECPGt_EORT); -#line 242 "sqlda.pgc" +#line 241 "sqlda.pgc" if (sqlca.sqlcode < 0) exit (1);} -#line 242 "sqlda.pgc" +#line 241 "sqlda.pgc" strcpy(msg, "commit"); { ECPGtrans(__LINE__, NULL, "commit"); -#line 245 "sqlda.pgc" +#line 244 "sqlda.pgc" if (sqlca.sqlcode < 0) exit (1);} -#line 245 "sqlda.pgc" +#line 244 "sqlda.pgc" strcpy(msg, "disconnect"); { ECPGdisconnect(__LINE__, "CURRENT"); -#line 248 "sqlda.pgc" +#line 247 "sqlda.pgc" if (sqlca.sqlcode < 0) exit (1);} -#line 248 "sqlda.pgc" +#line 247 "sqlda.pgc" return (0); diff --git a/src/interfaces/ecpg/test/expected/compat_informix-sqlda.stderr b/src/interfaces/ecpg/test/expected/compat_informix-sqlda.stderr index aa7f8122d171968e5aa441867cf14654ff630659..4c643a9d96fb3035b85567d42fa73fb393a04266 100644 --- a/src/interfaces/ecpg/test/expected/compat_informix-sqlda.stderr +++ b/src/interfaces/ecpg/test/expected/compat_informix-sqlda.stderr @@ -14,67 +14,67 @@ [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_execute on line 74: OK: CREATE TABLE [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 82: query: insert into t1 values ( 1 , 'a' , 1.0 , 1 , 'a' ) , ( 2 , null , null , null , null ) , ( 3 , '"c"' , - 3 , 'nan' :: float8 , 'c' ) , ( 4 , 'd' , 4.0 , 4 , 'd' ); with 0 parameter(s) on connection regress1 +[NO_PID]: ecpg_execute on line 82: query: insert into t1 values ( 1 , 'a' , 1.0 , 1 , 'a' ) , ( 2 , null , null , null , null ) , ( 4 , 'd' , 4.0 , 4 , 'd' ); with 0 parameter(s) on connection regress1 [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_execute on line 82: using PQexec [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 82: OK: INSERT 0 4 +[NO_PID]: ecpg_execute on line 82: OK: INSERT 0 3 [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ECPGtrans on line 89: action "commit"; connection "regress1" +[NO_PID]: ECPGtrans on line 88: action "commit"; connection "regress1" [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ECPGprepare on line 96: name st_id1; query: "SELECT * FROM t1" +[NO_PID]: ECPGprepare on line 95: name st_id1; query: "SELECT * FROM t1" [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 102: query: declare mycur1 cursor for SELECT * FROM t1; with 0 parameter(s) on connection regress1 +[NO_PID]: ecpg_execute on line 101: query: declare mycur1 cursor for SELECT * FROM t1; with 0 parameter(s) on connection regress1 [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 102: using PQexec +[NO_PID]: ecpg_execute on line 101: using PQexec [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 102: OK: DECLARE CURSOR +[NO_PID]: ecpg_execute on line 101: OK: DECLARE CURSOR [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 110: query: fetch 1 from mycur1; with 0 parameter(s) on connection regress1 +[NO_PID]: ecpg_execute on line 109: query: fetch 1 from mycur1; with 0 parameter(s) on connection regress1 [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 110: using PQexec +[NO_PID]: ecpg_execute on line 109: using PQexec [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 110: correctly got 1 tuples with 5 fields +[NO_PID]: ecpg_execute on line 109: correctly got 1 tuples with 5 fields [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_build_compat_sqlda sqld = 5 [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 110: new sqlda was built +[NO_PID]: ecpg_execute on line 109: new sqlda was built [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_compat_sqlda row 0 col 0 IS NOT NULL [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 110: RESULT: 1 offset: -1; array: yes +[NO_PID]: ecpg_get_data on line 109: RESULT: 1 offset: -1; array: yes [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_compat_sqlda row 0 col 1 IS NOT NULL [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 110: RESULT: a offset: -1; array: yes +[NO_PID]: ecpg_get_data on line 109: RESULT: a offset: -1; array: yes [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_compat_sqlda row 0 col 2 IS NOT NULL [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 110: RESULT: 1.0 offset: -1; array: yes +[NO_PID]: ecpg_get_data on line 109: RESULT: 1.0 offset: -1; array: yes [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_compat_sqlda row 0 col 3 IS NOT NULL [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 110: RESULT: 1 offset: -1; array: yes +[NO_PID]: ecpg_get_data on line 109: RESULT: 1 offset: -1; array: yes [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_compat_sqlda row 0 col 4 IS NOT NULL [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 110: RESULT: a offset: -1; array: yes +[NO_PID]: ecpg_get_data on line 109: RESULT: a offset: -1; array: yes [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 110: putting result (1 tuple 5 fields) into sqlda descriptor +[NO_PID]: ecpg_execute on line 109: putting result (1 tuple 5 fields) into sqlda descriptor [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 110: query: fetch 1 from mycur1; with 0 parameter(s) on connection regress1 +[NO_PID]: ecpg_execute on line 109: query: fetch 1 from mycur1; with 0 parameter(s) on connection regress1 [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 110: using PQexec +[NO_PID]: ecpg_execute on line 109: using PQexec [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 110: correctly got 1 tuples with 5 fields +[NO_PID]: ecpg_execute on line 109: correctly got 1 tuples with 5 fields [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_build_compat_sqlda sqld = 5 [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 110: new sqlda was built +[NO_PID]: ecpg_execute on line 109: new sqlda was built [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_compat_sqlda row 0 col 0 IS NOT NULL [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 110: RESULT: 2 offset: -1; array: yes +[NO_PID]: ecpg_get_data on line 109: RESULT: 2 offset: -1; array: yes [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_compat_sqlda row 0 col 1 IS NULL [NO_PID]: sqlca: code: 0, state: 00000 @@ -84,141 +84,109 @@ [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_compat_sqlda row 0 col 4 IS NULL [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 110: putting result (1 tuple 5 fields) into sqlda descriptor +[NO_PID]: ecpg_execute on line 109: putting result (1 tuple 5 fields) into sqlda descriptor [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 110: query: fetch 1 from mycur1; with 0 parameter(s) on connection regress1 +[NO_PID]: ecpg_execute on line 109: query: fetch 1 from mycur1; with 0 parameter(s) on connection regress1 [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 110: using PQexec +[NO_PID]: ecpg_execute on line 109: using PQexec [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 110: correctly got 1 tuples with 5 fields +[NO_PID]: ecpg_execute on line 109: correctly got 1 tuples with 5 fields [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_build_compat_sqlda sqld = 5 [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 110: new sqlda was built +[NO_PID]: ecpg_execute on line 109: new sqlda was built [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_compat_sqlda row 0 col 0 IS NOT NULL [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 110: RESULT: 3 offset: -1; array: yes +[NO_PID]: ecpg_get_data on line 109: RESULT: 4 offset: -1; array: yes [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_compat_sqlda row 0 col 1 IS NOT NULL [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 110: RESULT: "c" offset: -1; array: yes +[NO_PID]: ecpg_get_data on line 109: RESULT: d offset: -1; array: yes [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_compat_sqlda row 0 col 2 IS NOT NULL [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 110: RESULT: -3 offset: -1; array: yes +[NO_PID]: ecpg_get_data on line 109: RESULT: 4.0 offset: -1; array: yes [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_compat_sqlda row 0 col 3 IS NOT NULL [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 110: RESULT: NaN offset: -1; array: yes +[NO_PID]: ecpg_get_data on line 109: RESULT: 4 offset: -1; array: yes [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_compat_sqlda row 0 col 4 IS NOT NULL [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 110: RESULT: c offset: -1; array: yes +[NO_PID]: ecpg_get_data on line 109: RESULT: d offset: -1; array: yes [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 110: putting result (1 tuple 5 fields) into sqlda descriptor +[NO_PID]: ecpg_execute on line 109: putting result (1 tuple 5 fields) into sqlda descriptor [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 110: query: fetch 1 from mycur1; with 0 parameter(s) on connection regress1 +[NO_PID]: ecpg_execute on line 109: query: fetch 1 from mycur1; with 0 parameter(s) on connection regress1 [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 110: using PQexec +[NO_PID]: ecpg_execute on line 109: using PQexec [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 110: correctly got 1 tuples with 5 fields +[NO_PID]: ecpg_execute on line 109: correctly got 0 tuples with 5 fields [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_build_compat_sqlda sqld = 5 -[NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 110: new sqlda was built -[NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_set_compat_sqlda row 0 col 0 IS NOT NULL -[NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 110: RESULT: 4 offset: -1; array: yes -[NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_set_compat_sqlda row 0 col 1 IS NOT NULL -[NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 110: RESULT: d offset: -1; array: yes -[NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_set_compat_sqlda row 0 col 2 IS NOT NULL -[NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 110: RESULT: 4.0 offset: -1; array: yes -[NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_set_compat_sqlda row 0 col 3 IS NOT NULL -[NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 110: RESULT: 4 offset: -1; array: yes -[NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_set_compat_sqlda row 0 col 4 IS NOT NULL -[NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 110: RESULT: d offset: -1; array: yes -[NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 110: putting result (1 tuple 5 fields) into sqlda descriptor -[NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 110: query: fetch 1 from mycur1; with 0 parameter(s) on connection regress1 -[NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 110: using PQexec -[NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 110: correctly got 0 tuples with 5 fields -[NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: raising sqlcode 100 on line 110: no data found on line 110 +[NO_PID]: raising sqlcode 100 on line 109: no data found on line 109 [NO_PID]: sqlca: code: 100, state: 02000 -[NO_PID]: ecpg_execute on line 119: query: close mycur1; with 0 parameter(s) on connection regress1 +[NO_PID]: ecpg_execute on line 118: query: close mycur1; with 0 parameter(s) on connection regress1 [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 119: using PQexec +[NO_PID]: ecpg_execute on line 118: using PQexec [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 119: OK: CLOSE CURSOR +[NO_PID]: ecpg_execute on line 118: OK: CLOSE CURSOR [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ECPGdeallocate on line 122: name st_id1 +[NO_PID]: ECPGdeallocate on line 121: name st_id1 [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ECPGprepare on line 133: name st_id2; query: "SELECT * FROM t1" +[NO_PID]: ECPGprepare on line 132: name st_id2; query: "SELECT * FROM t1" [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 139: query: declare mycur2 cursor for SELECT * FROM t1; with 0 parameter(s) on connection regress1 +[NO_PID]: ecpg_execute on line 138: query: declare mycur2 cursor for SELECT * FROM t1; with 0 parameter(s) on connection regress1 [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 139: using PQexec +[NO_PID]: ecpg_execute on line 138: using PQexec [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 139: OK: DECLARE CURSOR +[NO_PID]: ecpg_execute on line 138: OK: DECLARE CURSOR [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 147: query: fetch from mycur2; with 0 parameter(s) on connection regress1 +[NO_PID]: ecpg_execute on line 146: query: fetch from mycur2; with 0 parameter(s) on connection regress1 [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 147: using PQexec +[NO_PID]: ecpg_execute on line 146: using PQexec [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 147: correctly got 1 tuples with 5 fields +[NO_PID]: ecpg_execute on line 146: correctly got 1 tuples with 5 fields [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_build_compat_sqlda sqld = 5 [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 147: new sqlda was built +[NO_PID]: ecpg_execute on line 146: new sqlda was built [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_compat_sqlda row 0 col 0 IS NOT NULL [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 147: RESULT: 1 offset: -1; array: yes +[NO_PID]: ecpg_get_data on line 146: RESULT: 1 offset: -1; array: yes [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_compat_sqlda row 0 col 1 IS NOT NULL [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 147: RESULT: a offset: -1; array: yes +[NO_PID]: ecpg_get_data on line 146: RESULT: a offset: -1; array: yes [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_compat_sqlda row 0 col 2 IS NOT NULL [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 147: RESULT: 1.0 offset: -1; array: yes +[NO_PID]: ecpg_get_data on line 146: RESULT: 1.0 offset: -1; array: yes [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_compat_sqlda row 0 col 3 IS NOT NULL [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 147: RESULT: 1 offset: -1; array: yes +[NO_PID]: ecpg_get_data on line 146: RESULT: 1 offset: -1; array: yes [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_compat_sqlda row 0 col 4 IS NOT NULL [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 147: RESULT: a offset: -1; array: yes +[NO_PID]: ecpg_get_data on line 146: RESULT: a offset: -1; array: yes [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 147: putting result (1 tuple 5 fields) into sqlda descriptor +[NO_PID]: ecpg_execute on line 146: putting result (1 tuple 5 fields) into sqlda descriptor [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 147: query: fetch from mycur2; with 0 parameter(s) on connection regress1 +[NO_PID]: ecpg_execute on line 146: query: fetch from mycur2; with 0 parameter(s) on connection regress1 [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 147: using PQexec +[NO_PID]: ecpg_execute on line 146: using PQexec [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 147: correctly got 1 tuples with 5 fields +[NO_PID]: ecpg_execute on line 146: correctly got 1 tuples with 5 fields [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_build_compat_sqlda sqld = 5 [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 147: new sqlda was built +[NO_PID]: ecpg_execute on line 146: new sqlda was built [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_compat_sqlda row 0 col 0 IS NOT NULL [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 147: RESULT: 2 offset: -1; array: yes +[NO_PID]: ecpg_get_data on line 146: RESULT: 2 offset: -1; array: yes [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_compat_sqlda row 0 col 1 IS NULL [NO_PID]: sqlca: code: 0, state: 00000 @@ -228,177 +196,145 @@ [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_compat_sqlda row 0 col 4 IS NULL [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 147: putting result (1 tuple 5 fields) into sqlda descriptor -[NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 147: query: fetch from mycur2; with 0 parameter(s) on connection regress1 -[NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 147: using PQexec -[NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 147: correctly got 1 tuples with 5 fields -[NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_build_compat_sqlda sqld = 5 -[NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 147: new sqlda was built -[NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_set_compat_sqlda row 0 col 0 IS NOT NULL -[NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 147: RESULT: 3 offset: -1; array: yes -[NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_set_compat_sqlda row 0 col 1 IS NOT NULL -[NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 147: RESULT: "c" offset: -1; array: yes -[NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_set_compat_sqlda row 0 col 2 IS NOT NULL -[NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 147: RESULT: -3 offset: -1; array: yes -[NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_set_compat_sqlda row 0 col 3 IS NOT NULL -[NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 147: RESULT: NaN offset: -1; array: yes -[NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_set_compat_sqlda row 0 col 4 IS NOT NULL -[NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 147: RESULT: c offset: -1; array: yes -[NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 147: putting result (1 tuple 5 fields) into sqlda descriptor +[NO_PID]: ecpg_execute on line 146: putting result (1 tuple 5 fields) into sqlda descriptor [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 147: query: fetch from mycur2; with 0 parameter(s) on connection regress1 +[NO_PID]: ecpg_execute on line 146: query: fetch from mycur2; with 0 parameter(s) on connection regress1 [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 147: using PQexec +[NO_PID]: ecpg_execute on line 146: using PQexec [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 147: correctly got 1 tuples with 5 fields +[NO_PID]: ecpg_execute on line 146: correctly got 1 tuples with 5 fields [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_build_compat_sqlda sqld = 5 [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 147: new sqlda was built +[NO_PID]: ecpg_execute on line 146: new sqlda was built [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_compat_sqlda row 0 col 0 IS NOT NULL [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 147: RESULT: 4 offset: -1; array: yes +[NO_PID]: ecpg_get_data on line 146: RESULT: 4 offset: -1; array: yes [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_compat_sqlda row 0 col 1 IS NOT NULL [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 147: RESULT: d offset: -1; array: yes +[NO_PID]: ecpg_get_data on line 146: RESULT: d offset: -1; array: yes [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_compat_sqlda row 0 col 2 IS NOT NULL [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 147: RESULT: 4.0 offset: -1; array: yes +[NO_PID]: ecpg_get_data on line 146: RESULT: 4.0 offset: -1; array: yes [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_compat_sqlda row 0 col 3 IS NOT NULL [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 147: RESULT: 4 offset: -1; array: yes +[NO_PID]: ecpg_get_data on line 146: RESULT: 4 offset: -1; array: yes [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_compat_sqlda row 0 col 4 IS NOT NULL [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 147: RESULT: d offset: -1; array: yes +[NO_PID]: ecpg_get_data on line 146: RESULT: d offset: -1; array: yes [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 147: putting result (1 tuple 5 fields) into sqlda descriptor +[NO_PID]: ecpg_execute on line 146: putting result (1 tuple 5 fields) into sqlda descriptor [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 147: query: fetch from mycur2; with 0 parameter(s) on connection regress1 +[NO_PID]: ecpg_execute on line 146: query: fetch from mycur2; with 0 parameter(s) on connection regress1 [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 147: using PQexec +[NO_PID]: ecpg_execute on line 146: using PQexec [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 147: correctly got 0 tuples with 5 fields +[NO_PID]: ecpg_execute on line 146: correctly got 0 tuples with 5 fields [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: raising sqlcode 100 on line 147: no data found on line 147 +[NO_PID]: raising sqlcode 100 on line 146: no data found on line 146 [NO_PID]: sqlca: code: 100, state: 02000 -[NO_PID]: ecpg_execute on line 156: query: close mycur2; with 0 parameter(s) on connection regress1 +[NO_PID]: ecpg_execute on line 155: query: close mycur2; with 0 parameter(s) on connection regress1 [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 156: using PQexec +[NO_PID]: ecpg_execute on line 155: using PQexec [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 156: OK: CLOSE CURSOR +[NO_PID]: ecpg_execute on line 155: OK: CLOSE CURSOR [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ECPGdeallocate on line 159: name st_id2 +[NO_PID]: ECPGdeallocate on line 158: name st_id2 [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ECPGprepare on line 182: name st_id3; query: "SELECT * FROM t1 WHERE id = $1" +[NO_PID]: ECPGprepare on line 181: name st_id3; query: "SELECT * FROM t1 WHERE id = $1" [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 185: query: SELECT * FROM t1 WHERE id = $1; with 1 parameter(s) on connection regress1 +[NO_PID]: ecpg_execute on line 184: query: SELECT * FROM t1 WHERE id = $1; with 1 parameter(s) on connection regress1 [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 185: using PQexecPrepared for "SELECT * FROM t1 WHERE id = $1" +[NO_PID]: ecpg_execute on line 184: using PQexecPrepared for "SELECT * FROM t1 WHERE id = $1" [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: free_params on line 185: parameter 1 = 4 +[NO_PID]: free_params on line 184: parameter 1 = 4 [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 185: correctly got 1 tuples with 5 fields +[NO_PID]: ecpg_execute on line 184: correctly got 1 tuples with 5 fields [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_build_compat_sqlda sqld = 5 [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 185: new sqlda was built +[NO_PID]: ecpg_execute on line 184: new sqlda was built [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_compat_sqlda row 0 col 0 IS NOT NULL [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 185: RESULT: 4 offset: -1; array: yes +[NO_PID]: ecpg_get_data on line 184: RESULT: 4 offset: -1; array: yes [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_compat_sqlda row 0 col 1 IS NOT NULL [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 185: RESULT: d offset: -1; array: yes +[NO_PID]: ecpg_get_data on line 184: RESULT: d offset: -1; array: yes [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_compat_sqlda row 0 col 2 IS NOT NULL [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 185: RESULT: 4.0 offset: -1; array: yes +[NO_PID]: ecpg_get_data on line 184: RESULT: 4.0 offset: -1; array: yes [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_compat_sqlda row 0 col 3 IS NOT NULL [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 185: RESULT: 4 offset: -1; array: yes +[NO_PID]: ecpg_get_data on line 184: RESULT: 4 offset: -1; array: yes [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_compat_sqlda row 0 col 4 IS NOT NULL [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 185: RESULT: d offset: -1; array: yes +[NO_PID]: ecpg_get_data on line 184: RESULT: d offset: -1; array: yes [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 185: putting result (1 tuple 5 fields) into sqlda descriptor +[NO_PID]: ecpg_execute on line 184: putting result (1 tuple 5 fields) into sqlda descriptor [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ECPGdeallocate on line 190: name st_id3 +[NO_PID]: ECPGdeallocate on line 189: name st_id3 [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ECPGconnect: opening database regress1 on <DEFAULT> port <DEFAULT> [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ECPGprepare on line 219: name st_id4; query: "SELECT * FROM t1 WHERE id = $1" +[NO_PID]: ECPGprepare on line 218: name st_id4; query: "SELECT * FROM t1 WHERE id = $1" [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 222: query: SELECT * FROM t1 WHERE id = $1; with 1 parameter(s) on connection con2 +[NO_PID]: ecpg_execute on line 221: query: SELECT * FROM t1 WHERE id = $1; with 1 parameter(s) on connection con2 [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 222: using PQexecPrepared for "SELECT * FROM t1 WHERE id = $1" +[NO_PID]: ecpg_execute on line 221: using PQexecPrepared for "SELECT * FROM t1 WHERE id = $1" [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: free_params on line 222: parameter 1 = 4 +[NO_PID]: free_params on line 221: parameter 1 = 4 [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 222: correctly got 1 tuples with 5 fields +[NO_PID]: ecpg_execute on line 221: correctly got 1 tuples with 5 fields [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_build_compat_sqlda sqld = 5 [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 222: new sqlda was built +[NO_PID]: ecpg_execute on line 221: new sqlda was built [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_compat_sqlda row 0 col 0 IS NOT NULL [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 222: RESULT: 4 offset: -1; array: yes +[NO_PID]: ecpg_get_data on line 221: RESULT: 4 offset: -1; array: yes [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_compat_sqlda row 0 col 1 IS NOT NULL [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 222: RESULT: d offset: -1; array: yes +[NO_PID]: ecpg_get_data on line 221: RESULT: d offset: -1; array: yes [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_compat_sqlda row 0 col 2 IS NOT NULL [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 222: RESULT: 4.0 offset: -1; array: yes +[NO_PID]: ecpg_get_data on line 221: RESULT: 4.0 offset: -1; array: yes [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_compat_sqlda row 0 col 3 IS NOT NULL [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 222: RESULT: 4 offset: -1; array: yes +[NO_PID]: ecpg_get_data on line 221: RESULT: 4 offset: -1; array: yes [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_compat_sqlda row 0 col 4 IS NOT NULL [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 222: RESULT: d offset: -1; array: yes +[NO_PID]: ecpg_get_data on line 221: RESULT: d offset: -1; array: yes [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 222: putting result (1 tuple 5 fields) into sqlda descriptor +[NO_PID]: ecpg_execute on line 221: putting result (1 tuple 5 fields) into sqlda descriptor [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ECPGtrans on line 227: action "commit"; connection "con2" +[NO_PID]: ECPGtrans on line 226: action "commit"; connection "con2" [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ECPGdeallocate on line 230: name st_id4 +[NO_PID]: ECPGdeallocate on line 229: name st_id4 [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_finish: connection con2 closed [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 242: query: drop table t1; with 0 parameter(s) on connection regress1 +[NO_PID]: ecpg_execute on line 241: query: drop table t1; with 0 parameter(s) on connection regress1 [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 242: using PQexec +[NO_PID]: ecpg_execute on line 241: using PQexec [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 242: OK: DROP TABLE +[NO_PID]: ecpg_execute on line 241: OK: DROP TABLE [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ECPGtrans on line 245: action "commit"; connection "regress1" +[NO_PID]: ECPGtrans on line 244: action "commit"; connection "regress1" [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_finish: connection regress1 closed [NO_PID]: sqlca: code: 0, state: 00000 diff --git a/src/interfaces/ecpg/test/expected/compat_informix-sqlda.stdout b/src/interfaces/ecpg/test/expected/compat_informix-sqlda.stdout index f11587a2240d37f9ea867ea659b55f223d6c101b..68335dfd3bd3b68ea7d9a91a7c93679f97205ee9 100644 --- a/src/interfaces/ecpg/test/expected/compat_informix-sqlda.stdout +++ b/src/interfaces/ecpg/test/expected/compat_informix-sqlda.stdout @@ -11,12 +11,6 @@ name sqlda descriptor: 'd1' value NULL' name sqlda descriptor: 'd2' value NULL' name sqlda descriptor: 'c' value NULL' FETCH RECORD 3 -name sqlda descriptor: 'id' value 3 -name sqlda descriptor: 't' value '"c"' -name sqlda descriptor: 'd1' value DECIMAL '-3' -name sqlda descriptor: 'd2' value nan -name sqlda descriptor: 'c' value 'c ' -FETCH RECORD 4 name sqlda descriptor: 'id' value 4 name sqlda descriptor: 't' value 'd' name sqlda descriptor: 'd1' value DECIMAL '4.0' @@ -35,12 +29,6 @@ name sqlda descriptor: 'd1' value NULL' name sqlda descriptor: 'd2' value NULL' name sqlda descriptor: 'c' value NULL' FETCH RECORD 3 -name sqlda descriptor: 'id' value 3 -name sqlda descriptor: 't' value '"c"' -name sqlda descriptor: 'd1' value DECIMAL '-3' -name sqlda descriptor: 'd2' value nan -name sqlda descriptor: 'c' value 'c ' -FETCH RECORD 4 name sqlda descriptor: 'id' value 4 name sqlda descriptor: 't' value 'd' name sqlda descriptor: 'd1' value DECIMAL '4.0' diff --git a/src/interfaces/ecpg/test/expected/sql-sqlda.c b/src/interfaces/ecpg/test/expected/sql-sqlda.c index 0a0cb243a7a525bebabf2ef706431c4f172b81ac..f85cf392b8171d3a21340f0e7b6d959d5fab8e84 100644 --- a/src/interfaces/ecpg/test/expected/sql-sqlda.c +++ b/src/interfaces/ecpg/test/expected/sql-sqlda.c @@ -217,19 +217,19 @@ if (sqlca.sqlcode < 0) exit (1);} strcpy(msg, "insert"); - { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into t1 values ( 1 , 'a' , 1.0 , 1 , 'a' ) , ( 2 , null , null , null , null ) , ( 3 , '\"c\"' , - 3 , 'nan' :: float8 , 'c' ) , ( 4 , 'd' , 4.0 , 4 , 'd' )", ECPGt_EOIT, ECPGt_EORT); -#line 88 "sqlda.pgc" + { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "insert into t1 values ( 1 , 'a' , 1.0 , 1 , 'a' ) , ( 2 , null , null , null , null ) , ( 4 , 'd' , 4.0 , 4 , 'd' )", ECPGt_EOIT, ECPGt_EORT); +#line 87 "sqlda.pgc" if (sqlca.sqlcode < 0) exit (1);} -#line 88 "sqlda.pgc" +#line 87 "sqlda.pgc" strcpy(msg, "commit"); { ECPGtrans(__LINE__, NULL, "commit"); -#line 91 "sqlda.pgc" +#line 90 "sqlda.pgc" if (sqlca.sqlcode < 0) exit (1);} -#line 91 "sqlda.pgc" +#line 90 "sqlda.pgc" /* SQLDA test for getting all records from a table */ @@ -238,29 +238,29 @@ if (sqlca.sqlcode < 0) exit (1);} strcpy(msg, "prepare"); { ECPGprepare(__LINE__, NULL, 0, "st_id1", stmt1); -#line 98 "sqlda.pgc" +#line 97 "sqlda.pgc" if (sqlca.sqlcode < 0) exit (1);} -#line 98 "sqlda.pgc" +#line 97 "sqlda.pgc" strcpy(msg, "declare"); /* declare mycur1 cursor for $1 */ -#line 101 "sqlda.pgc" +#line 100 "sqlda.pgc" strcpy(msg, "open"); { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "declare mycur1 cursor for $1", ECPGt_char_variable,(ECPGprepared_statement(NULL, "st_id1", __LINE__)),(long)1,(long)1,(1)*sizeof(char), ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT); -#line 104 "sqlda.pgc" +#line 103 "sqlda.pgc" if (sqlca.sqlcode < 0) exit (1);} -#line 104 "sqlda.pgc" +#line 103 "sqlda.pgc" /* exec sql whenever not found break ; */ -#line 106 "sqlda.pgc" +#line 105 "sqlda.pgc" rec = 0; @@ -270,13 +270,13 @@ if (sqlca.sqlcode < 0) exit (1);} { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "fetch 1 from mycur1", ECPGt_EOIT, ECPGt_sqlda, &outp_sqlda, 0L, 0L, 0L, ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT); -#line 112 "sqlda.pgc" +#line 111 "sqlda.pgc" if (sqlca.sqlcode == ECPG_NOT_FOUND) break; -#line 112 "sqlda.pgc" +#line 111 "sqlda.pgc" if (sqlca.sqlcode < 0) exit (1);} -#line 112 "sqlda.pgc" +#line 111 "sqlda.pgc" printf("FETCH RECORD %d\n", ++rec); @@ -284,23 +284,23 @@ if (sqlca.sqlcode < 0) exit (1);} } /* exec sql whenever not found continue ; */ -#line 118 "sqlda.pgc" +#line 117 "sqlda.pgc" strcpy(msg, "close"); { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "close mycur1", ECPGt_EOIT, ECPGt_EORT); -#line 121 "sqlda.pgc" +#line 120 "sqlda.pgc" if (sqlca.sqlcode < 0) exit (1);} -#line 121 "sqlda.pgc" +#line 120 "sqlda.pgc" strcpy(msg, "deallocate"); { ECPGdeallocate(__LINE__, 0, NULL, "st_id1"); -#line 124 "sqlda.pgc" +#line 123 "sqlda.pgc" if (sqlca.sqlcode < 0) exit (1);} -#line 124 "sqlda.pgc" +#line 123 "sqlda.pgc" free(outp_sqlda); @@ -311,35 +311,35 @@ if (sqlca.sqlcode < 0) exit (1);} strcpy(msg, "prepare"); { ECPGprepare(__LINE__, NULL, 0, "st_id2", stmt1); -#line 133 "sqlda.pgc" +#line 132 "sqlda.pgc" if (sqlca.sqlcode < 0) exit (1);} -#line 133 "sqlda.pgc" +#line 132 "sqlda.pgc" strcpy(msg, "declare"); /* declare mycur2 cursor for $1 */ -#line 136 "sqlda.pgc" +#line 135 "sqlda.pgc" strcpy(msg, "open"); { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "declare mycur2 cursor for $1", ECPGt_char_variable,(ECPGprepared_statement(NULL, "st_id2", __LINE__)),(long)1,(long)1,(1)*sizeof(char), ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_EORT); -#line 139 "sqlda.pgc" +#line 138 "sqlda.pgc" if (sqlca.sqlcode < 0) exit (1);} -#line 139 "sqlda.pgc" +#line 138 "sqlda.pgc" strcpy(msg, "fetch"); { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "fetch all from mycur2", ECPGt_EOIT, ECPGt_sqlda, &outp_sqlda, 0L, 0L, 0L, ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT); -#line 142 "sqlda.pgc" +#line 141 "sqlda.pgc" if (sqlca.sqlcode < 0) exit (1);} -#line 142 "sqlda.pgc" +#line 141 "sqlda.pgc" outp_sqlda1 = outp_sqlda; @@ -357,18 +357,18 @@ if (sqlca.sqlcode < 0) exit (1);} strcpy(msg, "close"); { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "close mycur2", ECPGt_EOIT, ECPGt_EORT); -#line 158 "sqlda.pgc" +#line 157 "sqlda.pgc" if (sqlca.sqlcode < 0) exit (1);} -#line 158 "sqlda.pgc" +#line 157 "sqlda.pgc" strcpy(msg, "deallocate"); { ECPGdeallocate(__LINE__, 0, NULL, "st_id2"); -#line 161 "sqlda.pgc" +#line 160 "sqlda.pgc" if (sqlca.sqlcode < 0) exit (1);} -#line 161 "sqlda.pgc" +#line 160 "sqlda.pgc" /* SQLDA test for getting one record using an input descriptor */ @@ -392,10 +392,10 @@ if (sqlca.sqlcode < 0) exit (1);} strcpy(msg, "prepare"); { ECPGprepare(__LINE__, NULL, 0, "st_id3", stmt2); -#line 183 "sqlda.pgc" +#line 182 "sqlda.pgc" if (sqlca.sqlcode < 0) exit (1);} -#line 183 "sqlda.pgc" +#line 182 "sqlda.pgc" strcpy(msg, "execute"); @@ -404,20 +404,20 @@ if (sqlca.sqlcode < 0) exit (1);} ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_sqlda, &outp_sqlda, 0L, 0L, 0L, ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT); -#line 186 "sqlda.pgc" +#line 185 "sqlda.pgc" if (sqlca.sqlcode < 0) exit (1);} -#line 186 "sqlda.pgc" +#line 185 "sqlda.pgc" dump_sqlda(outp_sqlda); strcpy(msg, "deallocate"); { ECPGdeallocate(__LINE__, 0, NULL, "st_id3"); -#line 191 "sqlda.pgc" +#line 190 "sqlda.pgc" if (sqlca.sqlcode < 0) exit (1);} -#line 191 "sqlda.pgc" +#line 190 "sqlda.pgc" free(inp_sqlda); @@ -428,10 +428,10 @@ if (sqlca.sqlcode < 0) exit (1);} */ { ECPGconnect(__LINE__, 0, "regress1" , NULL, NULL , "con2", 0); -#line 200 "sqlda.pgc" +#line 199 "sqlda.pgc" if (sqlca.sqlcode < 0) exit (1);} -#line 200 "sqlda.pgc" +#line 199 "sqlda.pgc" /* @@ -453,10 +453,10 @@ if (sqlca.sqlcode < 0) exit (1);} strcpy(msg, "prepare"); { ECPGprepare(__LINE__, "con2", 0, "st_id4", stmt2); -#line 220 "sqlda.pgc" +#line 219 "sqlda.pgc" if (sqlca.sqlcode < 0) exit (1);} -#line 220 "sqlda.pgc" +#line 219 "sqlda.pgc" strcpy(msg, "execute"); @@ -465,28 +465,28 @@ if (sqlca.sqlcode < 0) exit (1);} ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EOIT, ECPGt_sqlda, &outp_sqlda, 0L, 0L, 0L, ECPGt_NO_INDICATOR, NULL , 0L, 0L, 0L, ECPGt_EORT); -#line 223 "sqlda.pgc" +#line 222 "sqlda.pgc" if (sqlca.sqlcode < 0) exit (1);} -#line 223 "sqlda.pgc" +#line 222 "sqlda.pgc" dump_sqlda(outp_sqlda); strcpy(msg, "commit"); { ECPGtrans(__LINE__, "con2", "commit"); -#line 228 "sqlda.pgc" +#line 227 "sqlda.pgc" if (sqlca.sqlcode < 0) exit (1);} -#line 228 "sqlda.pgc" +#line 227 "sqlda.pgc" strcpy(msg, "deallocate"); { ECPGdeallocate(__LINE__, 0, NULL, "st_id4"); -#line 231 "sqlda.pgc" +#line 230 "sqlda.pgc" if (sqlca.sqlcode < 0) exit (1);} -#line 231 "sqlda.pgc" +#line 230 "sqlda.pgc" free(inp_sqlda); @@ -494,36 +494,36 @@ if (sqlca.sqlcode < 0) exit (1);} strcpy(msg, "disconnect"); { ECPGdisconnect(__LINE__, "con2"); -#line 237 "sqlda.pgc" +#line 236 "sqlda.pgc" if (sqlca.sqlcode < 0) exit (1);} -#line 237 "sqlda.pgc" +#line 236 "sqlda.pgc" /* End test */ strcpy(msg, "drop"); { ECPGdo(__LINE__, 0, 1, NULL, 0, ECPGst_normal, "drop table t1", ECPGt_EOIT, ECPGt_EORT); -#line 242 "sqlda.pgc" +#line 241 "sqlda.pgc" if (sqlca.sqlcode < 0) exit (1);} -#line 242 "sqlda.pgc" +#line 241 "sqlda.pgc" strcpy(msg, "commit"); { ECPGtrans(__LINE__, NULL, "commit"); -#line 245 "sqlda.pgc" +#line 244 "sqlda.pgc" if (sqlca.sqlcode < 0) exit (1);} -#line 245 "sqlda.pgc" +#line 244 "sqlda.pgc" strcpy(msg, "disconnect"); { ECPGdisconnect(__LINE__, "CURRENT"); -#line 248 "sqlda.pgc" +#line 247 "sqlda.pgc" if (sqlca.sqlcode < 0) exit (1);} -#line 248 "sqlda.pgc" +#line 247 "sqlda.pgc" return (0); diff --git a/src/interfaces/ecpg/test/expected/sql-sqlda.stderr b/src/interfaces/ecpg/test/expected/sql-sqlda.stderr index e33c728878e1f4db286dfec26d763e33084c924b..8cb2f5976a2d08503b51e12d60dfb381e909a200 100644 --- a/src/interfaces/ecpg/test/expected/sql-sqlda.stderr +++ b/src/interfaces/ecpg/test/expected/sql-sqlda.stderr @@ -14,65 +14,65 @@ [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_execute on line 76: OK: CREATE TABLE [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 84: query: insert into t1 values ( 1 , 'a' , 1.0 , 1 , 'a' ) , ( 2 , null , null , null , null ) , ( 3 , '"c"' , - 3 , 'nan' :: float8 , 'c' ) , ( 4 , 'd' , 4.0 , 4 , 'd' ); with 0 parameter(s) on connection regress1 +[NO_PID]: ecpg_execute on line 84: query: insert into t1 values ( 1 , 'a' , 1.0 , 1 , 'a' ) , ( 2 , null , null , null , null ) , ( 4 , 'd' , 4.0 , 4 , 'd' ); with 0 parameter(s) on connection regress1 [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_execute on line 84: using PQexec [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 84: OK: INSERT 0 4 +[NO_PID]: ecpg_execute on line 84: OK: INSERT 0 3 [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ECPGtrans on line 91: action "commit"; connection "regress1" +[NO_PID]: ECPGtrans on line 90: action "commit"; connection "regress1" [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ECPGprepare on line 98: name st_id1; query: "SELECT * FROM t1" +[NO_PID]: ECPGprepare on line 97: name st_id1; query: "SELECT * FROM t1" [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 104: query: declare mycur1 cursor for SELECT * FROM t1; with 0 parameter(s) on connection regress1 +[NO_PID]: ecpg_execute on line 103: query: declare mycur1 cursor for SELECT * FROM t1; with 0 parameter(s) on connection regress1 [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 104: using PQexec +[NO_PID]: ecpg_execute on line 103: using PQexec [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 104: OK: DECLARE CURSOR +[NO_PID]: ecpg_execute on line 103: OK: DECLARE CURSOR [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 112: query: fetch 1 from mycur1; with 0 parameter(s) on connection regress1 +[NO_PID]: ecpg_execute on line 111: query: fetch 1 from mycur1; with 0 parameter(s) on connection regress1 [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 112: using PQexec +[NO_PID]: ecpg_execute on line 111: using PQexec [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 112: correctly got 1 tuples with 5 fields +[NO_PID]: ecpg_execute on line 111: correctly got 1 tuples with 5 fields [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_build_native_sqlda sqld = 5 [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 112: new sqlda was built +[NO_PID]: ecpg_execute on line 111: new sqlda was built [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_native_sqlda row 0 col 0 IS NOT NULL [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 112: RESULT: 1 offset: -1; array: yes +[NO_PID]: ecpg_get_data on line 111: RESULT: 1 offset: -1; array: yes [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_native_sqlda row 0 col 1 IS NOT NULL [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 112: RESULT: a offset: -1; array: yes +[NO_PID]: ecpg_get_data on line 111: RESULT: a offset: -1; array: yes [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_native_sqlda row 0 col 2 IS NOT NULL [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_native_sqlda row 0 col 3 IS NOT NULL [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 112: RESULT: 1 offset: -1; array: yes +[NO_PID]: ecpg_get_data on line 111: RESULT: 1 offset: -1; array: yes [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_native_sqlda row 0 col 4 IS NOT NULL [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 112: RESULT: a offset: -1; array: yes +[NO_PID]: ecpg_get_data on line 111: RESULT: a offset: -1; array: yes [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 112: putting result (1 tuple 5 fields) into sqlda descriptor +[NO_PID]: ecpg_execute on line 111: putting result (1 tuple 5 fields) into sqlda descriptor [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 112: query: fetch 1 from mycur1; with 0 parameter(s) on connection regress1 +[NO_PID]: ecpg_execute on line 111: query: fetch 1 from mycur1; with 0 parameter(s) on connection regress1 [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 112: using PQexec +[NO_PID]: ecpg_execute on line 111: using PQexec [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 112: correctly got 1 tuples with 5 fields +[NO_PID]: ecpg_execute on line 111: correctly got 1 tuples with 5 fields [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_build_native_sqlda sqld = 5 [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 112: new sqlda was built +[NO_PID]: ecpg_execute on line 111: new sqlda was built [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_native_sqlda row 0 col 0 IS NOT NULL [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 112: RESULT: 2 offset: -1; array: yes +[NO_PID]: ecpg_get_data on line 111: RESULT: 2 offset: -1; array: yes [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_native_sqlda row 0 col 1 IS NULL [NO_PID]: sqlca: code: 0, state: 00000 @@ -82,153 +82,99 @@ [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_native_sqlda row 0 col 4 IS NULL [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 112: putting result (1 tuple 5 fields) into sqlda descriptor +[NO_PID]: ecpg_execute on line 111: putting result (1 tuple 5 fields) into sqlda descriptor [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 112: query: fetch 1 from mycur1; with 0 parameter(s) on connection regress1 +[NO_PID]: ecpg_execute on line 111: query: fetch 1 from mycur1; with 0 parameter(s) on connection regress1 [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 112: using PQexec +[NO_PID]: ecpg_execute on line 111: using PQexec [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 112: correctly got 1 tuples with 5 fields +[NO_PID]: ecpg_execute on line 111: correctly got 1 tuples with 5 fields [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_build_native_sqlda sqld = 5 [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 112: new sqlda was built +[NO_PID]: ecpg_execute on line 111: new sqlda was built [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_native_sqlda row 0 col 0 IS NOT NULL [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 112: RESULT: 3 offset: -1; array: yes +[NO_PID]: ecpg_get_data on line 111: RESULT: 4 offset: -1; array: yes [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_native_sqlda row 0 col 1 IS NOT NULL [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 112: RESULT: "c" offset: -1; array: yes +[NO_PID]: ecpg_get_data on line 111: RESULT: d offset: -1; array: yes [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_native_sqlda row 0 col 2 IS NOT NULL [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_native_sqlda row 0 col 3 IS NOT NULL [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 112: RESULT: NaN offset: -1; array: yes +[NO_PID]: ecpg_get_data on line 111: RESULT: 4 offset: -1; array: yes [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_native_sqlda row 0 col 4 IS NOT NULL [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 112: RESULT: c offset: -1; array: yes +[NO_PID]: ecpg_get_data on line 111: RESULT: d offset: -1; array: yes [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 112: putting result (1 tuple 5 fields) into sqlda descriptor +[NO_PID]: ecpg_execute on line 111: putting result (1 tuple 5 fields) into sqlda descriptor [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 112: query: fetch 1 from mycur1; with 0 parameter(s) on connection regress1 +[NO_PID]: ecpg_execute on line 111: query: fetch 1 from mycur1; with 0 parameter(s) on connection regress1 [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 112: using PQexec +[NO_PID]: ecpg_execute on line 111: using PQexec [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 112: correctly got 1 tuples with 5 fields +[NO_PID]: ecpg_execute on line 111: correctly got 0 tuples with 5 fields [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_build_native_sqlda sqld = 5 -[NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 112: new sqlda was built -[NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_set_native_sqlda row 0 col 0 IS NOT NULL -[NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 112: RESULT: 4 offset: -1; array: yes -[NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_set_native_sqlda row 0 col 1 IS NOT NULL -[NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 112: RESULT: d offset: -1; array: yes -[NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_set_native_sqlda row 0 col 2 IS NOT NULL -[NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_set_native_sqlda row 0 col 3 IS NOT NULL -[NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 112: RESULT: 4 offset: -1; array: yes -[NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_set_native_sqlda row 0 col 4 IS NOT NULL -[NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 112: RESULT: d offset: -1; array: yes -[NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 112: putting result (1 tuple 5 fields) into sqlda descriptor -[NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 112: query: fetch 1 from mycur1; with 0 parameter(s) on connection regress1 -[NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 112: using PQexec -[NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 112: correctly got 0 tuples with 5 fields -[NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: raising sqlcode 100 on line 112: no data found on line 112 +[NO_PID]: raising sqlcode 100 on line 111: no data found on line 111 [NO_PID]: sqlca: code: 100, state: 02000 -[NO_PID]: ecpg_execute on line 121: query: close mycur1; with 0 parameter(s) on connection regress1 -[NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 121: using PQexec -[NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 121: OK: CLOSE CURSOR -[NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ECPGdeallocate on line 124: name st_id1 -[NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ECPGprepare on line 133: name st_id2; query: "SELECT * FROM t1" -[NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 139: query: declare mycur2 cursor for SELECT * FROM t1; with 0 parameter(s) on connection regress1 -[NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 139: using PQexec -[NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 139: OK: DECLARE CURSOR -[NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 142: query: fetch all from mycur2; with 0 parameter(s) on connection regress1 -[NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 142: using PQexec -[NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 142: correctly got 4 tuples with 5 fields -[NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_build_native_sqlda sqld = 5 -[NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 142: new sqlda was built +[NO_PID]: ecpg_execute on line 120: query: close mycur1; with 0 parameter(s) on connection regress1 [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_set_native_sqlda row 3 col 0 IS NOT NULL +[NO_PID]: ecpg_execute on line 120: using PQexec [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 142: RESULT: 4 offset: -1; array: yes +[NO_PID]: ecpg_execute on line 120: OK: CLOSE CURSOR [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_set_native_sqlda row 3 col 1 IS NOT NULL +[NO_PID]: ECPGdeallocate on line 123: name st_id1 [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 142: RESULT: d offset: -1; array: yes +[NO_PID]: ECPGprepare on line 132: name st_id2; query: "SELECT * FROM t1" [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_set_native_sqlda row 3 col 2 IS NOT NULL +[NO_PID]: ecpg_execute on line 138: query: declare mycur2 cursor for SELECT * FROM t1; with 0 parameter(s) on connection regress1 [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_set_native_sqlda row 3 col 3 IS NOT NULL +[NO_PID]: ecpg_execute on line 138: using PQexec [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 142: RESULT: 4 offset: -1; array: yes +[NO_PID]: ecpg_execute on line 138: OK: DECLARE CURSOR [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_set_native_sqlda row 3 col 4 IS NOT NULL +[NO_PID]: ecpg_execute on line 141: query: fetch all from mycur2; with 0 parameter(s) on connection regress1 [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 142: RESULT: d offset: -1; array: yes +[NO_PID]: ecpg_execute on line 141: using PQexec [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 142: putting result (1 tuple 5 fields) into sqlda descriptor +[NO_PID]: ecpg_execute on line 141: correctly got 3 tuples with 5 fields [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_build_native_sqlda sqld = 5 [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 142: new sqlda was built +[NO_PID]: ecpg_execute on line 141: new sqlda was built [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_native_sqlda row 2 col 0 IS NOT NULL [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 142: RESULT: 3 offset: -1; array: yes +[NO_PID]: ecpg_get_data on line 141: RESULT: 4 offset: -1; array: yes [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_native_sqlda row 2 col 1 IS NOT NULL [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 142: RESULT: "c" offset: -1; array: yes +[NO_PID]: ecpg_get_data on line 141: RESULT: d offset: -1; array: yes [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_native_sqlda row 2 col 2 IS NOT NULL [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_native_sqlda row 2 col 3 IS NOT NULL [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 142: RESULT: NaN offset: -1; array: yes +[NO_PID]: ecpg_get_data on line 141: RESULT: 4 offset: -1; array: yes [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_native_sqlda row 2 col 4 IS NOT NULL [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 142: RESULT: c offset: -1; array: yes +[NO_PID]: ecpg_get_data on line 141: RESULT: d offset: -1; array: yes [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 142: putting result (1 tuple 5 fields) into sqlda descriptor +[NO_PID]: ecpg_execute on line 141: putting result (1 tuple 5 fields) into sqlda descriptor [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_build_native_sqlda sqld = 5 [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 142: new sqlda was built +[NO_PID]: ecpg_execute on line 141: new sqlda was built [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_native_sqlda row 1 col 0 IS NOT NULL [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 142: RESULT: 2 offset: -1; array: yes +[NO_PID]: ecpg_get_data on line 141: RESULT: 2 offset: -1; array: yes [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_native_sqlda row 1 col 1 IS NULL [NO_PID]: sqlca: code: 0, state: 00000 @@ -238,125 +184,125 @@ [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_native_sqlda row 1 col 4 IS NULL [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 142: putting result (1 tuple 5 fields) into sqlda descriptor +[NO_PID]: ecpg_execute on line 141: putting result (1 tuple 5 fields) into sqlda descriptor [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_build_native_sqlda sqld = 5 [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 142: new sqlda was built +[NO_PID]: ecpg_execute on line 141: new sqlda was built [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_native_sqlda row 0 col 0 IS NOT NULL [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 142: RESULT: 1 offset: -1; array: yes +[NO_PID]: ecpg_get_data on line 141: RESULT: 1 offset: -1; array: yes [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_native_sqlda row 0 col 1 IS NOT NULL [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 142: RESULT: a offset: -1; array: yes +[NO_PID]: ecpg_get_data on line 141: RESULT: a offset: -1; array: yes [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_native_sqlda row 0 col 2 IS NOT NULL [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_native_sqlda row 0 col 3 IS NOT NULL [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 142: RESULT: 1 offset: -1; array: yes +[NO_PID]: ecpg_get_data on line 141: RESULT: 1 offset: -1; array: yes [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_native_sqlda row 0 col 4 IS NOT NULL [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 142: RESULT: a offset: -1; array: yes +[NO_PID]: ecpg_get_data on line 141: RESULT: a offset: -1; array: yes [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 142: putting result (1 tuple 5 fields) into sqlda descriptor +[NO_PID]: ecpg_execute on line 141: putting result (1 tuple 5 fields) into sqlda descriptor [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 158: query: close mycur2; with 0 parameter(s) on connection regress1 +[NO_PID]: ecpg_execute on line 157: query: close mycur2; with 0 parameter(s) on connection regress1 [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 158: using PQexec +[NO_PID]: ecpg_execute on line 157: using PQexec [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 158: OK: CLOSE CURSOR +[NO_PID]: ecpg_execute on line 157: OK: CLOSE CURSOR [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ECPGdeallocate on line 161: name st_id2 +[NO_PID]: ECPGdeallocate on line 160: name st_id2 [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ECPGprepare on line 183: name st_id3; query: "SELECT * FROM t1 WHERE id = $1" +[NO_PID]: ECPGprepare on line 182: name st_id3; query: "SELECT * FROM t1 WHERE id = $1" [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 186: query: SELECT * FROM t1 WHERE id = $1; with 1 parameter(s) on connection regress1 +[NO_PID]: ecpg_execute on line 185: query: SELECT * FROM t1 WHERE id = $1; with 1 parameter(s) on connection regress1 [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 186: using PQexecPrepared for "SELECT * FROM t1 WHERE id = $1" +[NO_PID]: ecpg_execute on line 185: using PQexecPrepared for "SELECT * FROM t1 WHERE id = $1" [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: free_params on line 186: parameter 1 = 4 +[NO_PID]: free_params on line 185: parameter 1 = 4 [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 186: correctly got 1 tuples with 5 fields +[NO_PID]: ecpg_execute on line 185: correctly got 1 tuples with 5 fields [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_build_native_sqlda sqld = 5 [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 186: new sqlda was built +[NO_PID]: ecpg_execute on line 185: new sqlda was built [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_native_sqlda row 0 col 0 IS NOT NULL [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 186: RESULT: 4 offset: -1; array: yes +[NO_PID]: ecpg_get_data on line 185: RESULT: 4 offset: -1; array: yes [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_native_sqlda row 0 col 1 IS NOT NULL [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 186: RESULT: d offset: -1; array: yes +[NO_PID]: ecpg_get_data on line 185: RESULT: d offset: -1; array: yes [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_native_sqlda row 0 col 2 IS NOT NULL [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_native_sqlda row 0 col 3 IS NOT NULL [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 186: RESULT: 4 offset: -1; array: yes +[NO_PID]: ecpg_get_data on line 185: RESULT: 4 offset: -1; array: yes [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_native_sqlda row 0 col 4 IS NOT NULL [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 186: RESULT: d offset: -1; array: yes +[NO_PID]: ecpg_get_data on line 185: RESULT: d offset: -1; array: yes [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 186: putting result (1 tuple 5 fields) into sqlda descriptor +[NO_PID]: ecpg_execute on line 185: putting result (1 tuple 5 fields) into sqlda descriptor [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ECPGdeallocate on line 191: name st_id3 +[NO_PID]: ECPGdeallocate on line 190: name st_id3 [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ECPGconnect: opening database regress1 on <DEFAULT> port <DEFAULT> [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ECPGprepare on line 220: name st_id4; query: "SELECT * FROM t1 WHERE id = $1" +[NO_PID]: ECPGprepare on line 219: name st_id4; query: "SELECT * FROM t1 WHERE id = $1" [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 223: query: SELECT * FROM t1 WHERE id = $1; with 1 parameter(s) on connection con2 +[NO_PID]: ecpg_execute on line 222: query: SELECT * FROM t1 WHERE id = $1; with 1 parameter(s) on connection con2 [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 223: using PQexecPrepared for "SELECT * FROM t1 WHERE id = $1" +[NO_PID]: ecpg_execute on line 222: using PQexecPrepared for "SELECT * FROM t1 WHERE id = $1" [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: free_params on line 223: parameter 1 = 4 +[NO_PID]: free_params on line 222: parameter 1 = 4 [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 223: correctly got 1 tuples with 5 fields +[NO_PID]: ecpg_execute on line 222: correctly got 1 tuples with 5 fields [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_build_native_sqlda sqld = 5 [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 223: new sqlda was built +[NO_PID]: ecpg_execute on line 222: new sqlda was built [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_native_sqlda row 0 col 0 IS NOT NULL [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 223: RESULT: 4 offset: -1; array: yes +[NO_PID]: ecpg_get_data on line 222: RESULT: 4 offset: -1; array: yes [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_native_sqlda row 0 col 1 IS NOT NULL [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 223: RESULT: d offset: -1; array: yes +[NO_PID]: ecpg_get_data on line 222: RESULT: d offset: -1; array: yes [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_native_sqlda row 0 col 2 IS NOT NULL [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_native_sqlda row 0 col 3 IS NOT NULL [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 223: RESULT: 4 offset: -1; array: yes +[NO_PID]: ecpg_get_data on line 222: RESULT: 4 offset: -1; array: yes [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_set_native_sqlda row 0 col 4 IS NOT NULL [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_get_data on line 223: RESULT: d offset: -1; array: yes +[NO_PID]: ecpg_get_data on line 222: RESULT: d offset: -1; array: yes [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 223: putting result (1 tuple 5 fields) into sqlda descriptor +[NO_PID]: ecpg_execute on line 222: putting result (1 tuple 5 fields) into sqlda descriptor [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ECPGtrans on line 228: action "commit"; connection "con2" +[NO_PID]: ECPGtrans on line 227: action "commit"; connection "con2" [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ECPGdeallocate on line 231: name st_id4 +[NO_PID]: ECPGdeallocate on line 230: name st_id4 [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_finish: connection con2 closed [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 242: query: drop table t1; with 0 parameter(s) on connection regress1 +[NO_PID]: ecpg_execute on line 241: query: drop table t1; with 0 parameter(s) on connection regress1 [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 242: using PQexec +[NO_PID]: ecpg_execute on line 241: using PQexec [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ecpg_execute on line 242: OK: DROP TABLE +[NO_PID]: ecpg_execute on line 241: OK: DROP TABLE [NO_PID]: sqlca: code: 0, state: 00000 -[NO_PID]: ECPGtrans on line 245: action "commit"; connection "regress1" +[NO_PID]: ECPGtrans on line 244: action "commit"; connection "regress1" [NO_PID]: sqlca: code: 0, state: 00000 [NO_PID]: ecpg_finish: connection regress1 closed [NO_PID]: sqlca: code: 0, state: 00000 diff --git a/src/interfaces/ecpg/test/expected/sql-sqlda.stdout b/src/interfaces/ecpg/test/expected/sql-sqlda.stdout index cfd7a007075d524988c82863d14c5100e186efc6..a59c2e32e2e5bd2677f247379d420a02a06dcbac 100644 --- a/src/interfaces/ecpg/test/expected/sql-sqlda.stdout +++ b/src/interfaces/ecpg/test/expected/sql-sqlda.stdout @@ -11,12 +11,6 @@ name sqlda descriptor: 'd1' value NULL' name sqlda descriptor: 'd2' value NULL' name sqlda descriptor: 'c' value NULL' FETCH RECORD 3 -name sqlda descriptor: 'id' value 3 -name sqlda descriptor: 't' value '"c"' -name sqlda descriptor: 'd1' value NUMERIC '-3' -name sqlda descriptor: 'd2' value nan -name sqlda descriptor: 'c' value 'c ' -FETCH RECORD 4 name sqlda descriptor: 'id' value 4 name sqlda descriptor: 't' value 'd' name sqlda descriptor: 'd1' value NUMERIC '4.0' @@ -35,12 +29,6 @@ name sqlda descriptor: 'd1' value NULL' name sqlda descriptor: 'd2' value NULL' name sqlda descriptor: 'c' value NULL' FETCH RECORD 3 -name sqlda descriptor: 'id' value 3 -name sqlda descriptor: 't' value '"c"' -name sqlda descriptor: 'd1' value NUMERIC '-3' -name sqlda descriptor: 'd2' value nan -name sqlda descriptor: 'c' value 'c ' -FETCH RECORD 4 name sqlda descriptor: 'id' value 4 name sqlda descriptor: 't' value 'd' name sqlda descriptor: 'd1' value NUMERIC '4.0' diff --git a/src/interfaces/ecpg/test/sql/sqlda.pgc b/src/interfaces/ecpg/test/sql/sqlda.pgc index 6d4517b682184e93d9dd4a329fae4ce3395f92de..f49f05f48dd0b8b5f9ebaa98026e54896a38f251 100644 --- a/src/interfaces/ecpg/test/sql/sqlda.pgc +++ b/src/interfaces/ecpg/test/sql/sqlda.pgc @@ -84,7 +84,6 @@ exec sql end declare section; exec sql insert into t1 values (1, 'a', 1.0, 1, 'a'), (2, null, null, null, null), - (3, '"c"', -3, 'nan'::float8, 'c'), (4, 'd', 4.0, 4, 'd'); strcpy(msg, "commit");