WIP: SQL for creating table and related objects
This commit is contained in:
parent
57217974f4
commit
498233d58c
15 changed files with 221 additions and 121 deletions
|
|
@ -24,7 +24,7 @@ void ConstraintModel::setData(std::shared_ptr<const PgDatabaseCatalog> cat, cons
|
|||
std::sort(m_constraints.begin(), m_constraints.end(),
|
||||
[] (auto &l, auto &r) {
|
||||
return l.type < r.type ||
|
||||
(l.type == r.type && l.name < r.name);
|
||||
(l.type == r.type && l.objectName() < r.objectName());
|
||||
});
|
||||
}
|
||||
else
|
||||
|
|
@ -131,10 +131,10 @@ QVariant ConstraintModel::getData(const QModelIndex &index) const
|
|||
s = IconForConstraintType(t.type);
|
||||
break;
|
||||
case NameCol:
|
||||
s = t.name;
|
||||
s = t.objectName();
|
||||
break;
|
||||
case NsCol:
|
||||
s = getNamespaceDisplayString(*m_catalog, t.connamespace);
|
||||
s = t.nsName();
|
||||
break;
|
||||
case SupportingIndexCol:
|
||||
s = getIndexDisplayString(*m_catalog, t.indid);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue