[Database] Set bytea_output to match pg_unescape_bytea().
authorAaron Schulz <aschulz@wikimedia.org>
Sun, 3 Feb 2013 11:10:34 +0000 (03:10 -0800)
committerGerrit Code Review <gerrit@wikimedia.org>
Fri, 15 Feb 2013 04:01:50 +0000 (04:01 +0000)
commitaf08c2a9bff3a78998881735c729e33d3ebe88c2
tree624449dea3c975b6c6e303d8caf8ff9336922300
parentda85010db35d0090cd47b55ceb96a706312217c5
[Database] Set bytea_output to match pg_unescape_bytea().

* In newer versions of PG, a "hex" escaping format is used, which
  totally breaks things like SqlBagOStuff since the pg_unescape_bytea
  function still works the old way (it does not use a DB handle).
  Setting the format to the old way via SET fixes this.

Change-Id: I9f5a64922acd2d954880790f42ba4efafaed314e
includes/db/DatabasePostgres.php