Skip to content

Commit

Permalink
Update common.js
Browse files Browse the repository at this point in the history
  • Loading branch information
YousefED authored Jan 16, 2020
1 parent 6386d7e commit cd77d7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ exports.readMysqlValue = function(
lengthSize = column.metadata['length_size'];
size = parser.parseUnsignedNumber(lengthSize);
buffer = parser.parseBuffer(size);
result = decodeJson(buffer);
result = buffer.length === 0 ? null : decodeJson(buffer); // change YED
break;
case MysqlTypes.GEOMETRY:
lengthSize = column.metadata['length_size'];
Expand Down

0 comments on commit cd77d7a

Please sign in to comment.