Skip to content

Commit

Permalink
Merge pull request #2250 from JamesForks/uuid-support
Browse files Browse the repository at this point in the history
Allows UUID's within text fields.
  • Loading branch information
abhibeckert committed Mar 6, 2016
2 parents dfc79b8 + 815779d commit 27459a4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/SPTableContent.m
Original file line number Diff line number Diff line change
Expand Up @@ -2808,6 +2808,8 @@ - (BOOL)saveRowToTable
fieldValue = [NSString stringWithFormat:@"b'%@'", ((![desc length] || [desc isEqualToString:@"0"]) ? @"0" : desc)];
} else if ([fieldTypeGroup isEqualToString:@"date"] && [desc isEqualToString:@"NOW()"]) {
fieldValue = @"NOW()";
} else if ([fieldTypeGroup isEqualToString:@"string"] && [[rowObject description] isEqualToString:@"UUID()"]) {
fieldValue = @"UUID()";
} else {
fieldValue = [mySQLConnection escapeAndQuoteString:desc];
}
Expand Down

0 comments on commit 27459a4

Please sign in to comment.