diff options
author | Abhi Beckert <abhi@abhibeckert.com> | 2017-03-03 14:15:11 +1000 |
---|---|---|
committer | Abhi Beckert <abhi@abhibeckert.com> | 2017-03-03 14:15:11 +1000 |
commit | a775a239236256729ca57898e94082b40d087c51 (patch) | |
tree | 514e347cc52feb082e5d11f90a65dcdd81488c06 /Source | |
parent | cbf8095cddad4b214c776f355f7ae398763fe431 (diff) | |
download | sequelpro-a775a239236256729ca57898e94082b40d087c51.tar.gz sequelpro-a775a239236256729ca57898e94082b40d087c51.tar.bz2 sequelpro-a775a239236256729ca57898e94082b40d087c51.zip |
#2711 no-longer truncate binary columns whlie editing
Diffstat (limited to 'Source')
-rw-r--r-- | Source/SPTableContentDataSource.m | 8 |
1 files 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]) { |