Rework of catalog objects. Several of them are now inheriting from common
base classes that implement common functionality.
This commit is contained in:
parent
840af1e0a9
commit
73c4cf4790
45 changed files with 340 additions and 265 deletions
|
|
@ -20,7 +20,7 @@ void ConstraintModel::setData(std::shared_ptr<const PgDatabaseCatalog> cat, cons
|
|||
m_table = table;
|
||||
m_catalog = cat;
|
||||
if (table) {
|
||||
m_constraints = cat->constraints()->getConstraintsForRelation(table->oid);
|
||||
m_constraints = cat->constraints()->getConstraintsForRelation(table->oid());
|
||||
std::sort(m_constraints.begin(), m_constraints.end(),
|
||||
[] (auto &l, auto &r) {
|
||||
return l.type < r.type ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue