cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r504909 - in /cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/unit: DB2StackAdapter.java OracleStackAdapter.java SybaseStackAdapter.java
Date Thu, 08 Feb 2007 14:28:37 GMT
Author: aadamchik
Date: Thu Feb  8 06:28:36 2007
New Revision: 504909

URL: http://svn.apache.org/viewvc?view=rev&rev=504909
Log:
CAY-750 Stored procedures without parameters fail on Postgres 8
(unit tests for other dbs)

Modified:
    cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/unit/DB2StackAdapter.java
    cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/unit/OracleStackAdapter.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/DB2StackAdapter.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/unit/DB2StackAdapter.java?view=diff&rev=504909&r1=504908&r2=504909
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/unit/DB2StackAdapter.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/unit/DB2StackAdapter.java
Thu Feb  8 06:28:36 2007
@@ -50,35 +50,4 @@
     public boolean supportsStoredProcedures() {
         return false;
     }
-
-  /*  public void createdTables(Connection con, DataMap map) throws Exception {
-        executeDDL(con, super.ddlFile("db2", "create-update-sp.sql"));
-        executeDDL(con, super.ddlFile("db2", "create-out-sp.sql"));
-        executeDDL(con, super.ddlFile("db2", "create-select-sp.sql"));
-    }
-
-    public void willDropTables(Connection con, DataMap map) throws Exception {
-        // still have to figure out how to safely drop procedures
-
-        try {
-            executeDDL(con, super.ddlFile("db2", "drop-select-sp.sql"));
-        }
-        catch (SQLException ex) {
-            logObj.info("Can't drop procedure, ignoring.", ex);
-        }
-
-        try {
-            executeDDL(con, super.ddlFile("db2", "drop-update-sp.sql"));
-        }
-        catch (SQLException ex) {
-            logObj.info("Can't drop procedure, ignoring.", ex);
-        }
-
-        try {
-            executeDDL(con, super.ddlFile("db2", "drop-out-sp.sql"));
-        }
-        catch (SQLException ex) {
-            logObj.info("Can't drop procedure, ignoring.", ex);
-        }
-    } */
 }

Modified: cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/unit/OracleStackAdapter.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/unit/OracleStackAdapter.java?view=diff&rev=504909&r1=504908&r2=504909
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/unit/OracleStackAdapter.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/unit/OracleStackAdapter.java
Thu Feb  8 06:28:36 2007
@@ -79,6 +79,7 @@
             executeDDL(con, "oracle", "create-types-pkg.sql");
             executeDDL(con, "oracle", "create-select-sp.sql");
             executeDDL(con, "oracle", "create-update-sp.sql");
+            executeDDL(con, "oracle", "create-update-sp2.sql");
             executeDDL(con, "oracle", "create-out-sp.sql");
         }
     }

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=504909&r1=504908&r2=504909
==============================================================================
--- 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
Thu Feb  8 06:28:36 2007
@@ -53,6 +53,7 @@
         if (proc != null && proc.getDataMap() == map) {
             executeDDL(con, "sybase", "create-select-sp.sql");
             executeDDL(con, "sybase", "create-update-sp.sql");
+            executeDDL(con, "sybase", "create-update-sp2.sql");
             executeDDL(con, "sybase", "create-out-sp.sql");
         }
     }
@@ -65,6 +66,7 @@
         if (proc != null && proc.getDataMap() == map) {
             executeDDL(con, "sybase", "drop-select-sp.sql");
             executeDDL(con, "sybase", "drop-update-sp.sql");
+            executeDDL(con, "sybase", "drop-update-sp2.sql");
             executeDDL(con, "sybase", "drop-out-sp.sql");
         }
     }



Mime
View raw message