Permalink
Browse files

Merge pull request #2250 from JamesForks/uuid-support

Allows UUID's within text fields.
  • Loading branch information...
abhibeckert committed Mar 6, 2016
2 parents dfc79b8 + 815779d commit 27459a4238c9e5fbdd287c0fb0c8161469087d74
Showing with 2 additions and 0 deletions.
  1. +2 −0 Source/SPTableContent.m
View
@@ -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];
}

0 comments on commit 27459a4

Please sign in to comment.