aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTablesList.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2010-07-18 17:55:11 +0000
committerrowanbeentje <rowan@beent.je>2010-07-18 17:55:11 +0000
commitfe499cde3cee2acf911273b7889a60160150c158 (patch)
tree61244ee076bfd2154114922b8b94b1e894e22456 /Source/SPTablesList.m
parent1638e26f0bb6da0c98fe9e39c4f9aadafe5f5cb1 (diff)
downloadsequelpro-fe499cde3cee2acf911273b7889a60160150c158.tar.gz
sequelpro-fe499cde3cee2acf911273b7889a60160150c158.tar.bz2
sequelpro-fe499cde3cee2acf911273b7889a60160150c158.zip
- Further tweak new table encodings to improve default-utf8 behaviour
Diffstat (limited to 'Source/SPTablesList.m')
-rw-r--r--Source/SPTablesList.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/SPTablesList.m b/Source/SPTablesList.m
index eeda411d..9e74e9d2 100644
--- a/Source/SPTablesList.m
+++ b/Source/SPTablesList.m
@@ -2067,7 +2067,8 @@
// If there is an encoding selected other than the default we must specify it in CREATE TABLE statement
if ([tableEncodingButton indexOfSelectedItem] > 0) {
NSString *encodingName = [[tableEncodingButton title] stringByMatching:@"\\((.*)\\)" capture:1L];
- charSetStatement = [NSString stringWithFormat:@"DEFAULT CHARACTER SET %@", [[tableDocumentInstance mysqlEncodingFromEncodingTag:encodingName] backtickQuotedString]];
+ if (!encodingName) encodingName = @"utf8";
+ charSetStatement = [NSString stringWithFormat:@"DEFAULT CHARACTER SET %@", [encodingName backtickQuotedString]];
}
// If there is a type selected other than the default we must specify it in CREATE TABLE statement