According to android documentation it has full sqlite support. Does it mean that I can use core functions as part of projection for query, like this:
final ContentResolver cr = getContentResolver();
final String [] projection = new String []{
...,
...,
"replace(...) as replacedCol"
};
Cursor c = cr.query(uri, projection, null, null, null);
This snippet throws IllegalArgumentException (Invalid column replace(…)).
So is there way to use core functions in sqlite queries?
edit the error is likely to be caused by ContentProvider, which checks for allowed columns, so it seems that using functions with content resolver is impossible.
projection in provider query <> columns in sql query
usually ContentProvider contains
and in query method of ContentProvider we use it like
so SQLiteQueryBuilder translate projection to real query using the map