commit | e9e0f18594b4e346dede853073cf7488ee8d86ee | [log] [tgz] |
---|---|---|
author | Chris Smith <cjs@google.com> | Thu Sep 08 13:37:28 2016 +0100 |
committer | Chris Smith <cjs@google.com> | Thu Sep 08 13:37:28 2016 +0100 |
tree | 1cf63e7c27ad64218e7c12005f24e6ae09bd92b8 | |
parent | 71c9c8c0c1e077060877d15f2ea5317f7167d4cd [diff] |
Make DbQueryUtils.escapeLikeValue() escape escape chars. If the escape char we choose is present in the value it also needs to be escaped for it to be treated literally. From the SQLite docs: The escape character followed by a percent symbol (%), underscore (_), or a second instance of the escape character itself matches a literal percent symbol, underscore, or a single escape character, respectively. Change-Id: Id3e401576ced26b69fe9f06d8f462733faad330e