aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPSQLExporter.m
diff options
context:
space:
mode:
authorMax <post@wickenrode.com>2015-10-04 04:14:39 +0200
committerMax <post@wickenrode.com>2015-10-04 04:19:37 +0200
commitfb6e001dfbec290a528702e3943eba369ca49cd9 (patch)
treef91e04a7f6e35c5fe6272473ef2965a4276f7040 /Source/SPSQLExporter.m
parentd75cf63f3113fa7d70872bcf8abba84e0cfad375 (diff)
downloadsequelpro-fb6e001dfbec290a528702e3943eba369ca49cd9.tar.gz
sequelpro-fb6e001dfbec290a528702e3943eba369ca49cd9.tar.bz2
sequelpro-fb6e001dfbec290a528702e3943eba369ca49cd9.zip
Fix export of BIT fields in SQL (#2262)
Diffstat (limited to 'Source/SPSQLExporter.m')
-rw-r--r--Source/SPSQLExporter.m5
1 files changed, 2 insertions, 3 deletions
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;
}