aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/db/mysql.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2009-03-16 17:08:28 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2009-03-16 17:08:28 +0000
commit272cde82514dbaa547e584b9c59824f6fc4133c8 (patch)
treef2be507707f32ddcd14200e251f36e6afb450391 /phpBB/includes/db/mysql.php
parentd4b33ccac0dc3855bf46da2c1ddcf503e8c105de (diff)
downloadforums-272cde82514dbaa547e584b9c59824f6fc4133c8.tar
forums-272cde82514dbaa547e584b9c59824f6fc4133c8.tar.gz
forums-272cde82514dbaa547e584b9c59824f6fc4133c8.tar.bz2
forums-272cde82514dbaa547e584b9c59824f6fc4133c8.tar.xz
forums-272cde82514dbaa547e584b9c59824f6fc4133c8.zip
Set connection encoding for MySQL versions 4.1.0 to 4.1.2. This may fix some conversion issues with special characters. (Bug #41805)
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9378 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/db/mysql.php')
-rw-r--r--phpBB/includes/db/mysql.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/db/mysql.php b/phpBB/includes/db/mysql.php
index 080f3d541a..c03b38708c 100644
--- a/phpBB/includes/db/mysql.php
+++ b/phpBB/includes/db/mysql.php
@@ -51,7 +51,7 @@ class dbal_mysql extends dbal
if (@mysql_select_db($this->dbname, $this->db_connect_id))
{
// Determine what version we are using and if it natively supports UNICODE
- if (version_compare($this->sql_server_info(true), '4.1.3', '>='))
+ if (version_compare($this->sql_server_info(true), '4.1.0', '>='))
{
@mysql_query("SET NAMES 'utf8'", $this->db_connect_id);
@@ -341,7 +341,7 @@ class dbal_mysql extends dbal
return $data;
}
-
+
/**
* return sql error array
* @access private