fixed restriction and constraint class to use size_t
This commit is contained in:
@@ -170,7 +170,7 @@ void object_generator::create_fk_constraint(const std::string& name) const {
|
||||
return;
|
||||
}
|
||||
const auto obj = fk_object<Type>();
|
||||
restriction pk_constraint(*pk_attr);
|
||||
restriction pk_constraint(pk_attr->index());
|
||||
pk_constraint.options_ |= utils::constraints::ForeignKey;
|
||||
pk_constraint.owner_ = object_;
|
||||
pk_constraint.reference_ = obj;
|
||||
|
||||
Reference in New Issue
Block a user