PostgreSQL: Only rollback when in a transaction
authorJeff <jeff.janes@gmail.com>
Fri, 30 May 2014 06:42:41 +0000 (23:42 -0700)
committerJeff <jeff.janes@gmail.com>
Fri, 30 May 2014 06:51:57 +0000 (23:51 -0700)
commit72ecbfc12794c74eb61fe93b147f42d4bf8c2910
treefb19756f3a18fd27c624d1b8b05c57c118109842
parent410d531e81108ac3a12edbdb8c1c773c0a581697
PostgreSQL: Only rollback when in a transaction

SQL errors would issue a rollback, even when it was
not actually in a transactions.  Doing so would cause
another error to be reported.  This could obscure the
original error, particularly during unit tests.

Fix this by not rolling back when not in a transaction.

Bug: 58095
Change-Id: Ib5220e37dd6c364feee6b7f8e7ecbdae2a2e0ba1
includes/db/DatabasePostgres.php