Created
April 2, 2011 17:38
-
-
Save naan/899694 to your computer and use it in GitHub Desktop.
This file contains 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
Statement *stmt = [database statementWithQuery:@"PRAGMA index_info(statuses_retweeted_status_id)"]; | |
[stmt step]; | |
NSString *val = [stmt getUTF8String:2]; | |
if ([val isEqualToString:@"retweeted_status"] == NO) { | |
[dbm close:database]; | |
[dbm unlink:filename]; | |
database = [dbm open:filename]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment