mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR: force exclusive connection (from r107175)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@112551 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
6ee6ab4ee7
commit
6bf8fad460
@ -54,7 +54,7 @@ class MySQLDatabase extends SS_Database {
|
||||
* - timezone: (optional) the timezone offset, eg: +12:00 for NZ time
|
||||
*/
|
||||
public function __construct($parameters) {
|
||||
$this->dbConn = mysql_connect($parameters['server'], $parameters['username'], $parameters['password']);
|
||||
$this->dbConn = mysql_connect($parameters['server'], $parameters['username'], $parameters['password'], true);
|
||||
|
||||
if(self::$connection_charset) {
|
||||
$this->query("SET CHARACTER SET '" . self::$connection_charset . "'");
|
||||
|
Loading…
Reference in New Issue
Block a user