Skip to content

Commit 8195c49

Browse files
committed
Fix error name,
Revert comment commit
1 parent 65da856 commit 8195c49

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ ZongJi.prototype.start = function (options = {}) {
249249
event.updateColumnInfo();
250250
} catch (error) {
251251
const schemaError = new Error('Historical event received with unrecoverable schema changes.', {
252-
cause: err
252+
cause: error
253253
});
254254
this.emit('error', schemaError);
255255
return;

lib/common.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -481,11 +481,6 @@ exports.readMysqlValue = function (
481481
lengthSize = column.metadata['length_size'];
482482
size = parser.parseUnsignedNumber(lengthSize);
483483
buffer = parser.parseBuffer(size);
484-
// // Return raw WKB value. First 4 bytes are the SRID which we ignore
485-
// console.log(`Parsing Geometry value size: ${size} buffer size: ${buffer.length}`);
486-
// result = new Uint8Array(buffer.slice(4));
487-
// console.log(`Parsed Geometry value size: ${result}`);
488-
489484
result = parseGeometryValue(buffer);
490485
break;
491486
case MysqlTypes.DATE:

0 commit comments

Comments
 (0)