Applied patch by Itagaki Takahiro to fix incorrect status calculation in

ecpglib. Instead of parsing the statement just as ask the database server.
REL8_4_STABLE
Michael Meskes 15 years ago
parent 9dfd308643
commit a0e02dc1af
  1. 5
      src/interfaces/ecpg/ecpglib/misc.c

@ -204,10 +204,7 @@ ECPGtrans(int lineno, const char *connection_name, const char *transaction)
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…
Cancel
Save