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] Added missing flag #6218

Merged
merged 1 commit into from Oct 14, 2014
Merged

Conversation

muhammaddadu
Copy link
Contributor

Jira Ticket

Added flag 'SQLITE_OPEN_CREATE' to make it behave like 'sqlite3_open()'
https://www.sqlite.org/c3ref/open.html

@pec1985
Copy link
Contributor

pec1985 commented Oct 14, 2014

Tested with this code:

var db = Ti.Database.open('TiBountyHunter');
db.execute('CREATE TABLE IF NOT EXISTS fugitives(id INTEGER PRIMARY KEY, name TEXT, captured INTEGER, url TEXT, capturedLat REAL, capturedLong REAL);');
db.close();

Before the fix, an error screen showed, "Cannot open database"
After the fix, everything went back to normal.

PR APPROVED!

pec1985 added a commit that referenced this pull request Oct 14, 2014
[TIMOB-17831] Added missing flag
@pec1985 pec1985 merged commit aa05c26 into tidev:master Oct 14, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants