Jon Stevens wrote:
> [snip]
> Wait a second. If your database does not support transactions can we have
> the beginTransaction() code either throw an exception (preferred I think) or
> simply return a normal connection?

It should definitely not return a connection (or even null), since the
database in question wouldn't support transactions and shouldn't be
returning connections claiming they can.  :)

> The reason I state this is imagine you have a general use application that
> could run on multiple databases. If you are expecting transactions to work,
> then obviously it won't run on all databases and should probably throw a
> nice error if you attempt to use it on a database that doesn't support
> transactions.

+1, definitely.
-- 

Daniel Rall <[EMAIL PROTECTED]>


------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to