trafodion-codereview mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sandhyasun <...@git.apache.org>
Subject [GitHub] incubator-trafodion pull request #1240: [TRAFODION-2740]JDBC extract LOB con...
Date Fri, 22 Sep 2017 05:32:35 GMT
Github user sandhyasun commented on a diff in the pull request:

    https://github.com/apache/incubator-trafodion/pull/1240#discussion_r140414892
  
    --- 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 --
    
    Is this length the entire length of the lob  returned by the SQL layer ? 



---

Mime
View raw message