We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b9a2d6c commit b04ca67Copy full SHA for b04ca67
Source/SPSQLExporter.m
@@ -840,7 +840,12 @@ - (NSString *)_createViewPlaceholderSyntaxForView:(NSString *)viewName
840
841
// Add the type and length information as appropriate
842
if ([column objectForKey:@"length"]) {
843
- [fieldString appendFormat:@" %@(%@)", [column objectForKey:@"type"], [column objectForKey:@"length"]];
+ NSString *length = [column objectForKey:@"length"];
844
+ NSString *decimals = [column objectForKey:@"decimals"];
845
+ if([decimals length]) {
846
+ length = [length stringByAppendingFormat:@",%@", decimals];
847
+ }
848
+ [fieldString appendFormat:@" %@(%@)", [column objectForKey:@"type"], length];
849
}
850
else if ([column objectForKey:@"values"]) {
851
[fieldString appendFormat:@" %@(", [column objectForKey:@"type"]];
0 commit comments