You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by GitBox <gi...@apache.org> on 2022/01/27 02:48:47 UTC

[GitHub] [cayenne] steaked opened a new pull request #492: Fix H2 clob streaming

steaked opened a new pull request #492:
URL: https://github.com/apache/cayenne/pull/492


   In Cayenne 4.1.1 (and probably other versions) when using CLOB's with H2 v2.0.202 an error occurs when attempting to save.
    
   This is due to a change in behaviour in H2 (likely from 1.x) where a CLOB now needs to be saved as a stream.
    
   When the statement.setString(pos, value) gets executed in Cayenne an exception is thrown from H2 as you now need to set a stream as follows:
    
       Clob clob = st.getConnection().createClob();
       clob.setString(1, val);
       st.setClob(pos, clob);
   
   This PR is to implement that behaviour into H2 clob handling.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cayenne.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cayenne] stariy95 commented on pull request #492: Fix H2 clob streaming

Posted by GitBox <gi...@apache.org>.
stariy95 commented on pull request #492:
URL: https://github.com/apache/cayenne/pull/492#issuecomment-1025832474


   Thanks for the PR!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cayenne.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cayenne] asfgit merged pull request #492: Fix H2 clob streaming

Posted by GitBox <gi...@apache.org>.
asfgit merged pull request #492:
URL: https://github.com/apache/cayenne/pull/492


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cayenne.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org