mysql2 3.2.2 → 3.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -138,7 +138,7 @@ class ServerHandshake extends Command {
|
|
|
138
138
|
break;
|
|
139
139
|
case CommandCode.FIELD_LIST:
|
|
140
140
|
if (connection.listeners('field_list').length) {
|
|
141
|
-
const table = packet.readNullTerminatedString();
|
|
141
|
+
const table = packet.readNullTerminatedString(encoding);
|
|
142
142
|
const fields = packet.readString(undefined, encoding);
|
|
143
143
|
connection.emit('field_list', table, fields);
|
|
144
144
|
} else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mysql2",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.4",
|
|
4
4
|
"description": "fast mysql driver. Implements core protocol, prepared statements, ssl and compression in native JS",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"directories": {
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
"lint:code": "eslint index.js promise.js \"lib/**/*.js\" \"test/**/*.js\" \"benchmarks/**/*.js\"",
|
|
13
13
|
"lint:docs": "eslint Contributing.md \"documentation/**/*.md\" \"examples/*.js\"",
|
|
14
14
|
"test": "node ./test/run.js",
|
|
15
|
+
"test:tsc-build": "cd \"test/tsc-build\" && npx tsc -p \"tsconfig.json\"",
|
|
15
16
|
"coverage-test": "c8 -r cobertura -r lcov -r text node ./test/run.js",
|
|
16
17
|
"benchmark": "node ./benchmarks/benchmark.js",
|
|
17
18
|
"prettier": "prettier --single-quote --trailing-comma none --write \"{lib,examples,test}/**/*.js\"",
|
|
@@ -11,6 +11,12 @@ import {EventEmitter} from 'events';
|
|
|
11
11
|
declare namespace Connection {
|
|
12
12
|
|
|
13
13
|
export interface ConnectionOptions {
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* DECIMAL and NEWDECIMAL types will be returned as numbers if this option is set to `true` ( default: `false`).
|
|
17
|
+
*/
|
|
18
|
+
decimalNumbers?: boolean;
|
|
19
|
+
|
|
14
20
|
/**
|
|
15
21
|
* The MySQL user to authenticate as
|
|
16
22
|
*/
|