diff options
author | Bibiko <bibiko@eva.mpg.de> | 2010-12-10 19:33:53 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2010-12-10 19:33:53 +0000 |
commit | 22028889fba4e487d132b4c42f8a22df5922a5c8 (patch) | |
tree | 15f8a0cd761406f5879bfd76e4c7633821f61f01 | |
parent | 31a6e2c7d4f6503a00d24a75c820123c1cce7562 (diff) | |
download | sequelpro-22028889fba4e487d132b4c42f8a22df5922a5c8.tar.gz sequelpro-22028889fba4e487d132b4c42f8a22df5922a5c8.tar.bz2 sequelpro-22028889fba4e487d132b4c42f8a22df5922a5c8.zip |
• avoided to execute SHOW VARIABLES LIKE 'character_set_database' twice for setting shell variables for Bundle commands
-rw-r--r-- | Source/SPDatabaseDocument.m | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/SPDatabaseDocument.m b/Source/SPDatabaseDocument.m index 216a3004..c51a87e3 100644 --- a/Source/SPDatabaseDocument.m +++ b/Source/SPDatabaseDocument.m @@ -4852,8 +4852,7 @@ if ([self port]) [env setObject:[self port] forKey:@"SP_CURRENT_PORT"]; - if ([self databaseEncoding]) - [env setObject:[self databaseEncoding] forKey:@"SP_DATABASE_ENCODING"]; + [env setObject:([self databaseEncoding])?:@"" forKey:@"SP_DATABASE_ENCODING"]; } |