Index: trunk/phase3/includes/db/DatabasePostgres.php |
— | — | @@ -200,6 +200,7 @@ |
201 | 201 | $this->query( "SET client_encoding='UTF8'", __METHOD__ ); |
202 | 202 | $this->query( "SET datestyle = 'ISO, YMD'", __METHOD__ ); |
203 | 203 | $this->query( "SET timezone = 'GMT'", __METHOD__ ); |
| 204 | + $this->query( "SET standard_conforming_strings = on", __METHOD__ ); |
204 | 205 | |
205 | 206 | global $wgDBmwschema; |
206 | 207 | if ( $this->schemaExists( $wgDBmwschema ) ) { |
— | — | @@ -878,11 +879,7 @@ |
879 | 880 | } elseif ( is_bool( $s ) ) { |
880 | 881 | return intval( $s ); |
881 | 882 | } elseif ( $s instanceof Blob ) { |
882 | | - $ret = "'" . $s->fetch( $s ) . "'"; |
883 | | - if ( $this->numeric_version >= 8.1 ) { |
884 | | - $ret = "E$ret"; |
885 | | - } |
886 | | - return $ret; |
| 883 | + return "'" . $s->fetch( $s ) . "'"; |
887 | 884 | } |
888 | 885 | return "'" . pg_escape_string( $this->mConn, $s ) . "'"; |
889 | 886 | } |