Date Dev Ver Change details
---------- --- ----- --------------
+2008-05-01 DP 1.8.3 Don't load group roles and old-style groups on the
+ security tab on 8.1 and higher.
+2008-05-01 DP 1.8.3 Correctly quote role names when reverse engineering ACLs.
2008-04-20 DP 1.8.3 Don't allow the user to attempt to remove columns from
an existing index or index constraint.
2008-04-08 DP 1.8.3 Disable the RULE privilege on 8.2+ for views per Erwin.
if (!((securityPage && securityPage->cbGroups) || comboBox))
return;
+ if (connection->BackendMinimumVersion(8, 1))
+ return;
+
pgSet *set=connection->ExecuteSet(wxT("SELECT groname FROM pg_group ORDER BY groname"));
if (set)
else
{
if (user.Left(6) == wxT("group "))
- user = wxT("GROUP ") + qtIdent(user.Mid(6));
+ {
+ if (user.Mid(6).StartsWith(wxT("\\\"")) && user.Mid(6).EndsWith(wxT("\\\"")))
+ user = wxT("GROUP ") + qtIdent(user.Mid(8, user.Length() - 10));
+ else
+ user = wxT("GROUP ") + qtIdent(user.Mid(6));
+ }
else
- user = qtIdent(user);
+ {
+ if (user.StartsWith(wxT("\\\"")) && user.EndsWith(wxT("\\\"")))
+ user = qtIdent(user.Mid(2, user.Length() - 4));
+ else
+ user = qtIdent(user);
+ }
}
grant += GetPrivileges(allPattern, str, grantFor, user);