Skip to content

Commit

Permalink
Merge pull request #6218 from muhammaddadu/TIMOB-17831
Browse files Browse the repository at this point in the history
[TIMOB-17831] Added missing flag
  • Loading branch information
pec1985 committed Oct 14, 2014
2 parents ac526c3 + 59703ed commit aa05c26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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_v2([_path fileSystemRepresentation], &_sqlite, SQLITE_OPEN_SHAREDCACHE | SQLITE_OPEN_READWRITE, NULL);
err = sqlite3_open_v2([_path fileSystemRepresentation], &_sqlite, SQLITE_OPEN_SHAREDCACHE | SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE, NULL);
if (err != SQLITE_OK) {
[self populateError: error
withErrorCode: PLDatabaseErrorFileNotFound
Expand Down

0 comments on commit aa05c26

Please sign in to comment.