-
Notifications
You must be signed in to change notification settings - Fork 145
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
Insert from attach datebase (no such table) #127
Comments
experiencing the same issue, |
will probably try to fix it myself, open a pull request. |
can't figure out where is the bug and even how to replicate it (sometimes it works, sometimes it doesn't). |
Any solution to this? I tried to use sqlite-android but am facing this issue consistently on my project. |
This comment was marked as outdated.
This comment was marked as outdated.
This is a workaround to requery/sqlite-android#127
Ultimate workaround: Set Journal mode to TRUNCATEI found out that if you use TRUNCATE (instead of AUTOMATIC or WRITE_AHEAD_LOGGING) journal mode when building Room database, everything works. Room.databaseBuilder(
application, MyDatabase::class.java, filename
)
.allowMainThreadQueries()
.addMigrations(*myMigrations)
.setJournalMode(RoomDatabase.JournalMode.TRUNCATE)
.openHelperFactory(RequerySQLiteOpenHelperFactory())
.build() |
Hello
I found an interesting bug that does not occur on the standard android library.
The point is that when I attach the second base, only main SELECT works, but not sub SELECT
The text was updated successfully, but these errors were encountered: