Comparing version 3.10.3 to 3.11.0
@@ -54,2 +54,3 @@ 'use strict'; | ||
module.exports.BIT = 0x10; // aka BIT, 1-8 byte | ||
module.exports.VECTOR = 0xf2; | ||
module.exports.JSON = 0xf5; | ||
@@ -56,0 +57,0 @@ module.exports.NEWDECIMAL = 0xf6; // aka DECIMAL |
@@ -611,2 +611,12 @@ // This file was modified by Oracle on June 1, 2021. | ||
parseVector() { | ||
const bufLen = this.readLengthCodedNumber(); | ||
const vectorEnd = this.offset + bufLen; | ||
const result = []; | ||
while (this.offset < vectorEnd && this.offset < this.end) { | ||
result.push(this.readFloat()); | ||
} | ||
return result; | ||
} | ||
parseDate(timezone) { | ||
@@ -613,0 +623,0 @@ const strLen = this.readLengthCodedNumber(); |
@@ -58,2 +58,4 @@ 'use strict'; | ||
return 'packet.parseGeometryValue();'; | ||
case Types.VECTOR: | ||
return 'packet.parseVector()'; | ||
case Types.JSON: | ||
@@ -60,0 +62,0 @@ // Since for JSON columns mysql always returns charset 63 (BINARY), |
@@ -62,2 +62,4 @@ 'use strict'; | ||
return 'packet.parseGeometryValue()'; | ||
case Types.VECTOR: | ||
return 'packet.parseVector()'; | ||
case Types.JSON: | ||
@@ -64,0 +66,0 @@ // Since for JSON columns mysql always returns charset 63 (BINARY), |
{ | ||
"name": "mysql2", | ||
"version": "3.10.3", | ||
"version": "3.11.0", | ||
"description": "fast mysql driver. Implements core protocol, prepared statements, ssl and compression in native JS", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -19,2 +19,3 @@ interface Types { | ||
0x10: string; | ||
0xf2: string; | ||
0xf5: string; | ||
@@ -49,2 +50,3 @@ 0xf6: string; | ||
BIT: number; | ||
VECTOR: number; | ||
JSON: number; | ||
@@ -51,0 +53,0 @@ NEWDECIMAL: number; |
@@ -28,2 +28,3 @@ export type Geometry = { | ||
| 'BIT' | ||
| 'VECTOR' | ||
| 'JSON' | ||
@@ -30,0 +31,0 @@ | 'NEWDECIMAL' |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
502846
13740