Make PgAuthId inherit PgServerObject and related changes.

This commit is contained in:
eelke 2018-12-25 16:39:58 +01:00
parent c2c01cf431
commit 0b6c1a8544
8 changed files with 33 additions and 16 deletions

View file

@ -17,8 +17,10 @@ std::string PgAuthIdContainer::getLoadQuery() const
PgAuthId PgAuthIdContainer::loadElem(const Pgsql::Row &row)
{
Pgsql::Col col(row);
PgAuthId v;
col >> v.oid >> v.name >> v.super >> v.inherit >> v.createRole >> v.createDB
Oid oid = col.nextValue();
QString name = col.nextValue();
PgAuthId v(m_catalog, oid, name);
col >> v.super >> v.inherit >> v.createRole >> v.createDB
>> v.canlogin >> v.replication >> v.connLimit >> v.validUntil;
if (minimumVersion(90500))
col >> v.bypassRls;