Skip to content

Fix concurrency issues for insertIfNotExists - #22443

Closed
butonic wants to merge 1 commit into
stable8.2from
fix_concurrent_insert_select_oc82
Closed

butonic wants to merge 1 commit into
stable8.2from
fix_concurrent_insert_select_oc82

Conversation

@mention-bot

Copy link
Copy Markdown

By analyzing the blame information on this pull request, we identified @bartv2, @nickvergessen and @icewind1991 to be potential reviewers

@butonic

butonic commented Feb 16, 2016

Copy link
Copy Markdown
Contributor Author

Waiting for CI, will then check with customer who has 8.2.2. Will then create PR against master.

cc @MorrisJobke

@butonic butonic added this to the 8.2.3-current-maintenance milestone Feb 16, 2016
@butonic

butonic commented Feb 16, 2016

Copy link
Copy Markdown
Contributor Author

great

Feature not supported: 7 ERROR:  FOR UPDATE is not allowed with HAVING clause 

@butonic

butonic commented Feb 16, 2016

Copy link
Copy Markdown
Contributor Author

and oracle hates me as well

11:56:29   [Doctrine\DBAL\Exception\DriverException]                                                                                                                                                                                                                                                  
11:56:29   An exception occurred while executing 'INSERT INTO "oc_appconfig" ("appid","configkey","configvalue") SELECT ?,?,? FROM "oc_appconfig" WHERE "appid" = ? AND "configkey" = ? HAVING COUNT(*) = 0 FOR UPDATE' with params ["core", "installedat", 1455641789.7204, "core", "installedat"]:  
11:56:29   ORA-00933: SQL command not properly ended


/**
* Insert a row if the matching row does not exists.
*

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can kill this file. Mssql is dead

@nickvergessen

Copy link
Copy Markdown
Contributor

As for Oracle, the linked docs say:

You can specify this clause only in a top-level SELECT statement, not in subqueries.

In this case it is a subquery of the insert...

@lock

lock Bot commented Aug 7, 2019

Copy link
Copy Markdown

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock Bot locked as resolved and limited conversation to collaborators Aug 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants