X-Git-Url: http://git.kpe.io/?p=hyperobject.git;a=blobdiff_plain;f=connect.lisp;h=e0495fc00fec45688f9ec9799703afb8e1e1d4de;hp=7f5238ac7cd7af555887a8053d74e70386b5edeb;hb=a88591e62595d2d25d5e6cfd29064d107c8b6b73;hpb=96a781aaa475ef17ee4cf6cea64b670e8bd3d3e2 diff --git a/connect.lisp b/connect.lisp index 7f5238a..e0495fc 100644 --- a/connect.lisp +++ b/connect.lisp @@ -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)