1
0
mirror of synced 2025-01-18 14:31:40 +03:00

fixed dsn bug (if port given pdo wants it to be added as

port=12345; to dsn not :12345)
This commit is contained in:
ppetermann 2007-10-12 12:25:13 +00:00
parent 97a1552c41
commit 2621996cb2

View File

@ -362,7 +362,7 @@ class Doctrine_Manager extends Doctrine_Configurable implements Countable, Itera
}
$parts['dsn'] = $parts['scheme'] . ':host='
. $parts['host'] . (isset($parts['port']) ? ':' . $parts['port']:null) . ';dbname='
. $parts['host'] . (isset($parts['port']) ? ';port=' . $parts['port']:null) . ';dbname='
. $parts['database'];
break;