r10868: Automated commit for Debian build of clsql upstream-version-3.5.3
[clsql.git] / db-postgresql-socket / postgresql-socket-api.lisp
index 66b2912a9f84291e8124e612850ac7e88d972804..94d33f1d4c093b3ddf50cdfa3f12f1620f0a8489 100644 (file)
@@ -334,10 +334,14 @@ socket interface"
   (etypecase host
     (pathname
      ;; Directory to unix-domain socket
-     (sb-bsd-sockets:socket-connect
-      (namestring
-       (make-pathname :name ".s.PGSQL" :type (princ-to-string port)
-                     :defaults host))))
+     (let ((sock (make-instance 'sb-bsd-sockets:local-socket
+                               :type :stream)))
+       (sb-bsd-sockets:socket-connect
+        sock
+        (namestring
+         (make-pathname :name ".s.PGSQL" :type (princ-to-string port)
+                        :defaults host)))
+       sock))
     (string
      (let ((sock (make-instance 'sb-bsd-sockets:inet-socket
                                :type :stream