Skip to content

Commit

Permalink
[sql] execute update delete for deleting table.
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzzagrosner committed May 11, 2017
1 parent 7bb00c0 commit a87dc58
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class Delete implements Query {
* @param <TModel> The class that implements {@link com.raizlabs.android.dbflow.structure.Model}
*/
public static <TModel> void table(Class<TModel> table, SQLOperator... conditions) {
new Delete().from(table).where(conditions).query();
new Delete().from(table).where(conditions).executeUpdateDelete();
}

/**
Expand Down Expand Up @@ -48,7 +48,7 @@ public <TModel> From<TModel> from(Class<TModel> table) {
@Override
public String getQuery() {
return new QueryBuilder()
.append("DELETE")
.appendSpace().getQuery();
.append("DELETE")
.appendSpace().getQuery();
}
}

0 comments on commit a87dc58

Please sign in to comment.