|
@@ -76,7 +76,7 @@ discard block |
|
|
block discarded – undo |
|
76
|
76
|
{ |
|
77
|
77
|
// Sometimes, we can insert a NULL JSON even we set the JSON field as NOT NULL. |
|
78
|
78
|
// If we meet this case, we can return a 'null' value. |
|
79
|
|
- if($this->binaryDataReader->getBinaryDataLength() === 0) { |
|
|
79
|
+ if ($this->binaryDataReader->getBinaryDataLength() === 0) { |
|
80
|
80
|
return 'null'; |
|
81
|
81
|
} |
|
82
|
82
|
$this->parseJson($this->binaryDataReader->readUInt8()); |
|
@@ -252,7 +252,7 @@ discard block |
|
|
block discarded – undo |
|
252
|
252
|
|
|
253
|
253
|
// In binlog format, JSON arrays are fixed width elements, even though type value can be smaller. |
|
254
|
254
|
// In order to properly process this case, we need to move cursor to the next element, which is on position 1 + $valueEntrySize (1 is length of type) |
|
255
|
|
- if($type === self::UINT16 || $type === self::INT16) { |
|
|
255
|
+ if ($type === self::UINT16 || $type === self::INT16) { |
|
256
|
256
|
$readNextBytes = $valueEntrySize - 2 - 1; |
|
257
|
257
|
$this->binaryDataReader->read($readNextBytes); |
|
258
|
258
|
} |
Please login to merge, or discard this patch.