Skip to content

Commit

Permalink
fix: Return boolean for TINYINT
Browse files Browse the repository at this point in the history
  • Loading branch information
thelindat committed Oct 15, 2021
1 parent 3b55e89 commit dc55401
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const parseTypes = (field, next) => {
? new Date(field.string() + ' 00:00:00').getTime()
: new Date(field.string()).getTime();
case 'TINY':
if (field.length === 1) return field.string() === '1';
if (field.length == 1) return field.string() === '1';
else return next();
case 'BIT':
return field.buffer()[0] === 1;
Expand Down

0 comments on commit dc55401

Please sign in to comment.