Comparing version
@@ -49,2 +49,3 @@ 'use strict'; | ||
gb18030: 248, | ||
utf8mb3: 192, | ||
}; |
@@ -67,3 +67,9 @@ 'use strict'; | ||
const charsetNumber = EncodingToCharset[val]; | ||
connection.config.charsetNumber = charsetNumber; | ||
// TODO - better api for driver users to handle unknown encodings? | ||
// maybe custom coverter in the config? | ||
// For now just ignore character_set_client command if there is | ||
// no known mapping from reported encoding to a charset code | ||
if (typeof charsetNumber !== 'undefined') { | ||
connection.config.charsetNumber = charsetNumber; | ||
} | ||
} | ||
@@ -70,0 +76,0 @@ } else if (type === sessionInfoTypes.SCHEMA) { |
{ | ||
"name": "mysql2", | ||
"version": "3.14.0", | ||
"version": "3.14.1-canary.0617813d", | ||
"description": "fast mysql driver. Implements core protocol, prepared statements, ssl and compression in native JS", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
526344
0.08%14300
0.05%1
Infinity%