cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r526561 - /cayenne/main/branches/STABLE-1.2/cayenne/cayenne-java/src/tests/java/org/objectstyle/cayenne/unit/SybaseStackAdapter.java
Date Sun, 08 Apr 2007 14:09:59 GMT
Author: aadamchik
Date: Sun Apr  8 07:09:58 2007
New Revision: 526561

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

Modified:
    cayenne/main/branches/STABLE-1.2/cayenne/cayenne-java/src/tests/java/org/objectstyle/cayenne/unit/SybaseStackAdapter.java

Modified: cayenne/main/branches/STABLE-1.2/cayenne/cayenne-java/src/tests/java/org/objectstyle/cayenne/unit/SybaseStackAdapter.java
URL: http://svn.apache.org/viewvc/cayenne/main/branches/STABLE-1.2/cayenne/cayenne-java/src/tests/java/org/objectstyle/cayenne/unit/SybaseStackAdapter.java?view=diff&rev=526561&r1=526560&r2=526561
==============================================================================
--- cayenne/main/branches/STABLE-1.2/cayenne/cayenne-java/src/tests/java/org/objectstyle/cayenne/unit/SybaseStackAdapter.java
(original)
+++ cayenne/main/branches/STABLE-1.2/cayenne/cayenne-java/src/tests/java/org/objectstyle/cayenne/unit/SybaseStackAdapter.java
Sun Apr  8 07:09:58 2007
@@ -60,6 +60,7 @@
 import java.sql.Statement;
 import java.util.ArrayList;
 import java.util.Collection;
+import java.util.Iterator;
 import java.util.List;
 
 import org.objectstyle.cayenne.dba.DbAdapter;
@@ -95,7 +96,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