db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject svn commit: r431737 - /db/ojb/trunk/src/test/org/apache/ojb/broker/StoredProcedureTest.java
Date Tue, 15 Aug 2006 23:38:28 GMT
Author: arminw
Date: Tue Aug 15 16:38:28 2006
New Revision: 431737

URL: http://svn.apache.org/viewvc?rev=431737&view=rev
Log:
fix, call SP only for supported DB

Modified:
    db/ojb/trunk/src/test/org/apache/ojb/broker/StoredProcedureTest.java

Modified: db/ojb/trunk/src/test/org/apache/ojb/broker/StoredProcedureTest.java
URL: http://svn.apache.org/viewvc/db/ojb/trunk/src/test/org/apache/ojb/broker/StoredProcedureTest.java?rev=431737&r1=431736&r2=431737&view=diff
==============================================================================
--- db/ojb/trunk/src/test/org/apache/ojb/broker/StoredProcedureTest.java (original)
+++ db/ojb/trunk/src/test/org/apache/ojb/broker/StoredProcedureTest.java Tue Aug 15 16:38:28
2006
@@ -53,16 +53,18 @@
     {
         super.setUp();
 
-        initDBDependend();
-
-        try{executeStatement(dropInsertProcedure);}catch(Exception e){}
-        try{executeStatement(dropDeleteProcedure);}catch(Exception e){}
-        try{executeStatement(dropUpdateProcedure);}catch(Exception e){}
-        try{executeStatement(deleteTable);}catch(Exception e){}
-        executeStatement(createTable);
-        executeStatement(insertProcedure);
-        executeStatement(updateProcedure);
-        executeStatement(deleteProcedure);
+        if(isSupportedDatabase())
+        {
+            initDBDependend();
+            try{executeStatement(dropInsertProcedure);}catch(Exception e){}
+            try{executeStatement(dropDeleteProcedure);}catch(Exception e){}
+            try{executeStatement(dropUpdateProcedure);}catch(Exception e){}
+            try{executeStatement(deleteTable);}catch(Exception e){}
+            executeStatement(createTable);
+            executeStatement(insertProcedure);
+            executeStatement(updateProcedure);
+            executeStatement(deleteProcedure);
+        }
     }
 
     public void tearDown() throws Exception



---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message