Skip to content
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

MySQLのためにdelete文サブクエリの修正 #60

Merged
merged 1 commit into from
Feb 12, 2021

Conversation

dk-umebius
Copy link
Contributor

@dk-umebius dk-umebius commented Feb 11, 2021

問題

MySQLで実行すると下記のエラーが発生する(ポスグレでは起きなかった)

An exception occurred while executing 'delete from dtb_product_tag where id in (
select t1.id from dtb_product_tag t1 left join dtb_tag t2 on t1.tag_id = t2.id where t2.id is null
);':

SQLSTATE[HY000]: General error: 1093 You can't specify target table 'dtb_product_tag' for update in FROM clause

修正

DELETE文のサブクエリの修正

環境

現在のHEADで発生 環境は用意されているDockerFileでのMySQL環境

@nobuhiko nobuhiko merged commit d5cc0cb into EC-CUBE:master Feb 12, 2021
@okazy okazy added the bug Something isn't working label Feb 17, 2021
@okazy okazy added this to the 2.0.x milestone Feb 17, 2021
@okazy okazy modified the milestones: 2.0.x, 2.0.2 Feb 24, 2021
@chihiro-adachi chihiro-adachi modified the milestones: 2.0.2, 2.1.0 Mar 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants