Fixed JTDS / SQL Server test bug

This commit is contained in:
Lukas Eder 2013-09-20 12:23:30 +02:00
parent f5f70071af
commit 9012b07692

View File

@ -458,7 +458,9 @@ public abstract class jOOQAbstractTest<
// Issue a log dump on adaptive server. Don't know why this is needed
// http://www.faqs.org/faqs/databases/sybase-faq/part6/
if (connection.getClass().getPackage().getName().contains("jtds")) {
if (connection.getClass().getPackage().getName().contains("jtds") &&
!connection.getMetaData().getURL().contains("sqlserver")) {
log.info("RUNNING", "dump tran TEST with truncate_only");
connection.createStatement().execute("dump tran TEST with truncate_only");
}