aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAbhi Beckert <abhi@abhibeckert.com>2016-03-06 11:11:09 +1000
committerAbhi Beckert <abhi@abhibeckert.com>2016-03-06 11:11:09 +1000
commit27459a4238c9e5fbdd287c0fb0c8161469087d74 (patch)
tree9923fc64ac44b90c22075193a70b2e02495bfeb3
parentdfc79b8c7ee2d37108b9e36822af95cfa4a31a07 (diff)
parent815779d3dcf83c612eeca912584aa974cd2ece38 (diff)
downloadsequelpro-27459a4238c9e5fbdd287c0fb0c8161469087d74.tar.gz
sequelpro-27459a4238c9e5fbdd287c0fb0c8161469087d74.tar.bz2
sequelpro-27459a4238c9e5fbdd287c0fb0c8161469087d74.zip
Merge pull request #2250 from JamesForks/uuid-support
Allows UUID's within text fields.
-rw-r--r--Source/SPTableContent.m2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/SPTableContent.m b/Source/SPTableContent.m
index ed01703f..bf45e9c5 100644
--- a/Source/SPTableContent.m
+++ b/Source/SPTableContent.m
@@ -2808,6 +2808,8 @@ static NSString *SPTableFilterSetDefaultOperator = @"SPTableFilterSetDefaultOper
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];
}