aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableStructureLoading.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2013-04-16 23:54:06 +0000
committerrowanbeentje <rowan@beent.je>2013-04-16 23:54:06 +0000
commit758789b3bba80f91182730841cb54ba0f3c86de4 (patch)
treead35144df108617d9b4d7783b525c3a3634feae5 /Source/SPTableStructureLoading.m
parentae0304a33c1f960e0272b25ee40a1529993317c4 (diff)
downloadsequelpro-758789b3bba80f91182730841cb54ba0f3c86de4.tar.gz
sequelpro-758789b3bba80f91182730841cb54ba0f3c86de4.tar.bz2
sequelpro-758789b3bba80f91182730841cb54ba0f3c86de4.zip
- Fix string type detection, addressing errors when converting string types to blob or binary fields (addressing Issue #1453)
Diffstat (limited to 'Source/SPTableStructureLoading.m')
-rw-r--r--Source/SPTableStructureLoading.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPTableStructureLoading.m b/Source/SPTableStructureLoading.m
index 89a731a8..720f2692 100644
--- a/Source/SPTableStructureLoading.m
+++ b/Source/SPTableStructureLoading.m
@@ -170,7 +170,7 @@
NSString *collation = nil;
NSString *encoding = nil;
- if ([fieldValidation isFieldTypeString:type] && ![type hasSuffix:@"BINARY"] && ![type hasSuffix:@"BLOB"]) {
+ if ([fieldValidation isFieldTypeString:type]) {
collation = [theField objectForKey:@"collation"] ? [theField objectForKey:@"collation"] : [[tableDataInstance statusValues] objectForKey:@"collation"];
encoding = [theField objectForKey:@"encoding"] ? [theField objectForKey:@"encoding"] : [tableDataInstance tableEncoding];