cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1357697 - /cayenne/main/branches/STABLE-3.0/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/dba/oracle/OracleLOBBatchAction.java
Date Thu, 05 Jul 2012 15:47:10 GMT
Author: oltka
Date: Thu Jul  5 15:47:09 2012
New Revision: 1357697

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

(cherry picked from commit 0d6ae401f4a88320534e4a138f1586ebfa6ca141)

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

Modified: cayenne/main/branches/STABLE-3.0/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/dba/oracle/OracleLOBBatchAction.java
URL: http://svn.apache.org/viewvc/cayenne/main/branches/STABLE-3.0/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/dba/oracle/OracleLOBBatchAction.java?rev=1357697&r1=1357696&r2=1357697&view=diff
==============================================================================
--- cayenne/main/branches/STABLE-3.0/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/dba/oracle/OracleLOBBatchAction.java
(original)
+++ cayenne/main/branches/STABLE-3.0/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/dba/oracle/OracleLOBBatchAction.java
Thu Jul  5 15:47:09 2012
@@ -248,7 +248,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();
@@ -293,7 +293,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