PgTablespace now inherits from PgServerObject.

This commit is contained in:
eelke 2018-12-25 17:38:13 +01:00
parent 0b6c1a8544
commit aaa05f64ef
4 changed files with 21 additions and 17 deletions

View file

@ -72,11 +72,11 @@ QString getTablespaceDisplayString(const PgDatabaseCatalog &cat, Oid oid)
auto dbname = cat.getDBName();
oid = cat.databases()->getByName(dbname)->tablespace;
auto ts = cat.tablespaces()->getByKey(oid);
return ts->name + " (inherited)";
return ts->objectName() + " (inherited)";
}
else {
auto ts = cat.tablespaces()->getByKey(oid);
return ts->name;
return ts->objectName();
}
}