diff options
author | rowanbeentje <rowan@beent.je> | 2013-04-28 23:00:56 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2013-04-28 23:00:56 +0000 |
commit | 0e9744a04fcdba20d73ea5b56cf2bee0d9eee24c (patch) | |
tree | b924f1c821aee71f002b7eebcd61c37bcfa1bacd | |
parent | 713a15cfbe02f9acdac5277ed602cf440efd54e4 (diff) | |
download | sequelpro-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
-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 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]; |