Skip to content

Firebird 5.0.2.1613 Windows 32-bit "MERGE INTO" gives wrong returning value with the use of sequence #8743

@kuola

Description

@kuola

Execution of "MERGE INTO"-sql gives wrong RETURNING-value when using next generator value in the "USING" section. The inserted value is correct and that inserted value with "RETURNING" is also correct.

I provided an example SQL as an attachment that I ran with isql (with SYSDBA) to a freshly created database to reproduce the error.

MERGE_INTO_error.txt

I would expect the resulting value to be same for all the returned values, but the sql gives a result of:

               TESTID       TESTID       TESTID
===================== ============ ============
                    5            4            4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions