mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-01 14:38:50 +00:00
fix: Return boolean for TINYINT
This commit is contained in:
1 parent
3b55e890a8
commit
dc55401b78
1 file changed
+1
-1
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user