bug35572 Blocks appear to succeed w/DB error
authorsaper <saper@saper.info>
Fri, 30 Mar 2012 03:06:43 +0000 (05:06 +0200)
committerBrion Vibber <brion@pobox.com>
Tue, 10 Apr 2012 19:59:24 +0000 (12:59 -0700)
commit632fdd375998bb87802bd698a3dc325498d2c365
treebced89b7ac6a98cfcad8a9590b7db586ebf945fc
parent0a792a1dcba26dd70d64e307b301c6773279cfc9
bug35572 Blocks appear to succeed w/DB error

Bug 35572 - Blocks appear to succeed even if query fails due to wrong DB
structure

When emulating INSERT IGNORE ignore only SQL Error Code 23505
- unique key violation

http://www.postgresql.org/docs/9.1/interactive/errcodes-appendix.html

All other error codes (missing column, syntex error, whatever)
should unconditionally abort the transaction and show internal
error to the user.

Patchset 2: Fixed whitespace.
Patchset 3: More whitespace. And ()'s.
Patchset 4: Yet more whitespace.
Patchset 5: rebase & fix conflict in release-notes

Change-Id: Ic32bff9fff46bce124273156d224fa01b8adc008
RELEASE-NOTES-1.20
includes/db/DatabasePostgres.php