Vergleich inc/AbstractPdoDbDriver.php - 1.8.27 - 1.8.30

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 178Zeile 178
			}
}


			}
}


		$this->db_encoding = $config['encoding'];



		if (isset($config['encoding'])) {
$this->db_encoding = $config['encoding'];
}


// Actually connect to the specified servers
foreach (array('read', 'write') as $type) {


// Actually connect to the specified servers
foreach (array('read', 'write') as $type) {

Zeile 264Zeile 266

$this->database = $config['database'];



$this->database = $config['database'];


		if (version_compare('PHP_VERSION', '5.3.6', '<') === true) {

		if (version_compare(PHP_VERSION, '5.3.6', '<') === true) {

			// character set in DSN was ignored before PHP 5.3.6, so we must SET NAMES
$this->setCharacterSet($this->db_encoding);
}

			// character set in DSN was ignored before PHP 5.3.6, so we must SET NAMES
$this->setCharacterSet($this->db_encoding);
}

Zeile 334Zeile 336
	 */
public function setCharacterSet($characterSet)
{

	 */
public function setCharacterSet($characterSet)
{

		$query = "SET NAMES {$characterSet}";

		$query = "SET NAMES '{$characterSet}'";


self::execIgnoreError($this->read_link, $query);



self::execIgnoreError($this->read_link, $query);