From 815779d3dcf83c612eeca912584aa974cd2ece38 Mon Sep 17 00:00:00 2001 From: James Brooks Date: Thu, 1 Oct 2015 08:44:27 +0100 Subject: Allows UUID's within text fields. Closes #2245 --- Source/SPTableContent.m | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Source/SPTableContent.m') diff --git a/Source/SPTableContent.m b/Source/SPTableContent.m index 2b185bca..992ba0cd 100644 --- a/Source/SPTableContent.m +++ b/Source/SPTableContent.m @@ -2800,6 +2800,8 @@ static NSString *SPTableFilterSetDefaultOperator = @"SPTableFilterSetDefaultOper fieldValue = [NSString stringWithFormat:@"b'%@'", ((![[rowObject description] length] || [[rowObject description] isEqualToString:@"0"]) ? @"0" : [rowObject description])]; } else if ([fieldTypeGroup isEqualToString:@"date"] && [[rowObject description] isEqualToString:@"NOW()"]) { fieldValue = @"NOW()"; + } else if ([fieldTypeGroup isEqualToString:@"string"] && [[rowObject description] isEqualToString:@"UUID()"]) { + fieldValue = @"UUID()"; } else { fieldValue = [mySQLConnection escapeAndQuoteString:[rowObject description]]; } -- cgit v1.2.3