Permalink
Browse files

Merge pull request #2712 from abhibeckert/master

#2711 no-longer truncate binary columns whlie editing
  • Loading branch information...
abhibeckert committed Mar 3, 2017
2 parents 8b69a9e + a775a23 commit 82001c4ebcc37c593b7cd8e5760ff0daa704a05e
Showing with 6 additions and 2 deletions.
  1. +6 −2 Source/SPTableContentDataSource.m
@@ -130,8 +130,12 @@ - (id)tableView:(SPCopyTable *)tableView objectValueForTableColumn:(NSTableColum
fieldEditorCheckLock = &tableValuesLock;
}
// Always retrieve the short string representation, truncating the value where necessary
return [value shortStringRepresentationUsingEncoding:[mySQLConnection stringEncoding]];
// Unless we're editing, always retrieve the short string representation, truncating the value where necessary
if ([tableView editedColumn] == (NSInteger)columnIndex || [tableView editedRow] == rowIndex) {
return [value stringRepresentationUsingEncoding:[mySQLConnection stringEncoding]];
} else {
return [value shortStringRepresentationUsingEncoding:[mySQLConnection stringEncoding]];
}
}
if ([value isSPNotLoaded]) {

0 comments on commit 82001c4

Please sign in to comment.