// Replace 'server' with 'host' in PDO DSN #PSFV-442
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13245 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
1259433a28
commit
ecc49b160e
1 file changed
+2
-2
@@ -43,10 +43,10 @@ class DbPDOCore extends Db
|
|||||||
if (strpos($this->server, ':') !== false)
|
if (strpos($this->server, ':') !== false)
|
||||||
{
|
{
|
||||||
list($server, $port) = explode(':', $this->server);
|
list($server, $port) = explode(':', $this->server);
|
||||||
$dsn .= ';server='.$server.';port='.$port;
|
$dsn .= ';host='.$server.';port='.$port;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
$dsn .= ';server='.$this->server;
|
$dsn .= ';host='.$this->server;
|
||||||
|
|
||||||
$this->link = new PDO($dsn, $this->user, $this->password);
|
$this->link = new PDO($dsn, $this->user, $this->password);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user