[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [15431] API: more on db
From: |
sigurdne |
Subject: |
[Fmsystem-commits] [15431] API: more on db |
Date: |
Mon, 8 Aug 2016 12:30:42 +0000 (UTC) |
Revision: 15431
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=15431
Author: sigurdne
Date: 2016-08-08 12:30:41 +0000 (Mon, 08 Aug 2016)
Log Message:
-----------
API: more on db
Modified Paths:
--------------
trunk/phpgwapi/inc/class.db_adodb.inc.php
Modified: trunk/phpgwapi/inc/class.db_adodb.inc.php
===================================================================
--- trunk/phpgwapi/inc/class.db_adodb.inc.php 2016-08-08 08:27:52 UTC (rev
15430)
+++ trunk/phpgwapi/inc/class.db_adodb.inc.php 2016-08-08 12:30:41 UTC (rev
15431)
@@ -133,7 +133,14 @@
break;
case 'mssql':
$type = 'odbc_mssql';
- $dsn = "Driver={SQL
Server};Server={$this->Host};Database={$this->Database};";
+ /*"FreeTDS" has to be defined in
/etc/odbcinst.ini
+ *
http://www.bictor.com/2014/05/13/configure-unixodbc-for-ubuntu-14-04-using-freetds/
+ */
+ $dsn =
"Driver={FreeTDS};Server={$this->Host};Database={$this->Database}";
+ if($this->Port)
+ {
+ $dsn .= ";Port={$this->Port}";
+ }
break;
case 'oci8':
case 'oracle':
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [15431] API: more on db,
sigurdne <=