cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r551879 - in /cayenne/main/branches/STABLE-2.0/cayenne/cayenne-java/src/tests/java/org/apache/cayenne/unit: AccessStackAdapter.java SQLServerStackAdapter.java
Date Fri, 29 Jun 2007 13:02:58 GMT
Author: aadamchik
Date: Fri Jun 29 06:02:57 2007
New Revision: 551879

URL: http://svn.apache.org/viewvc?view=rev&rev=551879
Log:
CAY-116 - temp fix for unittests

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

Modified: cayenne/main/branches/STABLE-2.0/cayenne/cayenne-java/src/tests/java/org/apache/cayenne/unit/AccessStackAdapter.java
URL: http://svn.apache.org/viewvc/cayenne/main/branches/STABLE-2.0/cayenne/cayenne-java/src/tests/java/org/apache/cayenne/unit/AccessStackAdapter.java?view=diff&rev=551879&r1=551878&r2=551879
==============================================================================
--- cayenne/main/branches/STABLE-2.0/cayenne/cayenne-java/src/tests/java/org/apache/cayenne/unit/AccessStackAdapter.java
(original)
+++ cayenne/main/branches/STABLE-2.0/cayenne/cayenne-java/src/tests/java/org/apache/cayenne/unit/AccessStackAdapter.java
Fri Jun 29 06:02:57 2007
@@ -76,6 +76,11 @@
      */
     public void willDropTables(Connection conn, DataMap map, Collection tablesToDrop)
             throws Exception {
+        dropConstraints(conn, map, tablesToDrop);
+    }
+
+    protected void dropConstraints(Connection conn, DataMap map, Collection tablesToDrop)
+            throws Exception {
 
         if (adapter.supportsFkConstraints()) {
             Map constraintsMap = getConstraints(conn, map, tablesToDrop);

Modified: cayenne/main/branches/STABLE-2.0/cayenne/cayenne-java/src/tests/java/org/apache/cayenne/unit/SQLServerStackAdapter.java
URL: http://svn.apache.org/viewvc/cayenne/main/branches/STABLE-2.0/cayenne/cayenne-java/src/tests/java/org/apache/cayenne/unit/SQLServerStackAdapter.java?view=diff&rev=551879&r1=551878&r2=551879
==============================================================================
--- cayenne/main/branches/STABLE-2.0/cayenne/cayenne-java/src/tests/java/org/apache/cayenne/unit/SQLServerStackAdapter.java
(original)
+++ cayenne/main/branches/STABLE-2.0/cayenne/cayenne-java/src/tests/java/org/apache/cayenne/unit/SQLServerStackAdapter.java
Fri Jun 29 06:02:57 2007
@@ -19,7 +19,11 @@
 
 package org.apache.cayenne.unit;
 
+import java.sql.Connection;
+import java.util.Collection;
+
 import org.apache.cayenne.dba.DbAdapter;
+import org.apache.cayenne.map.DataMap;
 
 /**
  * @author Andrei Adamchik
@@ -33,6 +37,11 @@
 
     public boolean handlesNullVsEmptyLOBs() {
         return true;
+    }
+
+    public void willDropTables(Connection conn, DataMap map, Collection tablesToDrop)
+            throws Exception {
+        dropConstraints(conn, map, tablesToDrop);
     }
 
     // The code below was used with SQLServer <= 2005 to turn of autogenerated keys.



Mime
View raw message