X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=base%2Ftransaction.lisp;fp=base%2Ftransaction.lisp;h=fa4f7523fd72af0c4cea3c72a2ae33ef99703fa4;hb=0cd76c40b5906d3c5142796d6aa6b28da76c3a0a;hp=da03282c811ce3e644b1adbd7aed8689fdd81aa3;hpb=8fee52665a2b1a8a017dda64ef08bfd0fe4c845e;p=clsql.git diff --git a/base/transaction.lisp b/base/transaction.lisp index da03282..fa4f752 100644 --- a/base/transaction.lisp +++ b/base/transaction.lisp @@ -63,7 +63,7 @@ :format-arguments (list database)))) -(defmacro with-transaction ((&key (database *default-database*)) &rest body) +(defmacro with-transaction ((&key (database '*default-database*)) &rest body) "Executes BODY within a transaction for DATABASE (which defaults to *DEFAULT-DATABASE*). The transaction is committed if the body finishes successfully (without aborting or throwing), otherwise the database is