mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-06 15:45:34 +02: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
@ -35,6 +35,11 @@ class dbal_mssql extends dbal
|
|||||||
$this->server = $sqlserver . (($port) ? ':' . $port : '');
|
$this->server = $sqlserver . (($port) ? ':' . $port : '');
|
||||||
$this->dbname = $database;
|
$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);
|
$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 != '')
|
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('');
|
return ($this->db_connect_id) ? $this->db_connect_id : $this->sql_error('');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user