We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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
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.
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.
The text was updated successfully, but these errors were encountered:
Do you really need to use that weird command instead of fully standard-compliant
VALUES NEXT VALUE FOR sequenceName;
that works in both DB2 and H2?
Sorry, something went wrong.
Thank you. I will change to use VALUES NEXT VALUE FOR sequenceName in my code.
VALUES NEXT VALUE FOR sequenceName
Successfully merging a pull request may close this issue.
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.
The text was updated successfully, but these errors were encountered: