Wednesday, April 4, 2012

Handing NULL value in SQLITE




                Replace   NSString *aName = [NSString stringWithUTF8String:(char *)sqlite3_column_text(compiledStatement, 0)];
               


with



 NSString *aName = [NSString stringWithFormat:@"%s",(char *)sqlite3_column_text(compiledStatement, 0)];
               

No comments:

FEEDJIT Live