supports the mediumint column when generate the mysql model (#1393)
This commit is contained in:
parent
875bca0a86
commit
89588959b1
|
@ -481,6 +481,11 @@ void create_model::createModelClassFromMysql(
|
||||||
info.colType_ = "int16_t";
|
info.colType_ = "int16_t";
|
||||||
info.colLength_ = 2;
|
info.colLength_ = 2;
|
||||||
}
|
}
|
||||||
|
else if (type.find("mediumint") == 0)
|
||||||
|
{
|
||||||
|
info.colType_ = "int32_t";
|
||||||
|
info.colLength_ = 3;
|
||||||
|
}
|
||||||
else if (type.find("int") == 0)
|
else if (type.find("int") == 0)
|
||||||
{
|
{
|
||||||
info.colType_ = "int32_t";
|
info.colType_ = "int32_t";
|
||||||
|
|
Loading…
Reference in New Issue