aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableContent.m
diff options
context:
space:
mode:
authorJames Brooks <james@bluebaytravel.co.uk>2015-10-01 08:44:27 +0100
committerJames Brooks <james@bluebaytravel.co.uk>2015-10-01 08:44:27 +0100
commit815779d3dcf83c612eeca912584aa974cd2ece38 (patch)
treee265eb298e4748fb77b538ab8c1e2d9a9db0b910 /Source/SPTableContent.m
parentc5878bdad37e353b5411d4b1a3e5233213d72a1b (diff)
downloadsequelpro-815779d3dcf83c612eeca912584aa974cd2ece38.tar.gz
sequelpro-815779d3dcf83c612eeca912584aa974cd2ece38.tar.bz2
sequelpro-815779d3dcf83c612eeca912584aa974cd2ece38.zip
Allows UUID's within text fields. Closes #2245
Diffstat (limited to 'Source/SPTableContent.m')
-rw-r--r--Source/SPTableContent.m2
1 files changed, 2 insertions, 0 deletions
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]];
}