mirror of
https://github.com/postgres/postgres.git
synced 2025-07-07 00:36:50 +03:00
Fix closing of incorrectly named cursor.
Patch by "Shinoda, Noriyoshi" <noriyoshi.shinoda@hpe.com>
This commit is contained in:
@ -51,7 +51,7 @@ int main() {
|
|||||||
printf("\"%s\": \"%s\" %d\n", bigstr, shortstr, shstr_ind);
|
printf("\"%s\": \"%s\" %d\n", bigstr, shortstr, shstr_ind);
|
||||||
}
|
}
|
||||||
|
|
||||||
EXEC SQL close cstr;
|
EXEC SQL CLOSE C;
|
||||||
EXEC SQL DROP TABLE strdbase;
|
EXEC SQL DROP TABLE strdbase;
|
||||||
|
|
||||||
printf("\nGOOD-BYE!!\n\n");
|
printf("\nGOOD-BYE!!\n\n");
|
||||||
|
@ -178,7 +178,7 @@ if (sqlca.sqlcode < 0) sqlprint();}
|
|||||||
printf("\"%s\": \"%s\" %d\n", bigstr, shortstr, shstr_ind);
|
printf("\"%s\": \"%s\" %d\n", bigstr, shortstr, shstr_ind);
|
||||||
}
|
}
|
||||||
|
|
||||||
{ ECPGdo(__LINE__, 3, 1, NULL, 0, ECPGst_normal, "close cstr", ECPGt_EOIT, ECPGt_EORT);
|
{ ECPGdo(__LINE__, 3, 1, NULL, 0, ECPGst_normal, "close C", ECPGt_EOIT, ECPGt_EORT);
|
||||||
#line 54 "char_array.pgc"
|
#line 54 "char_array.pgc"
|
||||||
|
|
||||||
if (sqlca.sqlwarn[0] == 'W') warn ( );
|
if (sqlca.sqlwarn[0] == 'W') warn ( );
|
||||||
|
@ -121,24 +121,18 @@ Warning: At least one column was truncated
|
|||||||
[NO_PID]: sqlca: code: 0, state: 00000
|
[NO_PID]: sqlca: code: 0, state: 00000
|
||||||
[NO_PID]: raising sqlcode 100 on line 50: no data found on line 50
|
[NO_PID]: raising sqlcode 100 on line 50: no data found on line 50
|
||||||
[NO_PID]: sqlca: code: 100, state: 02000
|
[NO_PID]: sqlca: code: 100, state: 02000
|
||||||
[NO_PID]: ecpg_execute on line 54: query: close cstr; with 0 parameter(s) on connection ecpg1_regression
|
[NO_PID]: ecpg_execute on line 54: query: close C; with 0 parameter(s) on connection ecpg1_regression
|
||||||
[NO_PID]: sqlca: code: 0, state: 00000
|
[NO_PID]: sqlca: code: 0, state: 00000
|
||||||
[NO_PID]: ecpg_execute on line 54: using PQexec
|
[NO_PID]: ecpg_execute on line 54: using PQexec
|
||||||
[NO_PID]: sqlca: code: 0, state: 00000
|
[NO_PID]: sqlca: code: 0, state: 00000
|
||||||
[NO_PID]: ecpg_check_PQresult on line 54: bad response - ERROR: cursor "cstr" does not exist
|
[NO_PID]: ecpg_process_output on line 54: OK: CLOSE CURSOR
|
||||||
[NO_PID]: sqlca: code: 0, state: 00000
|
[NO_PID]: sqlca: code: 0, state: 00000
|
||||||
[NO_PID]: raising sqlstate 34000 (sqlcode -400): cursor "cstr" does not exist on line 54
|
|
||||||
[NO_PID]: sqlca: code: -400, state: 34000
|
|
||||||
SQL error: cursor "cstr" does not exist on line 54
|
|
||||||
[NO_PID]: ecpg_execute on line 55: query: drop table strdbase; with 0 parameter(s) on connection ecpg1_regression
|
[NO_PID]: ecpg_execute on line 55: query: drop table strdbase; with 0 parameter(s) on connection ecpg1_regression
|
||||||
[NO_PID]: sqlca: code: 0, state: 00000
|
[NO_PID]: sqlca: code: 0, state: 00000
|
||||||
[NO_PID]: ecpg_execute on line 55: using PQexec
|
[NO_PID]: ecpg_execute on line 55: using PQexec
|
||||||
[NO_PID]: sqlca: code: 0, state: 00000
|
[NO_PID]: sqlca: code: 0, state: 00000
|
||||||
[NO_PID]: ecpg_check_PQresult on line 55: bad response - ERROR: current transaction is aborted, commands ignored until end of transaction block
|
[NO_PID]: ecpg_process_output on line 55: OK: DROP TABLE
|
||||||
[NO_PID]: sqlca: code: 0, state: 00000
|
[NO_PID]: sqlca: code: 0, state: 00000
|
||||||
[NO_PID]: raising sqlstate 25P02 (sqlcode -400): current transaction is aborted, commands ignored until end of transaction block on line 55
|
|
||||||
[NO_PID]: sqlca: code: -400, state: 25P02
|
|
||||||
SQL error: current transaction is aborted, commands ignored until end of transaction block on line 55
|
|
||||||
[NO_PID]: ECPGtrans on line 59: action "commit work"; connection "ecpg1_regression"
|
[NO_PID]: ECPGtrans on line 59: action "commit work"; connection "ecpg1_regression"
|
||||||
[NO_PID]: sqlca: code: 0, state: 00000
|
[NO_PID]: sqlca: code: 0, state: 00000
|
||||||
[NO_PID]: ecpg_finish: connection ecpg1_regression closed
|
[NO_PID]: ecpg_finish: connection ecpg1_regression closed
|
||||||
|
Reference in New Issue
Block a user