aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPUserManager.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPUserManager.m')
-rw-r--r--Source/SPUserManager.m10
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/SPUserManager.m b/Source/SPUserManager.m
index 8e60a334..c9be9a87 100644
--- a/Source/SPUserManager.m
+++ b/Source/SPUserManager.m
@@ -671,7 +671,7 @@
[[[user parent] valueForKey:@"password"] tickQuotedString]];
// Create user in database
- [self.mySqlConnection queryString:[NSString stringWithFormat:createStatement]];
+ [self.mySqlConnection queryString:createStatement];
if ([self checkAndDisplayMySqlError]) {
[self grantPrivilegesToUser:user];
@@ -702,9 +702,9 @@
// in a try/catch check to avoid exceptions for unhandled privs
@try {
if ([[user valueForKey:key] boolValue] == TRUE) {
- [grantPrivileges addObject:[NSString stringWithFormat:@"%@", [privilege replaceUnderscoreWithSpace]]];
+ [grantPrivileges addObject:[privilege replaceUnderscoreWithSpace]];
} else {
- [revokePrivileges addObject:[NSString stringWithFormat:@"%@", [privilege replaceUnderscoreWithSpace]]];
+ [revokePrivileges addObject:[privilege replaceUnderscoreWithSpace]];
}
}
@catch (NSException * e) {
@@ -718,7 +718,7 @@
[[[user parent] valueForKey:@"user"] tickQuotedString],
[[user valueForKey:@"host"] tickQuotedString]];
DLog(@"%@", grantStatement);
- [self.mySqlConnection queryString:[NSString stringWithFormat:grantStatement]];
+ [self.mySqlConnection queryString:grantStatement];
[self checkAndDisplayMySqlError];
}
@@ -730,7 +730,7 @@
[[[user parent] valueForKey:@"user"] tickQuotedString],
[[user valueForKey:@"host"] tickQuotedString]];
DLog(@"%@", revokeStatement);
- [self.mySqlConnection queryString:[NSString stringWithFormat:revokeStatement]];
+ [self.mySqlConnection queryString:revokeStatement];
[self checkAndDisplayMySqlError];
}
}