postgresql-socket3: Handle unix sockets db names
authorJavier Olaechea <pirata@gmail.com>
Fri, 15 Jan 2016 14:13:05 +0000 (09:13 -0500)
committerRuss Tyndall <russ@acceleration.net>
Sun, 17 Jan 2016 17:35:10 +0000 (12:35 -0500)
  The keyword :unix is a valid host designator. If a keyword different
  from unix is used cl-postgres will raise an error so checking for type
  keyword suffices to assume "unix" as a name.

db-postgresql-socket3/sql.lisp

index 01816379e71a68da3f7d82c0714bad974b756a19..3172e6dbd7b2881aaebc1f9c2008fe1aa6aa1eeb 100644 (file)
       (etypecase host
         (null
          "localhost")
+        (keyword "unix")
         (pathname (namestring host))
         (string host))
       (when port