Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using where to add LIKE statement #86

Open
twalipo opened this issue Dec 15, 2017 · 1 comment
Open

using where to add LIKE statement #86

twalipo opened this issue Dec 15, 2017 · 1 comment

Comments

@twalipo
Copy link

twalipo commented Dec 15, 2017

how can i write a query like SELECT * FROM table_one WHERE name LIKE '%jac%' using @InexactContentUri, and i just cant get the where clause to work

@twalipo
Copy link
Author

twalipo commented Dec 16, 2017

it more like a can't use where clause here is my example
@InexactContentUri(
name = "SEARCH_QUERY",
path = Path.TUNES + "/*",
type = "vnd.android.cursor.dir/tune",
where = TuneColumns.TITLE + " LIKE ? ",
whereColumn = {},
pathSegment = 1)
public static Uri withQuery(String query){
return buildPath(Path.TUNES, query );
}
this doesn't work

@twalipo twalipo changed the title LIKE using where to add LIKE statement Dec 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant