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

30000Date20240417075404 - You can't specify target table 'oc_preferences' for update in FROM clause #2592

Closed
nickvergessen opened this issue Aug 12, 2024 · 3 comments · Fixed by #2593
Assignees
Labels
0. Needs triage Pending approval or rejection. This issue is pending approval. bug Something isn't working

Comments

@nickvergessen
Copy link
Member

Exception: Database error when running migration 30000Date20240417075404 for app photos An exception occurred while executing a query: SQLSTATE[HY000]: General error: 1093 You can't specify target table 'oc_preferences' for update in FROM clause
@nickvergessen nickvergessen added bug Something isn't working 0. Needs triage Pending approval or rejection. This issue is pending approval. labels Aug 12, 2024
@nickvergessen
Copy link
Member Author

Regression from #2571

@nickvergessen
Copy link
Member Author

Should split the select and the delete (don't get confused by the word update and read it as row-modification instead).
On inserting we then also need to make sure to not have an IN with more than 1k elements (oracle)

@sorbaugh
Copy link

@yemkareems, could you please take a look 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending approval or rejection. This issue is pending approval. bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants