>
> 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?

AFAIK MySql does throw an exception if you try to start a transaction.  The exception 
is
thrown when connection.setAutocommit (false) is called.  I don't know any other 
databases
that does not support transactions.... I suppose it is the responsibility of the JDBC
driver to check this.

> 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.
>

~ Leon





------------------------------------------------------------
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