Created
February 6, 2013 19:45
-
-
Save romyilano/4725193 to your computer and use it in GitHub Desktop.
Dealing with null values in an SQL database for objective-C
Often there are nil values in SQL
For some reason the excellent NSNULL NullSafe open source library didn't do the trick for me
Source:
http://stackoverflow.com/questions/6107416/using-sign-percentage-symbol-in-a-sql-query-with-objective-c
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| char *ortData = (char *)sqlite3_column_text(statement, 3); | |
| NSString *ort = ortData == NULL ? nil : [[NSString alloc] initWithUTF8String:ortData]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment