cancel
Showing results for 
Search instead for 
Did you mean: 

Cast string SKUs back to string

0 Kudos

Cast string SKUs back to string

Feature request from tkn98, posted on GitHub Jul 28, 2016

Array keys cast to integer on string SKUs that could represent a PHP integer, however the Mysql comparison is string based for which - to prevent a cast in Mysql - it needs string quotes. These string quotes then need again the $sku as string.

This is fixed by casting to string.

Background: If you import many records with SKU that are numeric strings, Mysql performance is impacted negatively.

2 Comments
apiuser
New Member

Comment from tkn98, posted on GitHub Jul 28, 2016

Reference: Reported against 2.1 in Enterprise Gold Support in Ticket #03187206

apiuser
New Member

Comment from tkn98, posted on GitHub Aug 01, 2016

In my opinion at this time Magento developers are considering this as planning to fix for a future release of Magento and I have the feeling that they are not able to give a time frame on which release it would be but it should be in the next two ones.