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
|
|
@ -7,16 +7,11 @@ QString PgIndex::getAm() const
|
|||
{
|
||||
auto&& cat = catalog();
|
||||
QString result;
|
||||
auto idxcls = cat.classes()->getByKey(indexrelid);
|
||||
auto idxcls = cat.classes()->getByKey(oid());
|
||||
if (idxcls) {
|
||||
auto am = cat.ams()->getByKey(idxcls->am);
|
||||
if (am)
|
||||
result = am->name;
|
||||
result = am->name; // objectName();
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
QString PgIndex::objectName() const
|
||||
{
|
||||
return getAm();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue