Skip to content

Commit 5980b35

Browse files
author
realityfilter
committed
fix(CLOB): clob values had wrong values
Appending to the result string now respects the read count. Fix for second code occurrence of clob transformation.
1 parent 792268e commit 5980b35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/connection.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,7 @@ void Connection::handleResult(ExecuteBaton* baton, Handle<Value> (&argv)[2]) {
802802
int totalBytesRead = 0;
803803
while (numBytesRead != -1) {
804804
totalBytesRead += numBytesRead;
805-
clobVal.append(buffer);
805+
clobVal.append(buffer, numBytesRead);
806806
numBytesRead = instream->readBuffer(buffer, chunkSize);
807807
}
808808
output->clobVal.closeStream(instream);

0 commit comments

Comments
 (0)