From 2621996cb2b9a2d510cc5ae1f62354bea22804f0 Mon Sep 17 00:00:00 2001 From: ppetermann Date: Fri, 12 Oct 2007 12:25:13 +0000 Subject: [PATCH] fixed dsn bug (if port given pdo wants it to be added as port=12345; to dsn not :12345) --- lib/Doctrine/Manager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Doctrine/Manager.php b/lib/Doctrine/Manager.php index 6deac4579..ebb0a5e1d 100644 --- a/lib/Doctrine/Manager.php +++ b/lib/Doctrine/Manager.php @@ -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;