Generic GRANT/REVOKE generation from ACL's complete.

Moved the owned concept to PgServerObject as it is needed for the generic
acl functionality that is also in PgServerObject.
This commit is contained in:
eelke 2018-12-25 13:17:04 +01:00
parent cc0b28e8e0
commit c2c01cf431
23 changed files with 358 additions and 312 deletions

View file

@ -344,6 +344,7 @@ const QString& PgProc::createSql() const
// + GetGrant(wxT("X"), wxT("FUNCTION ") + qtSig);
sql += alterOwnerSql("FUNCTION " + quoted_sig);
sql += grantSql();
// if (!GetComment().IsNull())
// {
@ -384,3 +385,9 @@ QString PgProc::typeName() const
}
throw std::runtime_error("Unexpected kind in PgProc::typeName()");
}
QString PgProc::aclAllPattern() const
{
// X = execute
return "X";
}