From 444cf8df47e91799881e40ecfccdebedb5edbeca Mon Sep 17 00:00:00 2001 From: Lukas Eder Date: Mon, 7 Oct 2013 15:46:01 +0200 Subject: [PATCH] OSS / Commercial dual-licensing: Remove some commercial code sections from publicly available GitHub repository. --- jOOQ-test/.classpath | 15 +++++++------ .../src/org/jooq/test/jOOQAbstractTest.java | 22 ++++++++++--------- 2 files changed, 20 insertions(+), 17 deletions(-) diff --git a/jOOQ-test/.classpath b/jOOQ-test/.classpath index a2ce34c6be..de19a8cd2e 100644 --- a/jOOQ-test/.classpath +++ b/jOOQ-test/.classpath @@ -7,25 +7,26 @@ - + - - - - - - diff --git a/jOOQ-test/src/org/jooq/test/jOOQAbstractTest.java b/jOOQ-test/src/org/jooq/test/jOOQAbstractTest.java index 5f844876e0..f61aaf657f 100644 --- a/jOOQ-test/src/org/jooq/test/jOOQAbstractTest.java +++ b/jOOQ-test/src/org/jooq/test/jOOQAbstractTest.java @@ -174,7 +174,7 @@ import org.junit.BeforeClass; import org.junit.Test; import org.postgresql.util.PSQLException; -import com.microsoft.sqlserver.jdbc.SQLServerException; +// ... /** * The abstract test suite uses generic types to model the generated test schema @@ -358,15 +358,17 @@ public abstract class jOOQAbstractTest< continue; } } - - // There is no DROP ** IF EXISTS statement in SQL Server - else if (e.getClass().getName().startsWith("com.microsoft")) { - switch (((SQLServerException)e).getErrorCode()) { - case 3701: // Tables - case 218: // Types - continue; - } - } + + /* [pro] xx + xx xxxxx xx xx xxxx xx xx xxxxxx xxxxxxxxx xx xxx xxxxxx + xxxx xx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx x + xxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx x + xxxx xxxxx xx xxxxxx + xxxx xxxx xx xxxxx + xxxxxxxxx + x + x + xx [/pro] */ else if (e.getMessage().startsWith("Cannot drop")) { continue;