You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by km...@apache.org on 2009/07/18 22:02:01 UTC

svn commit: r795425 - /db/derby/code/branches/10.5/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/BlobClob4BlobTest.java

Author: kmarsden
Date: Sat Jul 18 20:02:00 2009
New Revision: 795425

URL: http://svn.apache.org/viewvc?rev=795425&view=rev
Log:
DERBY-4292 creation of FileInputStream in org.apache.derby.impl.tools.ij.Main not wrapped in privilege  block which can cause problems running under SecurityManager

Backing out accidental checkin of some unrelated test changes to BlobClob4BlobTest made with the 795314  checkin to 10.5 for this bug.


Modified:
    db/derby/code/branches/10.5/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/BlobClob4BlobTest.java

Modified: db/derby/code/branches/10.5/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/BlobClob4BlobTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/branches/10.5/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/BlobClob4BlobTest.java?rev=795425&r1=795424&r2=795425&view=diff
==============================================================================
--- db/derby/code/branches/10.5/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/BlobClob4BlobTest.java (original)
+++ db/derby/code/branches/10.5/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/BlobClob4BlobTest.java Sat Jul 18 20:02:00 2009
@@ -112,8 +112,6 @@
         
         PreparedStatement ps = prepareStatement( sql);
         ps.setBinaryStream( 1, is,data.length);
-        //DERBY-4312 Make sure commit() doesn't interfere here
-        commit();
         ps.executeUpdate();          
         // Make sure things still work ok when we have a parameter that does get consumed.
         // insert a matching row.
@@ -211,8 +209,6 @@
         Reader streamReader = new LoopingAlphabetReader(
                 clobLength, CharAlphabet.tamil());
         ps.setCharacterStream(1, streamReader, clobLength);
-        //DERBY-4312 make sure commit() doesn't interfere
-        commit();
         ps.executeUpdate();
         streamReader.close();
         ps.close();
@@ -1306,8 +1302,6 @@
         InputStream streamIn = new LoopingAlphabetStream(10000);
         ps.setAsciiStream(5, streamIn, 10000);
         ps.setInt(6, 1);
-        // DERBY-4312 make sure commit() doesn't interfere here.
-        commit();
         ps.executeUpdate();
         streamIn.close();
         ps.close();