aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2013-04-28 23:00:56 +0000
committerrowanbeentje <rowan@beent.je>2013-04-28 23:00:56 +0000
commit0e9744a04fcdba20d73ea5b56cf2bee0d9eee24c (patch)
treeb924f1c821aee71f002b7eebcd61c37bcfa1bacd /Source
parent713a15cfbe02f9acdac5277ed602cf440efd54e4 (diff)
downloadsequelpro-0e9744a04fcdba20d73ea5b56cf2bee0d9eee24c.tar.gz
sequelpro-0e9744a04fcdba20d73ea5b56cf2bee0d9eee24c.tar.bz2
sequelpro-0e9744a04fcdba20d73ea5b56cf2bee0d9eee24c.zip
- Fix another issue causing ALTER statements to error for binary column types being edited, further addressing Issue #1265
Diffstat (limited to 'Source')
-rw-r--r--Source/SPTableStructure.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPTableStructure.m b/Source/SPTableStructure.m
index 581011cf..e79152bd 100644
--- a/Source/SPTableStructure.m
+++ b/Source/SPTableStructure.m
@@ -796,7 +796,7 @@
}
// ADD COLLATE
- if([fieldEncoding length] && [[theRow objectForKey:@"collation"] integerValue] > 0) {
+ if([fieldEncoding length] && [[theRow objectForKey:@"collation"] integerValue] > 0 && ![[theRow objectForKey:@"binary"] integerValue]) {
NSArray *theCollations = [databaseDataInstance getDatabaseCollationsForEncoding:fieldEncoding];
NSString *col = [[theCollations objectAtIndex:[[theRow objectForKey:@"collation"] integerValue]-1] objectForKey:@"COLLATION_NAME"];
[queryString appendFormat:@"\n COLLATE %@", col];