-
Notifications
You must be signed in to change notification settings - Fork 20
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
Feature/find in set expression #3
Feature/find in set expression #3
Conversation
Thanks for your contribution @hungthai1401. But it is not a good fit at the current implementation state. The The The SQLite implementation is incorrect for these cases:
|
Btw you should use JSON columns instead as they don‘t have a problem with values containing |
Thanks for your suggestion @tpetry . I add |
Hello @tpetry , are you here? |
I'll need some time to refactor your PR. |
thank you so much @tpetry |
I'll delay merging this PR until laravel/framework#46558 is merged. The current implementation of query expressions can't use arbitrary strings in expressions due to SQL injection problems. Only with the PR to Laravel this class will be of use. |
@tpetry I also follow your PR. Thank you for informing me |
@tpetry I can see that you PR has been merged |
Yes, but you'll have to wait for a Laravel release that includes the PR and a few days for me to include your PR. But it will be available soon ;) |
@tpetry I got it. thank you so much |
We'll have to wait another 2 weeks. My PR laravel/framework#47210 was merged shortly after the Laravel 10.13 release. We need that release to do this: $query->where(new StringSetContains('type', new Value('blocked'))); I will polish your PR and prepare everything in the meantime. As soon as Laravel 10.14 is released I will then merge it. |
thanks for your info. I am very eager to use this syntax |
@tpetry Congratulation! Your PR has been released in v10.13.1 |
This is now released with |
@tpetry thanks for your great package. |
Hi @tpetry ,
First, thanks for your package, it's very helpful for my working.
Sometime, I worked with
FIND_IN_SET
operator in MySQL so I want to contribute for this expression.Plz take time to review it.