a with-transaction question

Aleksandar Bakic <a_bakic-/[email protected]> Sun, 15 Jan 2006 16:45:23 -0800 (PST)
Newsgroups gmane.lisp.clsql.devel
Message-ID <[email protected]>
Hi,

I am getting a warning from the postgres backend that some code is entering
(via with-transaction) nested transactions. I looked at transaction.lisp and
was puzzled by the fact that the with-transaction macro does not check for this
situation, unlike start-transaction function, for example. What is the pattern
here: should I call in-transaction-p myself or do something else to avoid
nested transactions? Besides the warning, the checks of transaction-level at
several places use only (= 1 transaction-level), so I am not confident nested
transactions are safe.

Thanks,
Alex

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com