X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=sql%2Ftransactions.cl;h=693e7a5738e907eee5d9242debd2d94ffb7132d1;hb=37f3f502fad97eed3ae95ca5b3b99785c6b6ed4a;hp=7717162d604cbf833b427dd50903dfbb2a5ac782;hpb=6f8444535ae9010e955f12709543c1b3a5ebe6c9;p=clsql.git diff --git a/sql/transactions.cl b/sql/transactions.cl index 7717162..693e7a5 100644 --- a/sql/transactions.cl +++ b/sql/transactions.cl @@ -7,7 +7,7 @@ ;;;; Programmers: Marc Battyani ;;;; Date Started: Apr 2002 ;;;; -;;;; $Id: transactions.cl,v 1.3 2002/05/10 08:05:48 marc.battyani Exp $ +;;;; $Id: transactions.cl,v 1.4 2002/05/13 16:55:07 marc.battyani Exp $ ;;;; ;;;; This file, part of CLSQL, is Copyright (c) 2002 by Kevin M. Rosenberg ;;;; @@ -52,7 +52,7 @@ (map nil #'funcall (commit-hooks transaction))) (unwind-protect ;status is not :commited (execute-command "ROLLBACK" :database database) - (map nil #'funcall (rollback-hooks database)))))) + (map nil #'funcall (rollback-hooks transaction)))))) (warn "Continue without commit." 'clsql-simple-error :format-control "Cannot commit transaction against ~A because there is no transaction in progress." @@ -79,7 +79,7 @@ `(let ((,db ,database)) (unwind-protect (progn - (start-transaction ,db) + (database-start-transaction ,db) ,@body (commit-transaction ,db)) (database-end-transaction ,db)))))