diff options
author | rowanbeentje <rowan@beent.je> | 2009-03-03 23:39:15 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2009-03-03 23:39:15 +0000 |
commit | f716a08986866455792ccbb3a7d16c4e72028ade (patch) | |
tree | ebaca750fce2911d60f70c8ffdf409a122cff527 /Source/TableDump.m | |
parent | edd1d6f093a5d6d3301a8f8cade43b051bd69083 (diff) | |
download | sequelpro-f716a08986866455792ccbb3a7d16c4e72028ade.tar.gz sequelpro-f716a08986866455792ccbb3a7d16c4e72028ade.tar.bz2 sequelpro-f716a08986866455792ccbb3a7d16c4e72028ade.zip |
- BLOB and binary fields are now fully visible and editable again (fixes Issue #155)
- Added basic support for viewing, filtering, and editing BIT columns (resolves Issue #127 in basic form)
- Rewrites selection/save handling. Rows are now only written to database if their content has changed, resolving a long-standing complaint; row selection and editing has also been improved, improving edit/save interaction (fixes Issue #157) and allowing re-editing of the row on failure (fixes Issue #115). Hopefully also addresses #Issue 131, and improves Issue #172.
- Hides the console window when the associated document window closes
Diffstat (limited to 'Source/TableDump.m')
-rw-r--r-- | Source/TableDump.m | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/TableDump.m b/Source/TableDump.m index 0b134bf3..5c813407 100644 --- a/Source/TableDump.m +++ b/Source/TableDump.m @@ -1098,6 +1098,8 @@ // Retrieve the contents of this cell if ([[csvRow objectAtIndex:j] isKindOfClass:[NSData class]]) { dataConversionString = [[NSString alloc] initWithData:[csvRow objectAtIndex:j] encoding:tableEncoding]; + if (dataConversionString == nil) + dataConversionString = [[NSString alloc] initWithData:[csvRow objectAtIndex:j] encoding:NSASCIIStringEncoding]; [csvCell setString:[NSString stringWithString:dataConversionString]]; [dataConversionString release]; } else { @@ -1438,6 +1440,8 @@ // Retrieve the contents of this tag if ([[xmlRow objectAtIndex:j] isKindOfClass:[NSData class]]) { dataConversionString = [[NSString alloc] initWithData:[xmlRow objectAtIndex:j] encoding:tableEncoding]; + if (dataConversionString == nil) + dataConversionString = [[NSString alloc] initWithData:[xmlRow objectAtIndex:j] encoding:NSASCIIStringEncoding]; [xmlItem setString:[NSString stringWithString:dataConversionString]]; [dataConversionString release]; } else { |