Skip to content

Commit

Permalink
[jan] Allow to specify port for PostgreSQL socket connections (Reques…
Browse files Browse the repository at this point in the history
…t #13250).
  • Loading branch information
yunosh committed Jun 11, 2014
1 parent 7d939ba commit 51efe6c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion framework/Core/lib/Horde/Config.php
Expand Up @@ -1194,6 +1194,9 @@ public function configSQL($ctx, $node = null, $switchname = 'driverconfig')
$node ? ($xpath->evaluate('string(configinteger[@name="port"])', $node) ?: 3306) : 3306
);

$pgsql_protocol = $protocol;
$pgsql_protocol['switch']['unix']['fields']['port'] = $port;

$charset = array(
'_type' => 'text',
'required' => true,
Expand Down Expand Up @@ -1378,7 +1381,7 @@ public function configSQL($ctx, $node = null, $switchname = 'driverconfig')
'fields' => array(
'username' => $username,
'password' => $password,
'protocol' => $protocol,
'protocol' => $pgsql_protocol,
'database' => $database,
'charset' => $charset,
'splitread' => $splitread,
Expand Down
4 changes: 2 additions & 2 deletions framework/Core/package.xml
Expand Up @@ -39,7 +39,7 @@
</stability>
<license uri="http://www.horde.org/licenses/lgpl21">LGPL-2.1</license>
<notes>
*
* [jan] Allow to specify port for PostgreSQL socket connections (Request #13250).
</notes>
<contents>
<dir baseinstalldir="/" name="/">
Expand Down Expand Up @@ -3433,7 +3433,7 @@
<date>2014-06-10</date>
<license uri="http://www.horde.org/licenses/lgpl21">LGPL-2.1</license>
<notes>
*
* [jan] Allow to specify port for PostgreSQL socket connections (Request #13250).
</notes>
</release>
</changelog>
Expand Down

0 comments on commit 51efe6c

Please sign in to comment.