Permalink
Browse files

#2711 no-longer truncate binary columns whlie editing

  • Loading branch information...
abhibeckert committed Mar 3, 2017
1 parent cbf8095 commit a775a239236256729ca57898e94082b40d087c51
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 a775a23

Please sign in to comment.