We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Eg, it generates attribute aliases without apostrophes:
WHERE (`e`.`attribute_set_id` = '10') AND (at_fmfid.value != '') AND (at_sgid.value != '') AND (at_44-01.value = 200233)
instead of:
WHERE (`e`.`attribute_set_id` = '10') AND (`at_fmfid`.`value` != '') AND (`at_sgid`.`value` != '') AND (`at_44-01`.`value` = 200233)
The second example is the proper and the reliable one according to MySQL syntax.
The bug is on line: app/code/core/Mage/Eav/Model/Entity/Collection/Abstract.php:1388
$field = $this->_getAttributeTableAlias($attribute) . '.value';
which should be: $field = $this->getConnection()->quoteIdentifier($this->_getAttributeTableAlias($attribute) . '.value');
$field = $this->getConnection()->quoteIdentifier($this->_getAttributeTableAlias($attribute) . '.value');
The text was updated successfully, but these errors were encountered:
Agreed, would you submit a PR, please?
Sorry, something went wrong.
@kanevbg - If this is a bug in OpenMage please submit a PR for being tested. Thank you.
No branches or pull requests
Eg, it generates attribute aliases without apostrophes:
instead of:
The second example is the proper and the reliable one according to MySQL syntax.
The bug is on line: app/code/core/Mage/Eav/Model/Entity/Collection/Abstract.php:1388
$field = $this->_getAttributeTableAlias($attribute) . '.value';
which should be:
$field = $this->getConnection()->quoteIdentifier($this->_getAttributeTableAlias($attribute) . '.value');
The text was updated successfully, but these errors were encountered: