[MDEV-23523] CREATE SEQUENCE to accept RESTART WITH (like alter sequence) Created: 2020-08-20  Updated: 2020-08-21  Resolved: 2020-08-21

Status: Closed
Project: MariaDB Server
Component/s: Sequences
Fix Version/s: N/A

Type: Task Priority: Critical
Reporter: Daniel Black Assignee: Anel Husakovic
Resolution: Won't Fix Votes: 0
Labels: beginner-friendly

Issue Links:
Blocks
blocks MDEV-21786 mysqldump will forget sequence defini... Closed
blocks MDEV-23524 SHOW CREATE SEQUENCE to output restar... Closed

 Description   

While `ALTER SEQUENCE` could get to this value, lets get there in one step.



 Comments   
Comment by Michael Widenius [ 2020-08-21 ]

There is no reason whatsoever to have for CREATE STATEMENT... RESTART WITH

This is not part of the SQL standard (a far as I know) and neither ORACLE or PostgreSQL has it.

If one wants to start the sequence at a specific value one should use START=
If one wants to set the value for an existing sequence, one can use SETVALUE()

By the way, when asking for a new feature, please describe in detail why this is needed and how it should be used. That information is critical in deciding if a feature should be added to MariaDB or if there is already a workaround that makes the request not needed.

Generated at Thu Feb 08 09:23:02 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.