From: | PG Bug reporting form <noreply(at)postgresql(dot)org> |
---|---|
To: | pgsql-bugs(at)lists(dot)postgresql(dot)org |
Cc: | klaxian(at)gmail(dot)com |
Subject: | BUG #15170: PQtransactionStatus returns ACTIVE after Empty Commit |
Date: | 2018-04-24 16:49:17 |
Message-ID: | 152458855796.19803.13664386145754757782@wrigleys.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
The following bug has been logged on the website:
Bug reference: 15170
Logged by: Rick Gabriel
Email address: klaxian(at)gmail(dot)com
PostgreSQL version: 10.3
Operating system: Ubuntu Linux 16.04
Description:
PQtransactionStatus() incorrectly returns PQTRANS_ACTIVE after committing an
empty transaction block (ie. BEGIN and COMMIT without any other queries).
From the documentation, I would expect PQTRANS_IDLE to be returned in this
case since the connection becomes idle, outside a transaction. If no other
queries are executed on the connection, it never returns to PQTRANS_IDLE
even after waiting for several seconds. I am testing with the PHP 7.1
PostgreSQL module, but I think this is a universal problem with PostgreSQL's
API.
From | Date | Subject | |
---|---|---|---|
Next Message | PG Bug reporting form | 2018-04-24 17:59:02 | BUG #15171: JDBC TIMESTAMP WITH TIME ZONE PSQLException When Using Substitution Parameter |
Previous Message | Alexey Bashtanov | 2018-04-24 15:32:08 | set/reset issues in create function and set_config |