[ 
https://issues.apache.org/jira/browse/TRAFODION-2740?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16175947#comment-16175947
 ] 

ASF GitHub Bot commented on TRAFODION-2740:
-------------------------------------------

Github user xwq commented on a diff in the pull request:

    
https://github.com/apache/incubator-trafodion/pull/1240#discussion_r140415845
  
    --- Diff: 
core/conn/jdbcT4/src/main/java/org/trafodion/jdbc/t4/TrafT4Lob.java ---
    @@ -91,23 +92,49 @@ public void read() throws SQLException {
                }
     
                T4Connection t4connection = 
this.connection_.getServerHandle().getT4Connection();
    -           LogicalByteArray wbuffer = 
ExtractLobMessage.marshal(ExtractLobMessage.LOB_EXTRACT_BUFFER, lobHandle_, 1, 
0,
    +           LogicalByteArray wbuffer = 
ExtractLobMessage.marshal(ExtractLobMessage.LOB_EXTRACT_LEN, lobHandle_, 1, 0,
                                connection_.ic_);
     
                LogicalByteArray rbuffer = 
t4connection.getReadBuffer(TRANSPORT.SRVR_API_EXTRACTLOB, wbuffer);
                ExtractLobReply reply = new ExtractLobReply(rbuffer, 
connection_.ic_);
    -           data_ = reply.lobDataValue;
    +           length = reply.lobLength;
    --- End diff --
    
    Yes, it the entire length of the LOB.


> JDBC Extract LOB in chunks
> --------------------------
>
>                 Key: TRAFODION-2740
>                 URL: https://issues.apache.org/jira/browse/TRAFODION-2740
>             Project: Apache Trafodion
>          Issue Type: Bug
>          Components: client-jdbc-t4, connectivity-mxosrvr
>    Affects Versions: 2.2-incubating
>            Reporter: Weiqing Xu
>            Assignee: Weiqing Xu
>
> The JDBC will extract all the LOB context once.However there is a size limit 
> for the extract query. It only can extract at most 500MB. So the the 
> *_"extract"_* statement should be call multiple times to extract the whole 
> context.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to