Skip to content

Commit 3d4bc0a

Browse files
committed
Parse mysql bigint as js bigint
1 parent 08fcd04 commit 3d4bc0a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/binlog_event.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,9 @@ IntVar.prototype.dump = function () {
149149
};
150150

151151
/**
152-
* This evenement describe the structure of a table.
153-
* It's send before a change append on a table.
154-
* A end user of the lib should have no usage of this
152+
* This event describes the structure of a table.
153+
* It's sent before a change append on a table.
154+
* An end user of the lib should have no usage of this
155155
*
156156
* see http://dev.mysql.com/doc/internals/en/table-map-event.html
157157
**/

lib/common.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const parseUInt64 = (exports.parseUInt64 = function (parser) {
5050

5151
if (high >>> 21) {
5252
// using bigint here
53-
return bigInt(TWO_TO_POWER_THIRTY_TWO).multiply(high).add(low).toString();
53+
return bigInt(TWO_TO_POWER_THIRTY_TWO).multiply(high).add(low);
5454
}
5555

5656
return high * Math.pow(2, 32) + low;

0 commit comments

Comments
 (0)