-If pool is t the the connection will be taken from the general pool,
-if pool is a conn-pool object the connection will be taken from this pool.
-The connection is automatically closed or released to the pool
-on exit from the body."
- `(let ((,db-var (connect ,connection-spec :pool ,pool ,@connect-args)))
- (unwind-protect
- (progn
- ,@body)
- (disconnect :database ,db-var :poool ,pool))))
+The connection is automatically closed or released to the pool on exit from the body."
+ `(let ((,db-var (connect ,connection-spec ,@connect-args)))
+ (unwind-protect
+ (let ((,db-var ,db-var)) ,@body)
+ (disconnect :database ,db-var))))