Skip to content

ORACLE r2dbc update instead of insert #1880

Not planned
Not planned
@ali-rezvani

Description

@ali-rezvani

Spring Boot 3.3.3 RELEASE
Spring Data R2DBC 3.3.3
R2DBC-(ORACLE) 1.2.0

If I call #save on a new unchanged entity, then currently, I am getting an error: Failed to update table [%s]. Row with Id [%s] does not exist.

I am using the [oracle-r2dbc] (https://github.com/oracle/oracle-r2dbc) library

If I alter my path to ensure the item is always actually updated, before save gets called, then it succeeds as expected.

As this is a nested entity, it is being saved as a side-effect of the primary entity.

Is this a bug, as it worked previously for me, or do I need to update the code flow to perform a read and check if anything has changed before I call save?

Activity

mp911de

mp911de commented on Sep 13, 2024

@mp911de
Member

If you would like us to spend some time helping you to diagnose the problem, please spend some time describing it and, ideally, providing a minimal yet complete sample that reproduces the problem.
You can share it with us by pushing it to a separate repository on GitHub or by zipping it up and attaching it to this issue.

Spring Data R2DBC doesn't support nested entities so having a reproducer would help us understand what you're doing.

spring-projects-issues

spring-projects-issues commented on Sep 20, 2024

@spring-projects-issues

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

spring-projects-issues

spring-projects-issues commented on Sep 27, 2024

@spring-projects-issues

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.

southwolf

southwolf commented on Dec 19, 2024

@southwolf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @schauder@southwolf@mp911de@ali-rezvani@spring-projects-issues

        Issue actions

          ORACLE r2dbc update instead of insert · Issue #1880 · spring-projects/spring-data-relational