mirror of
https://github.com/postgres/postgres.git
synced 2025-06-29 10:41:53 +03: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:
@ -204,10 +204,7 @@ ECPGtrans(int lineno, const char *connection_name, const char *transaction)
|
|||||||
PQclear(res);
|
PQclear(res);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strncmp(transaction, "commit", 6) == 0 || strncmp(transaction, "rollback", 8) == 0)
|
con->committed = (PQtransactionStatus(con->connection) == PQTRANS_IDLE);
|
||||||
con->committed = true;
|
|
||||||
else
|
|
||||||
con->committed = false;
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user