Skip to content

Commit dc51967

Browse files
committed
Fix result duplicate rows issue
1 parent e3d3380 commit dc51967

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGES.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
In next release ...
22

3+
- Fix issue where larger results would sometimes have duplicates (#122).
4+
35
- Fixed an issue where the result row array type would use the record generic
46
as the value type instead of `any` which was incorrect.
57

src/client.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -935,6 +935,7 @@ export class ClientImpl {
935935

936936
// Keep track of how much data we've consumed.
937937
frame += bytes;
938+
read += bytes;
938939

939940
// If the next message header doesn't fit, we
940941
// break out and wait for more data to arrive.
@@ -943,8 +944,6 @@ export class ClientImpl {
943944
this.expect = 5;
944945
return read;
945946
}
946-
947-
read += bytes;
948947
}
949948

950949
this.activeRow = null;

0 commit comments

Comments
 (0)