Skip to content

Disable WAL-mode File Format in sqlite for Android 9 #887

@avarelahn

Description

@avarelahn

Hello, I have a problem with my application in the android pie version.
When executing the select using this.sqlite.create () to my database, I get the error: code: 5
message: "sqlite3_prepare_v2 failure: no such table: products"
Apparently I created the database but not the table, in previous versions my application worked great, but in the Pie version or greater it gives me this problem. I read that Android 9 introduces an activated default functionality called WAL (write-ahead logging) but I don't know how to disable this in my code, someone could help me with this, I would appreciate it.


From @brodybits: this is only an issue when the androidDatabaseProvider: 'system' setting is used when opening the database. See below for further discussion with the user community.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions