Fix a compiler warning
This commit is contained in:
parent
a72fc5e433
commit
afe0eca5e8
|
@ -87,7 +87,6 @@ void create_model::createModelClassFromPG(const std::string &path, const DbClien
|
||||||
{
|
{
|
||||||
auto row = r[i];
|
auto row = r[i];
|
||||||
ColumnInfo info;
|
ColumnInfo info;
|
||||||
memset(&info, 0, sizeof(info));
|
|
||||||
info._index = i;
|
info._index = i;
|
||||||
info._dbType = "pg";
|
info._dbType = "pg";
|
||||||
info._colName = row["column_name"].as<std::string>();
|
info._colName = row["column_name"].as<std::string>();
|
||||||
|
@ -315,7 +314,6 @@ void create_model::createModelClassFromMysql(const std::string &path, const DbCl
|
||||||
if (!isNull)
|
if (!isNull)
|
||||||
{
|
{
|
||||||
ColumnInfo info;
|
ColumnInfo info;
|
||||||
memset(&info, 0, sizeof(info));
|
|
||||||
info._index = i;
|
info._index = i;
|
||||||
info._dbType = "pg";
|
info._dbType = "pg";
|
||||||
info._colName = field;
|
info._colName = field;
|
||||||
|
|
|
@ -38,7 +38,7 @@ struct ColumnInfo
|
||||||
std::string _colDatabaseType;
|
std::string _colDatabaseType;
|
||||||
std::string _dbType;
|
std::string _dbType;
|
||||||
ssize_t _colLength = -1;
|
ssize_t _colLength = -1;
|
||||||
size_t _index;
|
size_t _index = 0;
|
||||||
bool _isAutoVal = false;
|
bool _isAutoVal = false;
|
||||||
bool _isPrimaryKey = false;
|
bool _isPrimaryKey = false;
|
||||||
bool _notNull = false;
|
bool _notNull = false;
|
||||||
|
|
Loading…
Reference in New Issue