-
Notifications
You must be signed in to change notification settings - Fork 6
Remove not needed statements that are also stored in SqlStatementRepository #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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Beside the comments in the code, it would be nice, if you can also delete the appropriate constants in the class, if not needed anymore.
is_autogenerated = :is_autogenerated, | ||
metadata = :metadata | ||
WHERE url_rewrite_id = :url_rewrite_id', | ||
SqlStatementKeys::CREATE_URL_REWRITE_PRODUCT_CATEGORY => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not available in 'TechDivision\Import\Utils\SqlStatements' and can therefor not been deleted.
VALUES (:url_rewrite_id, | ||
:category_id, | ||
:product_id)', | ||
SqlStatementKeys::UPDATE_URL_REWRITE_PRODUCT_CATEGORY => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not available in 'TechDivision\Import\Utils\SqlStatements' and can therefor not been deleted.
SET category_id = :category_id, | ||
product_id = :product_id | ||
WHERE url_rewrite_id = :url_rewrite_id', | ||
SqlStatementKeys::DELETE_URL_REWRITE_PRODUCT_CATEGORY => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not available in 'TechDivision\Import\Utils\SqlStatements' and can therefor not been deleted.
'DELETE | ||
FROM catalog_url_rewrite_product_category | ||
WHERE url_rewrite_id = :url_rewrite_id', | ||
SqlStatementKeys::URL_REWRITE_PRODUCT_CATEGORY => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not available in 'TechDivision\Import\Utils\SqlStatements' and can therefor not been deleted.
'SELECT * | ||
FROM catalog_url_rewrite_product_category | ||
WHERE url_rewrite_id = :url_rewrite_id', | ||
SqlStatementKeys::URL_REWRITES_BY_SKU => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not available in 'TechDivision\Import\Utils\SqlStatements' and can therefor not been deleted.
WHERE t1.sku = :sku | ||
AND t2.entity_id = t1.entity_id | ||
AND t2.entity_type = \'product\'', | ||
SqlStatementKeys::URL_REWRITE_PRODUCT_CATEGORIES_BY_SKU => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not available in 'TechDivision\Import\Utils\SqlStatements' and can therefor not been deleted.
Hi @wagnert, the deleted code seems to be copied from the SqlStatementRepository class. |
Will be fixed with the next release. |
Remove not needed statements that are also stored in SqlStatementRepository