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:
Ingo Schommer 2010-10-15 03:09:49 +00:00
parent 6ee6ab4ee7
commit 6bf8fad460

View File

@ -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 . "'");