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

Like Condition #34

Closed
haan78 opened this issue Jul 27, 2020 · 3 comments
Closed

Like Condition #34

haan78 opened this issue Jul 27, 2020 · 3 comments
Assignees
Labels
enhancement New feature or request release candidate
Milestone

Comments

@haan78
Copy link

haan78 commented Jul 27, 2020

I added these lines into the
HelpersTrait->verifyWhereConditions

else if ( $condition === "like" ) {
if ( strpos($fieldValue,$value) === false ) return false;
}
it looks fine.

@rakibtg rakibtg added the enhancement New feature or request label Jul 29, 2020
@rakibtg
Copy link
Member

rakibtg commented Jul 31, 2020

I think using regular expression instead of strpos would be a better idea to mimic the behaviour of the LIKE clause.

@Timu57
Copy link
Member

Timu57 commented Sep 26, 2020

#40 new Like-Condition, implemented with regular expressions and preg_match

@Timu57
Copy link
Member

Timu57 commented Dec 18, 2020

The like condition now supports all wildcards shown in https://www.w3schools.com/sql/sql_wildcards.asp at Wildcard Characters in SQL Server

@Timu57 Timu57 added this to the Version 2.0 milestone Jan 11, 2021
@Timu57 Timu57 closed this as completed Jan 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request release candidate
Projects
None yet
Development

No branches or pull requests

3 participants