2 messages in com.mysql.lists.javadetecting transaction support using jdbc
FromSent OnAttachments
Mike Traum14 Jan 2004 10:53 
Mark Matthews14 Jan 2004 13:25 
Subject:detecting transaction support using jdbc
From:Mike Traum (mtr@yahoo.com)
Date:01/14/2004 10:53:39 AM
List:com.mysql.lists.java

I'm trying to detect if the mysql connection supports transactions. I'm using DatabaseMetaData.supportsTransactions() to test if it supports transactions. The problem is that this is returning true even when I'm exclusively using MyISAM tables.

I'm assumming that this behavior is because the mysql database technically does support transactions. So, the question is how can I properly test for transaction support???

My only thought is to insert a row, do a rollback, and then test for that row. But, that's pretty ugly...

thanks, mike