cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1357679 - /cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/dba/oracle/OracleLOBBatchAction.java
Date Thu, 05 Jul 2012 15:26:33 GMT
Author: oltka
Date: Thu Jul  5 15:26:33 2012
New Revision: 1357679

URL: http://svn.apache.org/viewvc?rev=1357679&view=rev
Log:
CAY-1721 Writing blobs fails (Oracle)

Modified:
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/dba/oracle/OracleLOBBatchAction.java

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/dba/oracle/OracleLOBBatchAction.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/dba/oracle/OracleLOBBatchAction.java?rev=1357679&r1=1357678&r2=1357679&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/dba/oracle/OracleLOBBatchAction.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/dba/oracle/OracleLOBBatchAction.java
Thu Jul  5 15:26:33 2012
@@ -252,7 +252,7 @@ class OracleLOBBatchAction implements SQ
     protected void writeBlob(Blob blob, byte[] value) {
 
         try {
-            OutputStream out = blob.setBinaryStream(0);
+            OutputStream out = blob.setBinaryStream(1);
             try {
                 out.write(value);
                 out.flush();
@@ -299,7 +299,7 @@ class OracleLOBBatchAction implements SQ
     protected void writeClob(Clob clob, String value) {
         try {
 
-            Writer out = clob.setCharacterStream(0);
+            Writer out = clob.setCharacterStream(1);
             try {
                 out.write(value);
                 out.flush();



Mime
View raw message