Re: [Patch] Update view-database only if the transaction succeeded
Kevin Rosenberg <kevin-HJRc7zDS/[email protected]> Wed, 12 Sep 2007 14:15:34 -0600
| Newsgroups | gmane.lisp.clsql.devel |
|---|---|
| Message-ID | <[email protected]> |
Saurabh Nanda wrote: > No. I thought of that. *transaction-insert-list* is bound only when > you're using the with-transaction macro. However, someone may use > start-transaction/commit/rollback separately which is going to break > everything. If and only if the dynamic context for > *transaction-insert-list* is set, should we push objects into it. I see. So, only by using with-transaction (and not with start-transaction/rollback) will one have support for rolling-back the database slots of the objects. If using with-transaction buys the user better rollback support than available by using the individual transaction functions, that should go in the documentation as well. -- Kevin Rosenberg [email protected]