Commit 88b874fb authored by Slashbunny's avatar Slashbunny
parent e351fae6
...@@ -81,7 +81,7 @@ class Driver extends AbstractSQLAnywhereDriver ...@@ -81,7 +81,7 @@ class Driver extends AbstractSQLAnywhereDriver
* Build the connection string for given connection parameters and driver options. * Build the connection string for given connection parameters and driver options.
* *
* @param string $host Host address to connect to. * @param string $host Host address to connect to.
* @param integer $port Port to use for the connection (default to SQL Anywhere standard port 2683). * @param integer $port Port to use for the connection (default to SQL Anywhere standard port 2638).
* @param string $server Database server name on the host to connect to. * @param string $server Database server name on the host to connect to.
* SQL Anywhere allows multiple database server instances on the same host, * SQL Anywhere allows multiple database server instances on the same host,
* therefore specifying the server instance name to use is mandatory. * therefore specifying the server instance name to use is mandatory.
...@@ -94,7 +94,7 @@ class Driver extends AbstractSQLAnywhereDriver ...@@ -94,7 +94,7 @@ class Driver extends AbstractSQLAnywhereDriver
*/ */
private function buildDsn($host, $port, $server, $dbname, $username = null, $password = null, array $driverOptions = array()) private function buildDsn($host, $port, $server, $dbname, $username = null, $password = null, array $driverOptions = array())
{ {
$port = $port ?: 2683; $port = $port ?: 2638;
return return
'LINKS=tcpip(HOST=' . $host . ';PORT=' . $port . ';DoBroadcast=Direct)' . 'LINKS=tcpip(HOST=' . $host . ';PORT=' . $port . ';DoBroadcast=Direct)' .
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment