[MDEV-16031] SEQUENCE with zero increment is not described in mariadb documentation Created: 2018-04-25 Updated: 2018-04-26 Resolved: 2018-04-26 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Documentation, Sequences |
| Affects Version/s: | 10.3.6 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Oleksandr Byelkin | Assignee: | Ian Gilfillan |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| 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
|
| Comments |
| Comment by Oleksandr Byelkin [ 2018-04-25 ] | |||||||||||||||||||||||||||||||||||||
|
I checked implementation if increment is 0, it will be taken from global system variable:
| |||||||||||||||||||||||||||||||||||||
| Comment by Oleksandr Byelkin [ 2018-04-25 ] | |||||||||||||||||||||||||||||||||||||
|
It looks like sequence with 0 INCREMENT store current variable value, but it is invisible(!!!):
| |||||||||||||||||||||||||||||||||||||
| Comment by Oleksandr Byelkin [ 2018-04-25 ] | |||||||||||||||||||||||||||||||||||||
|
and value will be stored till rereading "increment" value from table, when it will be adjusted to current auto_increment_increment again. (Is it nice behavior?) | |||||||||||||||||||||||||||||||||||||
| Comment by Ian Gilfillan [ 2018-04-26 ] | |||||||||||||||||||||||||||||||||||||
|
I will document the current behaviour, but have reported as a separate bug in | |||||||||||||||||||||||||||||||||||||
| Comment by Ian Gilfillan [ 2018-04-26 ] | |||||||||||||||||||||||||||||||||||||
|
Documented at https://mariadb.com/kb/en/library/create-sequence/ |