cayenne-commits mailing list archives

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

URL: http://svn.apache.org/viewvc?view=rev&rev=551884
Log:
temp fix for unittests

Modified:
    cayenne/main/branches/STABLE-2.0/cayenne/cayenne-java/src/tests/java/org/apache/cayenne/unit/SQLServerStackAdapter.java
    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/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=551884&r1=551883&r2=551884
==============================================================================
--- 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:13:10 2007
@@ -42,6 +42,7 @@
     public void willDropTables(Connection conn, DataMap map, Collection tablesToDrop)
             throws Exception {
         dropConstraints(conn, map, tablesToDrop);
+        dropProcedures(conn, map);
     }
 
     // The code below was used with SQLServer <= 2005 to turn of autogenerated keys.

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=551884&r1=551883&r2=551884
==============================================================================
--- 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
Fri Jun 29 06:13:10 2007
@@ -66,6 +66,10 @@
             dropConstraints(con, (String) it.next());
         }
 
+        dropProcedures(con, map);  
+    }
+    
+    protected void dropProcedures(Connection con, DataMap map) throws Exception {
         Procedure proc = map.getProcedure("cayenne_tst_select_proc");
         if (proc != null && proc.getDataMap() == map) {
             executeDDL(con, "sybase", "drop-select-sp.sql");



Mime
View raw message