MySQL bit support

This commit is contained in:
Rodrigo Machado 2018-06-03 14:49:22 -04:00
parent 651a54ea79
commit a6cbd14baf

View File

@ -55,6 +55,14 @@ export class MysqlDriver extends AbstractDriver {
case "int":
colInfo.ts_type = "number";
break;
case "bit":
if (resp.column_type == "bit(1)") {
colInfo.width = 1;
colInfo.ts_type = "boolean";
} else {
colInfo.ts_type = "number";
}
break;
case "tinyint":
if (resp.column_type == "tinyint(1)") {
colInfo.width = 1;