r1802: fix typos with pooled connections
[clsql.git] / sql / pool.cl
index 298f1e370890c2d8ad56b59ee3270bc14dd8fdcc..14efa2326ddbc6131e2faeb5a7967f3eeeab0e85 100644 (file)
@@ -7,7 +7,7 @@
 ;;;; Programmers:   Kevin M. Rosenberg
 ;;;; Date Started:  Apr 2002
 ;;;;
-;;;; $Id: pool.cl,v 1.1 2002/04/27 20:58:11 kevin Exp $
+;;;; $Id: pool.cl,v 1.2 2002/04/28 00:50:17 kevin Exp $
 ;;;;
 ;;;; This file, part of CLSQL, is Copyright (c) 2002 by Kevin M. Rosenberg
 ;;;;
 (defun find-or-create-conn-vector (connection-spec database-type)
   "Find connection vector in hash table, creates a new conn-vector if not found"
   (let* ((key (list connection-spec database-type))
-        (conn-vector (gethash *db-pool* key)))
+        (conn-vector (gethash key *db-pool*)))
     (unless conn-vector
       (setq conn-vector (make-conn-vector))
-      (setf (gethash *db-pool* key) conn-vector))
+      (setf (gethash key *db-pool*) conn-vector))
     conn-vector))
 
 (defun acquire-from-pool (connection-spec database-type)