db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From myrn...@apache.org
Subject svn commit: r618722 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/RolesTest.java
Date Tue, 05 Feb 2008 17:55:06 GMT
Author: myrnavl
Date: Tue Feb  5 09:54:58 2008
New Revision: 618722

URL: http://svn.apache.org/viewvc?rev=618722&view=rev
Log:
DERBY-3345 ; skipping section in lang.RolesTest testing setting roles from 
  within a stored procedure with JSR169. The stored procedure uses 
  DriverManager connection to jdbc:default:connection, and DriverManager is not
  supported with JSR169.

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/RolesTest.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/RolesTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/RolesTest.java?rev=618722&r1=618721&r2=618722&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/RolesTest.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/RolesTest.java
Tue Feb  5 09:54:58 2008
@@ -32,6 +32,7 @@
 import junit.framework.TestSuite;
 import org.apache.derbyTesting.junit.BaseJDBCTestCase;
 import org.apache.derbyTesting.junit.DatabasePropertyTestSetup;
+import org.apache.derbyTesting.junit.JDBC;
 import org.apache.derbyTesting.junit.TestConfiguration;
 
 /**
@@ -403,8 +404,12 @@
                sqlAuthorizationRequired, null , null /* through public */);
         doStmt("set role 'FOO'",
                sqlAuthorizationRequired, null, null);
-
-        doSetRoleInsideStoredProcedures("FOO");
+        
+        // JSR169 cannot run with tests with stored procedures that do
+        // database access - for they require a DriverManager connection to
+        // jdbc:default:connection; DriverManager is not supported with JSR169
+        if (!JDBC.vmSupportsJSR169())
+            doSetRoleInsideStoredProcedures("FOO");
 
         doStmt("set role none",
                sqlAuthorizationRequired, null , null);



Mime
View raw message