mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
only works if you do it _before_ the connect :P
git-svn-id: file:///svn/phpbb/trunk@6704 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
d63ccbe8ac
commit
1f7224c601
1 changed files with 5 additions and 5 deletions
|
@ -35,6 +35,11 @@ class dbal_mssql extends dbal
|
|||
$this->server = $sqlserver . (($port) ? ':' . $port : '');
|
||||
$this->dbname = $database;
|
||||
|
||||
if (ini_get('mssql.charset'))
|
||||
{
|
||||
ini_set('mssql.charset', 'UTF-8');
|
||||
}
|
||||
|
||||
$this->db_connect_id = ($this->persistency) ? @mssql_pconnect($this->server, $this->user, $sqlpassword) : @mssql_connect($this->server, $this->user, $sqlpassword);
|
||||
|
||||
if ($this->db_connect_id && $this->dbname != '')
|
||||
|
@ -46,11 +51,6 @@ class dbal_mssql extends dbal
|
|||
}
|
||||
}
|
||||
|
||||
if (ini_get('mssql.charset'))
|
||||
{
|
||||
ini_set('mssql.charset', 'UTF-8');
|
||||
}
|
||||
|
||||
return ($this->db_connect_id) ? $this->db_connect_id : $this->sql_error('');
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue