X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=base%2Ftransaction.lisp;h=fa4f7523fd72af0c4cea3c72a2ae33ef99703fa4;hb=d99b4d5629f3a7866356bc4201260f41f70e9534;hp=da03282c811ce3e644b1adbd7aed8689fdd81aa3;hpb=d8cc56b3f55e00fda2afffe8dae7d158bf33e2d8;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