http://www.mediawiki.org/wiki/Special:Code/MediaWiki/70119

Revision: 70119
Author:   nikerabbit
Date:     2010-07-28 21:59:40 +0000 (Wed, 28 Jul 2010)

Log Message:
-----------
Explicitly set mysql charsets to binary if not using utf-8 schema.

Apparently some distros are setting utf-8 as the default, which
would cause sql query errors if not using utf-8 schema.

Modified Paths:
--------------
    trunk/phase3/includes/db/DatabaseMysql.php

Modified: trunk/phase3/includes/db/DatabaseMysql.php
===================================================================
--- trunk/phase3/includes/db/DatabaseMysql.php  2010-07-28 21:58:46 UTC (rev 
70118)
+++ trunk/phase3/includes/db/DatabaseMysql.php  2010-07-28 21:59:40 UTC (rev 
70119)
@@ -112,6 +112,8 @@
                                global $wgDBmysql5;
                                if( $wgDBmysql5 ) {
                                        $this->query( 'SET NAMES utf8', 
__METHOD__ );
+                               } else {
+                                       $this->query( 'SET NAMES binary', 
__METHOD__ );
                                }
                                // Set SQL mode, default is turning them all 
off, can be overridden or skipped with null
                                global $wgSQLMode;



_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to