aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPConnectionDelegate.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2011-05-29 15:38:17 +0000
committerrowanbeentje <rowan@beent.je>2011-05-29 15:38:17 +0000
commite345cd9a9a4d825132c97ac023101e538ea911d3 (patch)
treedcb3e464982c0834a2fc692627a3189f3a510b6f /Source/SPConnectionDelegate.m
parent3b5ac2fb159a810778c7fd65b92b653d16fd86a5 (diff)
downloadsequelpro-e345cd9a9a4d825132c97ac023101e538ea911d3.tar.gz
sequelpro-e345cd9a9a4d825132c97ac023101e538ea911d3.tar.bz2
sequelpro-e345cd9a9a4d825132c97ac023101e538ea911d3.zip
- Ensure blank passwords for MySQL connections are passed in as NULL instead of an empty string; the MySQL manual suggests that maybe we should be doing this, and it may address Issue #1065.
Diffstat (limited to 'Source/SPConnectionDelegate.m')
-rw-r--r--Source/SPConnectionDelegate.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPConnectionDelegate.m b/Source/SPConnectionDelegate.m
index f02d5648..58482d1c 100644
--- a/Source/SPConnectionDelegate.m
+++ b/Source/SPConnectionDelegate.m
@@ -75,7 +75,7 @@
{
// If no keychain item is available, return an empty password
- if (![connectionController connectionKeychainItemName]) return @"";
+ if (![connectionController connectionKeychainItemName]) return nil;
// Otherwise, pull the password from the keychain using the details from this connection
SPKeychain *keychain = [[SPKeychain alloc] init];