supports the mediumint column when generate the mysql model (#1393)

This commit is contained in:
khalilluo 2022-09-28 19:32:02 +08:00 committed by GitHub
parent 875bca0a86
commit 89588959b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -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";