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

Fix auto_increment implementation for Oracle #4733

Merged
merged 1 commit into from
Jul 31, 2021

Conversation

mondrake
Copy link
Contributor

@mondrake mondrake commented Jul 26, 2021

Fixes #4725.

Obviously, different behavior per platform is not something very attractive, but at least with this MR we make Oracle behave like MySql and SQLite, and add tests for all the platforms (except MS Sql that does not allow arbitrary values in INSERT for identity columns).

tests/Functional/AutoincrementColumnTest.php Outdated Show resolved Hide resolved
tests/Functional/AutoincrementColumnTest.php Outdated Show resolved Hide resolved
tests/Functional/AutoincrementColumnTest.php Outdated Show resolved Hide resolved
tests/Functional/AutoincrementColumnTest.php Outdated Show resolved Hide resolved
@morozov
Copy link
Member

morozov commented Jul 31, 2021

@mondrake do you mind if I update the test myself and push it to your branch? Otherwise, the review is taking too much time on my end.

@mondrake
Copy link
Contributor Author

Not at all, you’re welcome

Co-authored-by: Sergei Morozov <morozov@tut.by>
@morozov morozov added this to the 3.1.2 milestone Jul 31, 2021
@morozov morozov changed the title Fix Oracle autoinsert behaviour and add a functional test Fix auto_increment implementation for Oracle Jul 31, 2021
@morozov morozov merged commit 7ac46c8 into doctrine:3.1.x Jul 31, 2021
@morozov
Copy link
Member

morozov commented Jul 31, 2021

Thanks, @mondrake.

@mondrake mondrake deleted the patch-1 branch July 31, 2021 16:57
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 1, 2022
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.

OraclePlatform::getCreateAutoincrementSql forces sequence value in autoincrement column
2 participants