Skip to content

Commit 792268e

Browse files
author
realityfilter
committed
fix(CLOB): clob values had wrong values
Appending to the result string now respects the read count.
1 parent 5c5a488 commit 792268e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/connection.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ Local<Object> Connection::CreateV8ObjectFromRow(ExecuteBaton* baton, vector<colu
668668
int totalBytesRead = 0;
669669
while (numBytesRead != -1) {
670670
totalBytesRead += numBytesRead;
671-
columnVal.append(buffer);
671+
columnVal.append(buffer, numBytesRead);
672672
numBytesRead = instream->readBuffer(buffer, chunkSize);
673673
}
674674

0 commit comments

Comments
 (0)