Skip to content

Support for NEXTVAL property in DB2 mode #3515

@kdebski85

Description

@kdebski85

I use H2 in DB2 mode for tests.

I am getting the next value for a sequence with:
SELECT TEST_SEQUENCE.NEXTVAL FROM SYSIBM.SYSDUMMY1

It worked fine for both DB2 (LUW) and H2 (in DB2 mode).
After I upgraded H2 to 2.1.212, it stopped working.

http://www.h2database.com/html/migration-to-v2.html says that
Undocumented Oracle-style .NEXTVAL and .CURRVAL expressions are restricted to Oracle compatibility mode.

However, this expression should also work in DB2 mode because it works on real DB2.

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