http://www.mediawiki.org/wiki/Special:Code/MediaWiki/100162
Revision: 100162
Author: mah
Date: 2011-10-18 21:09:52 +0000 (Tue, 18 Oct 2011)
Log Message:
-----------
revert r99562 and set standard_conforming_strings
?\226?\128?\156on?\226?\128?\157 by default
Modified Paths:
--------------
trunk/phase3/includes/db/DatabasePostgres.php
Modified: trunk/phase3/includes/db/DatabasePostgres.php
===================================================================
--- trunk/phase3/includes/db/DatabasePostgres.php 2011-10-18 21:06:23 UTC
(rev 100161)
+++ trunk/phase3/includes/db/DatabasePostgres.php 2011-10-18 21:09:52 UTC
(rev 100162)
@@ -200,6 +200,7 @@
$this->query( "SET client_encoding='UTF8'", __METHOD__ );
$this->query( "SET datestyle = 'ISO, YMD'", __METHOD__ );
$this->query( "SET timezone = 'GMT'", __METHOD__ );
+ $this->query( "SET standard_conforming_strings = on",
__METHOD__ );
global $wgDBmwschema;
if ( $this->schemaExists( $wgDBmwschema ) ) {
@@ -878,11 +879,7 @@
} elseif ( is_bool( $s ) ) {
return intval( $s );
} elseif ( $s instanceof Blob ) {
- $ret = "'" . $s->fetch( $s ) . "'";
- if ( $this->numeric_version >= 8.1 ) {
- $ret = "E$ret";
- }
- return $ret;
+ return "'" . $s->fetch( $s ) . "'";
}
return "'" . pg_escape_string( $this->mConn, $s ) . "'";
}
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs