X-Git-Url: http://git.kpe.io/?p=clsql.git;a=blobdiff_plain;f=db-postgresql-socket%2Fpostgresql-socket-sql.lisp;h=176dfcb7ff5ce041ad1421bada3f9516440e6151;hp=acd93c3a17fbde618fb9461e1e87ff20d2cc0bf3;hb=bada52b7a8fd2cc484dee33cccd64ca09a52ec3d;hpb=7d50938ba2db52a713498e49aa1679deae6f0b6b diff --git a/db-postgresql-socket/postgresql-socket-sql.lisp b/db-postgresql-socket/postgresql-socket-sql.lisp index acd93c3..176dfcb 100644 --- a/db-postgresql-socket/postgresql-socket-sql.lisp +++ b/db-postgresql-socket/postgresql-socket-sql.lisp @@ -8,7 +8,7 @@ ;;;; Original code by Pierre R. Mai ;;;; Date Started: Feb 2002 ;;;; -;;;; $Id: postgresql-socket-sql.lisp,v 1.1 2002/09/30 10:19:23 kevin Exp $ +;;;; $Id$ ;;;; ;;;; This file, part of CLSQL, is Copyright (c) 2002 by Kevin M. Rosenberg ;;;; and Copyright (c) 1999-2001 by Pierre R. Mai @@ -30,11 +30,6 @@ ;; interface foreign library loading routines -(defmethod database-type-library-loaded ((database-type (eql :postgresql-socket))) - t) - -(defmethod clsql-base-sys:database-type-load-foreign ((database-type (eql :postgresql-socket))) - t) (clsql-base-sys:database-type-load-foreign :postgresql-socket) @@ -155,7 +150,17 @@ doesn't depend on UFFI." (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-socket)))