mirror of
https://github.com/friendica/friendica
synced 2024-12-23 03:20:15 +00:00
XMerge branch '6606-k-alin-mysql-unix-socket' of github.com:k-alin/friendica into 6606-k-alin-mysql-unix-socket
This commit is contained in:
commit
cbbe83294d
1 changed files with 4 additions and 4 deletions
|
@ -136,11 +136,11 @@ class Database
|
|||
$connect .= ";charset=" . $charset;
|
||||
}
|
||||
|
||||
if ($socket) {
|
||||
$connect .= ";$unix_socket=" . $socket;
|
||||
}
|
||||
if ($socket) {
|
||||
$connect .= ";$unix_socket=" . $socket;
|
||||
}
|
||||
|
||||
try {
|
||||
try {
|
||||
$this->connection = @new PDO($connect, $user, $pass, [PDO::ATTR_PERSISTENT => $persistent]);
|
||||
$this->connection->setAttribute(PDO::ATTR_EMULATE_PREPARES, $this->pdo_emulate_prepares);
|
||||
$this->connection->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_SILENT);
|
||||
|
|
Loading…
Reference in a new issue