I'm trying to make a bulk update to a column using ActiveAndroid. Here's my code:
new Update(SomeModel.class).set("Enabled = 0").execute();
But I'm getting a (Edit: My bad, the error was somewhere else). Does anyone know how to execute an StackOverflowError
.Update()
query? It doesn't say anything in ActiveAndroid's wiki.
Edit:
This syntax is correct:
new Update(SomeModel.class)
.set("Enabled = 0")
.where("Account = ?", account.getId())
.execute();
You can skip the where
if not needed.
This syntax is correct:
new Update(SomeModel.class)
.set("Enabled = 0")
.where("Account = ?", account.getId())
.execute();
You can skip the where if not needed.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With