fix: fix old mysql query result ony buffer

This commit is contained in:
HHongSeungWoo 2021-02-06 15:59:08 +09:00
parent 7dd475da0d
commit 04cce00b46

View File

@ -493,6 +493,17 @@ export default class MysqlDriver extends AbstractDriver {
};
}
config.typeCast = (field, next) => {
switch (field.type) {
case "VAR_STRING":
return field.string();
case "BLOB":
return field.string();
default:
return next();
}
};
const promise = new Promise<boolean>((resolve, reject) => {
this.Connection = this.MYSQL.createConnection(config);