diff options
author | James Brooks <james@bluebaytravel.co.uk> | 2015-10-01 08:44:27 +0100 |
---|---|---|
committer | James Brooks <james@bluebaytravel.co.uk> | 2015-10-01 08:44:27 +0100 |
commit | 815779d3dcf83c612eeca912584aa974cd2ece38 (patch) | |
tree | e265eb298e4748fb77b538ab8c1e2d9a9db0b910 | |
parent | c5878bdad37e353b5411d4b1a3e5233213d72a1b (diff) | |
download | sequelpro-815779d3dcf83c612eeca912584aa974cd2ece38.tar.gz sequelpro-815779d3dcf83c612eeca912584aa974cd2ece38.tar.bz2 sequelpro-815779d3dcf83c612eeca912584aa974cd2ece38.zip |
Allows UUID's within text fields. Closes #2245
-rw-r--r-- | Source/SPTableContent.m | 2 |
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]]; } |