Re: patch: postgresql-socket under clisp
"Marko Kocić" <[email protected]> Wed, 10 May 2006 12:49:37 +0200
| Newsgroups | gmane.lisp.clsql.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi,
Add the following function to postgresql-socket-api.lisp to enable it
to work under CLisp. I tested it with clisp-2.38 and postgresql-8.1 on
windows.
#+clisp
(defun open-postgresql-socket-stream (host port)
(etypecase host
(pathname
(error "Not supported"))
(string
(socket:socket-connect
port host
:element-type '(unsigned-byte 8)
:timeout *postgresql-server-socket-timeout*))))
Thanks,
Marko