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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy