diff options
author | Max <post@wickenrode.com> | 2015-10-04 04:14:39 +0200 |
---|---|---|
committer | Max <post@wickenrode.com> | 2015-10-04 04:14:39 +0200 |
commit | a0641ac04022f8f6d35daa2f93d470b99494af12 (patch) | |
tree | 55c8e817f425dc6b819b26aa17a1f1272c3afa8d /Source/SPSQLExporter.m | |
parent | cbb44947b8519a17ff34c1e23dc74e00fedfe2b3 (diff) | |
download | sequelpro-a0641ac04022f8f6d35daa2f93d470b99494af12.tar.gz sequelpro-a0641ac04022f8f6d35daa2f93d470b99494af12.tar.bz2 sequelpro-a0641ac04022f8f6d35daa2f93d470b99494af12.zip |
Fix export of BIT fields in SQL (#2262)
Diffstat (limited to 'Source/SPSQLExporter.m')
-rw-r--r-- | Source/SPSQLExporter.m | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/SPSQLExporter.m b/Source/SPSQLExporter.m index f72bb72f..94506728 100644 --- a/Source/SPSQLExporter.m +++ b/Source/SPSQLExporter.m @@ -316,9 +316,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; } |