set dfault charset to utf8mb4

master 3.0.6
宇天 2019-03-12 14:23:10 +08:00
parent 0a8818d39c
commit 97484744a7
2 changed files with 3 additions and 3 deletions

View File

@ -40,7 +40,7 @@ class Mysqli {
let name = i < 1 ? 'MASTER' : 'SLAVE' + i let name = i < 1 ? 'MASTER' : 'SLAVE' + i
let collate let collate
charset = charset || 'utf8' charset = charset || 'utf8mb4'
collate = collate =
charset + (charset === 'utf8mb4' ? '_unicode_ci' : '_general_ci') charset + (charset === 'utf8mb4' ? '_unicode_ci' : '_general_ci')

View File

@ -1,10 +1,10 @@
{ {
"name": "mysqli", "name": "mysqli",
"version": "3.0.5", "version": "3.0.6",
"description": "MySQL tool", "description": "MySQL tool",
"main": "index.js", "main": "index.js",
"dependencies": { "dependencies": {
"es.shim": "^1.0.1", "es.shim": "^1.1.2",
"mysql": "^2.13.0" "mysql": "^2.13.0"
}, },
"repository": "https://github.com/yutent/mysqli.git", "repository": "https://github.com/yutent/mysqli.git",