aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPFunctions.h
diff options
context:
space:
mode:
authorMax Lohrmann <dmoagx@users.noreply.github.com>2016-04-09 04:28:00 +0200
committerMax Lohrmann <dmoagx@users.noreply.github.com>2016-04-09 04:28:00 +0200
commitfc9e31b3e4bf24bbc0448ab900dfaeddf51ef4f7 (patch)
tree7da1960ca4e94048d5feb44d23925ace30dd07c3 /Source/SPFunctions.h
parent6672e0d55810a7447fd06ef1113ad88473ba7538 (diff)
downloadsequelpro-fc9e31b3e4bf24bbc0448ab900dfaeddf51ef4f7.tar.gz
sequelpro-fc9e31b3e4bf24bbc0448ab900dfaeddf51ef4f7.tar.bz2
sequelpro-fc9e31b3e4bf24bbc0448ab900dfaeddf51ef4f7.zip
* Added two helper methods for working with nil/NSNull in arrays
* Fixed a case of "Updating UI from background thread" when navigating foreign keys *within* a table * Fixed navigating foreign keys of binary columns causing exceptions if the origin table is not in latin1 and the binary data not "text like" (#2098). * As a consequence binary columns will now use Hex representation when navigating FKs. * Added a new content filter to do "= UNHEX($x)" as an interim solution
Diffstat (limited to 'Source/SPFunctions.h')
-rw-r--r--Source/SPFunctions.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/SPFunctions.h b/Source/SPFunctions.h
index 0cda7e36..6a7845c0 100644
--- a/Source/SPFunctions.h
+++ b/Source/SPFunctions.h
@@ -49,3 +49,10 @@ int SPBetterRandomBytes(uint8_t *buf, size_t count);
* @return the same value, casted to unsigned integer
*/
NSUInteger SPIntS2U(NSInteger i);
+
+/**
+ * Converts nil to NSNull for passing into arrays
+ * @return The object that was passed in or [NSNull null] if object == nil
+ * @see -[SPObjectAdditions unboxNull]
+ */
+id SPBoxNil(id object);