Commit Graph
1 Commits
Author SHA1 Message Date
Richard Newman 04fdf1ffcb Bug 1135086 - Implement in-place computed UPDATE in DBUtils. r=margaret
Sometimes it's convenient to want to do an UPDATE query like:

  UPDATE foo
  SET bar = bar | 5

or similar -- that is, refer to existing values in the SET expression.

This patch allows that, accepting an array of ContentValues and an array of
operations as input. A single UPDATE will be constructed from the entire input.
2015-02-19 21:38:18 -08:00