fixed restriction and constraint class to use size_t

This commit is contained in:
2026-06-03 16:36:51 +02:00
parent 87bd2f8b89
commit 705d361aaa
10 changed files with 29 additions and 22 deletions
+1 -1
View File
@@ -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;