Duplicating fix from [3373]

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3375 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
nate 2006-08-06 22:51:59 +00:00
parent f2a89197e2
commit 0f69646186

View file

@ -123,10 +123,17 @@ class DboMssql extends DboSource {
$config = $this->config;
$connect = $config['connect'];
$os = env('OS');
if (!empty($os) && strpos($os, 'Windows') !== false) {
$sep = ',';
} else {
$sep = ':';
}
$this->connected = false;
if (is_numeric($config['port'])) {
$port = ':' . $config['port']; // Port number
$port = $sep . $config['port']; // Port number
} elseif ($config['port'] === null) {
$port = ''; // No port - SQL Server 2005
} else {