mysql2
Advanced tools
Comparing version 3.9.5 to 3.9.6
@@ -172,2 +172,6 @@ 'use strict'; | ||
parserFn(`if (nullBitmaskByte${nullByteIndex} & ${currentFieldNullBit}) `); | ||
parserFn(`${lvalue} = null;`); | ||
parserFn('else {'); | ||
if (options.typeCast === false) { | ||
@@ -180,5 +184,2 @@ parserFn(`${lvalue} = packet.readLengthCodedBuffer();`); | ||
parserFn(`if (nullBitmaskByte${nullByteIndex} & ${currentFieldNullBit})`); | ||
parserFn(`${lvalue} = null;`); | ||
parserFn('else {'); | ||
if (typeof options.typeCast === 'function') { | ||
@@ -191,5 +192,6 @@ parserFn( | ||
} | ||
parserFn('}'); | ||
} | ||
parserFn('}'); | ||
currentFieldNullBit *= 2; | ||
@@ -196,0 +198,0 @@ if (currentFieldNullBit === 0x100) { |
{ | ||
"name": "mysql2", | ||
"version": "3.9.5", | ||
"version": "3.9.6", | ||
"description": "fast mysql driver. Implements core protocol, prepared statements, ssl and compression in native JS", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
709654