aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPUserMO.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2013-03-09 23:22:03 +0000
committerrowanbeentje <rowan@beent.je>2013-03-09 23:22:03 +0000
commit5f3881c0f03e6d103bb09a4fb8da525b761b40dc (patch)
tree73e424b2607d01025ed7673f12f6ee794f6ffe92 /Source/SPUserMO.m
parentc51d93d760b6ad47ac4256bdf564688cb9a5d2f8 (diff)
downloadsequelpro-5f3881c0f03e6d103bb09a4fb8da525b761b40dc.tar.gz
sequelpro-5f3881c0f03e6d103bb09a4fb8da525b761b40dc.tar.bz2
sequelpro-5f3881c0f03e6d103bb09a4fb8da525b761b40dc.zip
Tweak and improve the User Manager:
- Rework how data to populate the user manager is retrieved from the server, speeding up display of lots of users by a large factor - Fix support for schema permissions for the Anonymous user, and add support for '%' and '' hostnames (only showing if already set once), fixing Issue #1620 - Highlight databases in the user manager that have permissions set for the selected user - Switch to using the centrally provided database list to reduce queries and remove the information_schema and performance_schema "databases" - Speed up a number of operations by tweaking the logic and queries used
Diffstat (limited to 'Source/SPUserMO.m')
-rw-r--r--Source/SPUserMO.m8
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/SPUserMO.m b/Source/SPUserMO.m
index e02bb009..6e166700 100644
--- a/Source/SPUserMO.m
+++ b/Source/SPUserMO.m
@@ -46,7 +46,13 @@ static NSString *SPUserMOChildrenKey = @"children";
- (NSString *)displayName
{
- return ([self valueForKey:SPUserMOParentKey] == nil) ? self.user : self.host;
+ if ([self valueForKey:SPUserMOParentKey] == nil) {
+ return self.user;
+ }
+ if ([self.host length]) {
+ return self.host;
+ }
+ return @"%";
}
- (void)setDisplayName:(NSString *)value