X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=connect.lisp;h=e0495fc00fec45688f9ec9799703afb8e1e1d4de;hb=4a772392fd77659637f19c6d0b69584974a40074;hp=742d956fefef10ae7e74afec1e96501953d9731f;hpb=abbf89f03cec17db594badafbaee4f5e1400ba94;p=hyperobject.git diff --git a/connect.lisp b/connect.lisp index 742d956..e0495fc 100644 --- a/connect.lisp +++ b/connect.lisp @@ -1,4 +1,4 @@ -;;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Base: 10; Package: umlisp -*- +;;;; -- Mode: Lisp; Syntax: ANSI-Common-Lisp; Base: 10; Package: umlisp -*- ;;;; ************************************************************************* ;;;; FILE IDENTIFICATION ;;;; @@ -7,7 +7,7 @@ ;;;; Programmer: Kevin M. Rosenberg ;;;; Date Started: Apr 2000 ;;;; -;;;; $Id: connect.lisp,v 1.4 2003/06/06 21:59:29 kevin Exp $ +;;;; $Id$ ;;;; ;;;; This file is Copyright (c) 2000-2003 by Kevin M. Rosenberg ;;;; ************************************************************************* @@ -51,8 +51,8 @@ (defun sql-connect () "Connect to HO database, automatically used pooled connections" - (clsql:connect `(,(ho-sql-host) ,(ho-sql-db) ,(ho-sql-user) ,(ho-sql-passwd)) - :database-type *ho-sql-type* :pool t)) + (clsql:connect `(,(ho-sql-host) ,(ho-sql-db) ,(ho-sql-user) ,(ho-sql-passwd)) + :database-type *ho-sql-type* :pool t)) (defun sql-disconnect (conn) "Disconnect from HO database, but put connection back into pool" @@ -64,7 +64,7 @@ (defmacro with-sql-connection ((conn) &body body) `(let ((,conn (sql-connect))) (unwind-protect - (progn ,@body) + (progn ,@body) (when ,conn (clsql:disconnect :database ,conn))))) (defun sql-query (cmd conn &key (types :auto)) @@ -78,7 +78,7 @@ (defmacro with-mutex-sql ((conn) &body body) `(let ((,conn (sql-connect))) (unwind-protect - (progn ,@body) + (progn ,@body) (when ,conn (sql-disconnect ,conn))))) (defun mutex-sql-execute (cmd)