Closed jilen closed 8 years ago
@mauricio Is it possible to use utf8mb4
charset for mysql-async?
class DripConnectionFactory(cfg: Configuration) extends MySQLConnectionFactory(cfg) {
val charsetMapper = new CharsetMapper(Map(CharsetUtil.UTF_8 -> 45))
override def create: MySQLConnection = {
val connection = new MySQLConnection(cfg, charsetMapper)
Await.result(connection.connect, cfg.connectTimeout )
connection
}
}
Solved this problem by manually define charset mapper like this
will produce
the table
account_stat
useutf8mb4