1
0
mirror of synced 2025-01-31 04:21:44 +03:00
This commit is contained in:
zYne 2007-04-03 21:28:06 +00:00
parent b47381df1c
commit 1af2164b19

View File

@ -355,6 +355,11 @@ class Doctrine_Db implements Countable, IteratorAggregate, Doctrine_Adapter_Inte
throw new Doctrine_Db_Exception('No hostname set in data source name');
}
$parts['dsn'] = $parts["scheme"].":host=".$parts["host"].";dbname=".$parts["database"];
if (isset($parts['port'])) {
// append port to dsn if supplied
$parts['dsn'] .= ';port=' . $parts['port'];
}
break;
default:
throw new Doctrine_Db_Exception('Unknown driver '.$parts['scheme']);