Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TIMOB-17831] Remove compilation warnings #6207

Merged
merged 1 commit into from
Oct 8, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 0 additions & 1 deletion iphone/Classes/DatabaseModule.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ @implementation DatabaseModule
-(void)startup
{
// enable multi-threading
sqlite3_enable_shared_cache(TRUE);
}

-(NSString*)apiName
Expand Down
7 changes: 1 addition & 6 deletions iphone/Classes/PlausibleDatabase/PLSqliteDatabase.m
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ - (BOOL) openAndReturnError: (NSError **) error {
[NSException raise: TI_PLSqliteException format: @"Attempted to open already-open SQLite database instance at '%@'. Called -[PLSqliteDatabase open] twice?", _path];

/* Open the database */
err = sqlite3_open([_path fileSystemRepresentation], &_sqlite);
err = sqlite3_open_v2([_path fileSystemRepresentation], &_sqlite, SQLITE_OPEN_SHAREDCACHE | SQLITE_OPEN_READWRITE, NULL);
if (err != SQLITE_OK) {
[self populateError: error
withErrorCode: PLDatabaseErrorFileNotFound
Expand Down Expand Up @@ -519,9 +519,4 @@ - (sqlite3_stmt *) createStatement: (NSString *) statement error: (NSError **) e
return sqlite_stmt;
}

- (sqlite3 *) sqliteDB;
{
return _sqlite;
}

@end