cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r551883 - in /cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/unit: SQLServerStackAdapter.java SybaseStackAdapter.java
Date Fri, 29 Jun 2007 13:11:54 GMT
Author: aadamchik
Date: Fri Jun 29 06:11:53 2007
New Revision: 551883

URL: http://svn.apache.org/viewvc?view=rev&rev=551883
Log:
sqlserver testing
* fixing procedure drop call

Modified:
    cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/unit/SQLServerStackAdapter.java
    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/SQLServerStackAdapter.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/unit/SQLServerStackAdapter.java?view=diff&rev=551883&r1=551882&r2=551883
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/unit/SQLServerStackAdapter.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/unit/SQLServerStackAdapter.java
Fri Jun 29 06:11:53 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/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=551883&r1=551882&r2=551883
==============================================================================
--- 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
Fri Jun 29 06:11:53 2007
@@ -67,6 +67,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