From fb6e001dfbec290a528702e3943eba369ca49cd9 Mon Sep 17 00:00:00 2001 From: Max Date: Sun, 4 Oct 2015 04:14:39 +0200 Subject: Fix export of BIT fields in SQL (#2262) --- Source/SPExportInitializer.m | 2 +- Source/SPSQLExporter.m | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Source/SPExportInitializer.m b/Source/SPExportInitializer.m index 7794d1e4..03284525 100644 --- a/Source/SPExportInitializer.m +++ b/Source/SPExportInitializer.m @@ -65,7 +65,7 @@ [exportProgressIndicator setIndeterminate:NO]; [exportProgressIndicator setDoubleValue:0]; - // If it's not already displayed, open the progress sheet open the progress sheet. + // If it's not already displayed, open the progress sheet if (![exportProgressWindow isVisible]) { [NSApp beginSheet:exportProgressWindow modalForWindow:[tableDocumentInstance parentWindow] diff --git a/Source/SPSQLExporter.m b/Source/SPSQLExporter.m index 079ea8b9..fb854bce 100644 --- a/Source/SPSQLExporter.m +++ b/Source/SPSQLExporter.m @@ -315,9 +315,8 @@ useRawHexDataForColumnAtIndex[j] = YES; } - // Floats, integers and bits can be output directly assuming they're non-binary - if (![[theColumnDetail objectForKey:@"binary"] boolValue] - && ([theTypeGrouping isEqualToString:@"bit"] || [theTypeGrouping isEqualToString:@"integer"] || [theTypeGrouping isEqualToString:@"float"])) + // Floats, integers can be output directly assuming they're non-binary + if (![[theColumnDetail objectForKey:@"binary"] boolValue] && ([@[@"integer",@"float"] containsObject:theTypeGrouping])) { useRawDataForColumnAtIndex[j] = YES; } -- cgit v1.2.3