Re: Transactions in c.c.sql functions

2010-08-14 Thread Saul Hazledine
On Aug 13, 11:23 pm, Shantanu Kumar wrote: > > As far I understand, transactions belong to the user. The user should > decide what to execute under which transaction. By beginning > transaction inside these functions, is it assumed that the user can > wrap bigger constructs under her own transacti

Transactions in c.c.sql functions

2010-08-13 Thread Shantanu Kumar
Hi, While going through the clojure.contrib.sql sources I noticed at several places that a new transaction is started to execute the operation under. Case at hand: do-commands, do-prepared, update-or- insert-values. As far I understand, transactions belong to the user. The user should decide what