cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r1489579 - /cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/unit/PostgresUnitDbAdapter.java
Date Tue, 04 Jun 2013 19:48:07 GMT
Author: aadamchik
Date: Tue Jun  4 19:47:57 2013
New Revision: 1489579

URL: http://svn.apache.org/r1489579
Log:
actually postgresql does support out parameters

Modified:
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/unit/PostgresUnitDbAdapter.java

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/unit/PostgresUnitDbAdapter.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/unit/PostgresUnitDbAdapter.java?rev=1489579&r1=1489578&r2=1489579&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/unit/PostgresUnitDbAdapter.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/unit/PostgresUnitDbAdapter.java
Tue Jun  4 19:47:57 2013
@@ -20,14 +20,10 @@
 package org.apache.cayenne.unit;
 
 import java.sql.Connection;
-import java.sql.Types;
 import java.util.Collection;
 
-import org.apache.cayenne.access.DataContextProcedureQueryTest;
 import org.apache.cayenne.dba.DbAdapter;
 import org.apache.cayenne.map.DataMap;
-import org.apache.cayenne.map.Procedure;
-import org.apache.cayenne.map.ProcedureParameter;
 
 public class PostgresUnitDbAdapter extends UnitDbAdapter {
 
@@ -36,8 +32,7 @@ public class PostgresUnitDbAdapter exten
     }
 
     @Override
-    public void willDropTables(Connection conn, DataMap map, Collection tablesToDrop)
-            throws Exception {
+    public void willDropTables(Connection conn, DataMap map, Collection tablesToDrop) throws
Exception {
         // avoid dropping constraints...
     }
 
@@ -66,23 +61,4 @@ public class PostgresUnitDbAdapter exten
             executeDDL(con, "postgresql", "create-out-sp.sql");
         }
     }
-
-    @Override
-    public void tweakProcedure(Procedure proc) {
-        if (DataContextProcedureQueryTest.OUT_STORED_PROCEDURE.equals(proc.getName())
-                && proc.getCallParameters().size() == 2) {
-
-            proc.clearCallParameters();
-            proc.addCallParameter(new ProcedureParameter(
-                    "out_param",
-                    Types.INTEGER,
-                    ProcedureParameter.OUT_PARAMETER));
-
-            proc.addCallParameter(new ProcedureParameter(
-                    "in_param",
-                    Types.INTEGER,
-                    ProcedureParameter.IN_PARAMETER));
-            proc.setReturningValue(true);
-        }
-    }
 }



Mime
View raw message