mirror of
https://github.com/postgres/postgres.git
synced 2026-04-09 11:06:21 -04:00
Applied patch by Itagaki Takahiro to fix incorrect status calculation in
ecpglib. Instead of parsing the statement just as ask the database server.
This commit is contained in:
parent
ef76230c27
commit
86d4cc4a2a
1 changed files with 1 additions and 4 deletions
|
|
@ -219,10 +219,7 @@ ECPGtrans(int lineno, const char *connection_name, const char *transaction)
|
|||
return FALSE;
|
||||
PQclear(res);
|
||||
|
||||
if (strncmp(transaction, "commit", 6) == 0 || strncmp(transaction, "rollback", 8) == 0)
|
||||
con->committed = true;
|
||||
else
|
||||
con->committed = false;
|
||||
con->committed = (PQtransactionStatus(con->connection) == PQTRANS_IDLE);
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Reference in a new issue