cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r526558 - /cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/unit/SybaseStackAdapter.java
Date Sun, 08 Apr 2007 13:55:28 GMT
Author: aadamchik
Date: Sun Apr  8 06:55:28 2007
New Revision: 526558

URL: http://svn.apache.org/viewvc?view=rev&rev=526558
Log:
fixing sybase test case helper - this pending a more generic CAY-116 fix

Modified:
    cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/unit/SybaseStackAdapter.java

Modified: cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/unit/SybaseStackAdapter.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/unit/SybaseStackAdapter.java?view=diff&rev=526558&r1=526557&r2=526558
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/unit/SybaseStackAdapter.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/unit/SybaseStackAdapter.java
Sun Apr  8 06:55:28 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;
@@ -60,7 +61,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