Page MenuHomePhabricator

Database.php:Avoid unsuccessful login query
Closed, ResolvedPublic

Description

Author: weiyu

Description:

Index: Database.php

RCS file: /cvsroot/wikipedia/phase3/includes/Database.php,v
retrieving revision 1.139
diff -u -r1.139 Database.php

  • Database.php 22 Dec 2005 06:30:39 -0000 1.139

+++ Database.php 24 Dec 2005 19:35:15 -0000
@@ -301,13 +301,13 @@

if ( !$success ) {
        $this->reportConnectionError();
  • } -
  • global $wgDBmysql5;
  • if( $wgDBmysql5 ) {
  • // Tell the server we're communicating with it in

UTF-8.

  • // This may engage various charset conversions.
  • $this->query( 'SET NAMES utf8' );

+ } else {
+ global $wgDBmysql5;
+ if( $wgDBmysql5 ) {
+ Tell the server we're communicating with
it in UTF-8.
+
This may engage various charset
conversions.
+ $this->query( 'SET NAMES utf8' );
+ }

}

$this->mOpened = $success;

Version: 1.5.x
Severity: normal
OS: FreeBSD
Platform: PC

Details

Reference
bz4380

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:01 PM
bzimport set Reference to bz4380.
bzimport added a subscriber: Unknown Object (MLST).