cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r526560 - /cayenne/main/branches/STABLE-2.0/cayenne/cayenne-java/src/tests/java/org/apache/cayenne/unit/SybaseStackAdapter.java
Date Sun, 08 Apr 2007 14:03:51 GMT
Author: aadamchik
Date: Sun Apr  8 07:03:51 2007
New Revision: 526560

URL: http://svn.apache.org/viewvc?view=rev&rev=526560
Log:
fixing sybase unit tests to be able to run with tds driver

Modified:
    cayenne/main/branches/STABLE-2.0/cayenne/cayenne-java/src/tests/java/org/apache/cayenne/unit/SybaseStackAdapter.java

Modified: cayenne/main/branches/STABLE-2.0/cayenne/cayenne-java/src/tests/java/org/apache/cayenne/unit/SybaseStackAdapter.java
URL: http://svn.apache.org/viewvc/cayenne/main/branches/STABLE-2.0/cayenne/cayenne-java/src/tests/java/org/apache/cayenne/unit/SybaseStackAdapter.java?view=diff&rev=526560&r1=526559&r2=526560
==============================================================================
--- cayenne/main/branches/STABLE-2.0/cayenne/cayenne-java/src/tests/java/org/apache/cayenne/unit/SybaseStackAdapter.java
(original)
+++ cayenne/main/branches/STABLE-2.0/cayenne/cayenne-java/src/tests/java/org/apache/cayenne/unit/SybaseStackAdapter.java
Sun Apr  8 07:03:51 2007
@@ -24,6 +24,7 @@
 import java.sql.Statement;
 import java.util.ArrayList;
 import java.util.Collection;
+import java.util.Iterator;
 import java.util.List;
 
 import org.apache.cayenne.dba.DbAdapter;
@@ -59,7 +60,11 @@
 
     public void willDropTables(Connection con, DataMap map, Collection tablesToDrop)
             throws Exception {
-        super.willDropTables(con, map, tablesToDrop);
+
+        Iterator it = tablesToDrop.iterator();
+        while (it.hasNext()) {
+            dropConstraints(con, (String) it.next());
+        }
 
         Procedure proc = map.getProcedure("cayenne_tst_select_proc");
         if (proc != null && proc.getDataMap() == map) {



Mime
View raw message