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

UniqueConstraintViolationException overview ticket #12369

Open
6 of 15 tasks
MorrisJobke opened this issue Nov 9, 2018 · 4 comments
Open
6 of 15 tasks

UniqueConstraintViolationException overview ticket #12369

MorrisJobke opened this issue Nov 9, 2018 · 4 comments
Labels

Comments

@MorrisJobke
Copy link
Member

MorrisJobke commented Nov 9, 2018

@nextcloud-bot

This comment has been minimized.

MorrisJobke added a commit that referenced this issue Nov 9, 2018
This is the most common case for the usage of this method.

See also #12369 and the linked tickets.

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
@MorrisJobke MorrisJobke self-assigned this Nov 14, 2018
@MorrisJobke MorrisJobke modified the milestones: Nextcloud 16, Nextcloud 17 Apr 5, 2019
@stale

This comment was marked as outdated.

@stale stale bot added the stale Ticket or PR with no recent activity label Jun 5, 2019
@skjnldsv skjnldsv added the 2. developing Work in progress label Jun 12, 2019
@ghost ghost removed the stale Ticket or PR with no recent activity label Jun 12, 2019
@rullzer rullzer modified the milestones: Nextcloud 17.0.4, Nextcloud 17.0.5 Mar 11, 2020
@rullzer rullzer modified the milestones: Nextcloud 17.0.5, Nextcloud 17.0.6 Mar 23, 2020
@kesselb kesselb removed this from the Nextcloud 17.0.6 milestone Apr 11, 2020
@J0WI
Copy link
Contributor

J0WI commented Dec 27, 2020

The insertIgnoreConflict function introduced in #13721 might be an even better fix.
See also:

@J0WI
Copy link
Contributor

J0WI commented Feb 22, 2022

The insertIgnoreConflictpattern does not work for all, some, including #19494, need a insertOrUpdate. The main blocker there is that Doctrine DBAL does not support the ON CONFLICT ... DO UPDATE SET syntax. Is there any other way to avoid writing fields and values in plain SQL?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants