Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.3.6
-
None
Description
https://mariadb.com/kb/en/library/create-sequence/
lack information about case of INCREMENT equal to 0.
ORACLE and MSSQL prohibit it according to documentation
DB2 thread the sequence as accidental and so we do (at least according my experience)
CREATE SEQUENCE s INCREMENT 0;
|
SELECT NEXTVAL(s);
|
NEXTVAL(s)
|
1
|
SELECT NEXTVAL(s);
|
NEXTVAL(s)
|
2
|
SELECT NEXTVAL(s);
|
NEXTVAL(s)
|
3
|
Attachments
Issue Links
- relates to
-
MDEV-16035 SEQUENCE with zero increment does not behave as expected
- Closed