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

@ -17,7 +17,16 @@ FROM pg_tablespace
PgTablespace PgTablespaceContainer::loadElem(const Pgsql::Row &row)
{
Pgsql::Col col(row);
PgTablespace v;
col >> v.oid >> v.name >> v.owner >> v.acl >> v.options;
Oid oid = col.nextValue();
QString name = col.nextValue();
Oid owner = col.nextValue();
PgTablespace v(m_catalog, oid, name);
v.setOwnerOid(owner);
AclList acl_list;
col >> acl_list;
v.setAcls(std::move(acl_list));
col >> v.options;
return v;
}