Fix a bug when creating models with composite keys in sqlite3 (#1310)
This commit is contained in:
parent
da18f21796
commit
8b90403bae
|
@ -740,6 +740,11 @@ void create_model::createModelClassFromSqlite3(
|
||||||
}
|
}
|
||||||
else if (pkNames.size() > 1)
|
else if (pkNames.size() > 1)
|
||||||
{
|
{
|
||||||
|
for (auto &col : cols)
|
||||||
|
{
|
||||||
|
col.isAutoVal_ = false;
|
||||||
|
}
|
||||||
|
|
||||||
data["primaryKeyName"] = pkNames;
|
data["primaryKeyName"] = pkNames;
|
||||||
data["primaryKeyType"] = pkTypes;
|
data["primaryKeyType"] = pkTypes;
|
||||||
data["primaryKeyValNames"] = pkValNames;
|
data["primaryKeyValNames"] = pkValNames;
|
||||||
|
|
Loading…
Reference in New Issue