r6292: updates for connection string
authorKevin M. Rosenberg <kevin@rosenberg.net>
Sat, 6 Sep 2003 03:49:44 +0000 (03:49 +0000)
committerKevin M. Rosenberg <kevin@rosenberg.net>
Sat, 6 Sep 2003 03:49:44 +0000 (03:49 +0000)
db-postgresql/postgresql-sql.lisp
debian/changelog

index a199ba5494c7be6e2906d58a8bef8768e918d066..ac13a3054deb0e178d2e9a4a0af496e911f94041 100644 (file)
   (destructuring-bind (host db user password &optional port options tty)
       connection-spec
     (declare (ignore password options tty))
-    (concatenate 'string host (if port ":") (if port port) "/" db "/" user)))
+    (concatenate 'string 
+      (etypecase host
+       (pathname (namestring host))
+       (string host))
+      (when port 
+       (concatenate 'string
+                    ":"
+                    (etypecase port
+                      (integer (write-to-string port))
+                      (string port))))
+      "/" db "/" user)))
 
 
 (defmethod database-connect (connection-spec (database-type (eql :postgresql)))
index babf461bd388b59ba6a02970d6334aa17c8950a5..1ba91259922703cd47fbe8eb65c078aa247da935 100644 (file)
@@ -1,3 +1,9 @@
+cl-sql (1.7.6-1) unstable; urgency=low
+
+  * Fix connection string (closes: 208610)
+
+ -- Kevin M. Rosenberg <kmr@debian.org>  Thu,  4 Sep 2003 15:03:53 -0600
+
 cl-sql (1.7.5-1) unstable; urgency=low
 
   * Another fix for previous bug (closes: 207813)