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

A delete query for a table named "'transaction'" locks indefinitely #724

Open
ZakTaccardi opened this issue Nov 29, 2016 · 1 comment
Open
Assignees
Labels

Comments

@ZakTaccardi
Copy link

 val TABLE = "'transaction'" //notice the single quote escaping, because "transaction" is a sqlite reserved keyword
val QUERY_DELETE_ALL = DeleteQuery.builder().table(TABLE).build()

storIo.delete()
                .byQuery(QUERY_DELETE_ALL)
                .prepare()
                .executeAsBlocking()

I had to rename the table to be "transactions" to workaround the issue.

@artem-zinnatullin
Copy link
Member

Well, I guess SQLite just forbids deletion of this table, no? :) Can you please try to remove it using underlying SQLiteOpenHelper directly?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants