diff options
author | rowanbeentje <rowan@beent.je> | 2013-03-19 01:32:28 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2013-03-19 01:32:28 +0000 |
commit | 46dd5cd5a759eb38aacc2e7f6e5f757fee60d3c2 (patch) | |
tree | 7b67782314f7ce52d8b95ec844532fddb85e2847 /Source/SPTableStructure.m | |
parent | f3b93d4d0d3bf2cbeb9bd512781e93d4c630f752 (diff) | |
download | sequelpro-46dd5cd5a759eb38aacc2e7f6e5f757fee60d3c2.tar.gz sequelpro-46dd5cd5a759eb38aacc2e7f6e5f757fee60d3c2.tar.bz2 sequelpro-46dd5cd5a759eb38aacc2e7f6e5f757fee60d3c2.zip |
- Fix errors when editing or moving columns on server vesions which do not support character sets/collations, addressing Issue #1629
- Fix needless collation queries on those servers
- Disable field enums and table encoding dropdown on those servers
Diffstat (limited to 'Source/SPTableStructure.m')
-rw-r--r-- | Source/SPTableStructure.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPTableStructure.m b/Source/SPTableStructure.m index dd64fa21..ec6cadae 100644 --- a/Source/SPTableStructure.m +++ b/Source/SPTableStructure.m @@ -782,7 +782,7 @@ if ([fieldValidation isFieldTypeString:theRowType]) { // Add CHARSET NSString *fieldEncoding = @""; - if([[theRow objectForKey:@"encoding"] integerValue] > 0) { + if([[theRow objectForKey:@"encoding"] integerValue] > 0 && [[tableDocumentInstance serverSupport] supportsPost41CharacterSetHandling]) { NSString *enc = [[encodingPopupCell itemAtIndex:[[theRow objectForKey:@"encoding"] integerValue]] title]; NSInteger start = [enc rangeOfString:@"("].location+1; NSInteger end = [enc length] - start - 1; |