-
Notifications
You must be signed in to change notification settings - Fork 9.4k
#25199 Remove quotes when not necessary #25212
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
#25199 Remove quotes when not necessary #25212
Conversation
Hi @amenk. Thank you for your contribution
For more details, please, review the Magento Contributor Guide documentation. |
Actually the approach to threat all possible integers in all columns might cause problems for varchars. Because of this behavior in MySQL: http://sqlfiddle.com/#!9/1c01c9/1/0 While my patch is fine for entity_id fields, now if Magento tries to match an SKU like (string) '1', my patch would convert this to a (int) 1 and match also SKUs like '1-2', '1-3' and so on. |
Alternative patch: vendor/magento/module-catalog/Model/Indexer/Category/Product/Action/Full.php:285
|
Also strings like '23523523e2353253562356' are is_numeric == true ;) |
@mropanen you have to be careful to not threat numeric SKUs as int. This can have the side effects I described. |
While the patch indeed solves the issue with "Category Products index", it doesn't address the (same?) issue at "Product Price index". Just ending up here with:
Aside of that, it feels like the patch makes the indexer slower (factor ~ 1.5) in general. |
Hi @amenk , As we have better solution - I'm closing this PR. |
Hi @amenk, thank you for your contribution! |
see Ticket #25199