(bug 27283) SqlBagOStuff breaks PostgreSQL txns
authorsaper <saper@saper.info>
Fri, 30 Mar 2012 00:10:52 +0000 (02:10 +0200)
committersaper <saper@saper.info>
Thu, 14 Jun 2012 21:33:11 +0000 (23:33 +0200)
commit646a9490f74f3841803299a4e4d2d5677c5f1bba
tree37b93eec9839de8c16cbbd33c2057a792e78c165
parentc15d0a7521231c2cb71e664265e08d0ae514fc73
(bug 27283) SqlBagOStuff breaks PostgreSQL txns

* SqlBagOStuff should not turn off automatic transaction
    control just like that. Keep previous
    connection for PostgreSQL and SQLite

94633ff448e9253c5503124df6748be1fc26b8e2 introduced
    rollback on error to restore sanity
    for the connection. Don't do this
    if you are in the middle of INSERT IGNORE
    and we have a savepoint open.

    Making sure query syntax errors don't
    get silenced by our "wonderful" implementation
    of INSERT IGNORE is bug 35572.

Change-Id: I841b03895e1189c47307fefb1516c4c7c4102e25
RELEASE-NOTES-1.20
includes/db/Database.php
includes/db/DatabasePostgres.php
includes/objectcache/SqlBagOStuff.php