Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jul 7, 2022. It is now read-only.

Commit bb8eabf

Browse files
committed
Fixed creating in-memory databases on android
Instead of the flags, we now pass 'null' to SQLiteDatabase.create
1 parent ef8de9b commit bb8eabf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sqlite.android.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ function Database(dbname, options, callback) {
354354
Database.prototype._openDatabase = function(dbName, flags) {
355355
if (dbName === ":memory:") {
356356
//noinspection JSUnresolvedVariable
357-
return android.database.sqlite.SQLiteDatabase.create(flags);
357+
return android.database.sqlite.SQLiteDatabase.create(null);
358358
} else {
359359
//noinspection JSUnresolvedVariable,JSUnresolvedFunction
360360
return android.database.sqlite.SQLiteDatabase.openDatabase(dbName, null, flags | 0x10000000);

0 commit comments

Comments
 (0)