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

Add possibility to have expression on right hand side of like #591

Merged
merged 6 commits into from
Sep 30, 2017

Conversation

mcfedr
Copy link
Contributor

@mcfedr mcfedr commented Jan 16, 2017

Sometimes you need to use like with an expression on the right, i.e. the pattern is in the database

My use case is searching in a list of domain names, the table contains a single column domain, the SQL I want is:

WHERE 'www.facebook.com' LIKE '%' || domain;

The code, with the changes is

"www.facebook.com".like("%" + Expression<String>("domain"))

@mcfedr
Copy link
Contributor Author

mcfedr commented Apr 18, 2017

@stephencelis any chance you want to merge this? or any changes you would like to see?

@jberkel
Copy link
Collaborator

jberkel commented Sep 28, 2017

thanks, moved this PR into release branch

@jberkel jberkel merged commit a161903 into stephencelis:master Sep 30, 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

Successfully merging this pull request may close these issues.

2 participants