From a775a239236256729ca57898e94082b40d087c51 Mon Sep 17 00:00:00 2001 From: Abhi Beckert Date: Fri, 3 Mar 2017 14:15:11 +1000 Subject: #2711 no-longer truncate binary columns whlie editing --- Source/SPTableContentDataSource.m | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Source/SPTableContentDataSource.m b/Source/SPTableContentDataSource.m index 21422865..34b886d4 100644 --- a/Source/SPTableContentDataSource.m +++ b/Source/SPTableContentDataSource.m @@ -130,8 +130,12 @@ 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]) { -- cgit v1.2.3