Details
-
Task
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Fixed
Description
Add support for SEQUENCES, like in PostgreSQL or Oracle:
CREATE [ TEMPORARY | TEMP ] SEQUENCE name [ INCREMENT [ BY ] increment ] |
[ MINVALUE minvalue | NO MINVALUE ] [ MAXVALUE maxvalue | NO MAXVALUE ] |
[ START [ WITH ] start ] [ CACHE cache ] [ [ NO ] CYCLE ] |
See https://www.postgresql.org/docs/8.1/static/sql-createsequence.html
for details.
The main part of the task is to add support for sequence tables in the storage engine interface. The main difference between transactional tables are only that they don't roll back when issuing a ROLLBACK statement.
Example:
CREATE SEQUENCE s1; |
SELECT s1.NEXTVAL FROM DUAL; |
Supported statements:
- CREATE SEQUENCE
- DROP SEQUENCE
- ALTER SEQUENCE
- NEXT VALUE FOR sequence_name and NEXTVAL(sequence_name)
- PREVIOUS VALUE FOR sequence_name and LASTVAL(sequence_name)
- SETVAL(sequence_name, next_value, is_used, round)
- SHOW CREATE SEQUENCE
Attachments
Issue Links
- causes
-
MDEV-14824 Assertion `!trx_is_started(trx)' failed in innobase_start_trx_and_assign_read_view
-
- Closed
-
-
MDEV-22491 Support mariadb-check and CHECK TABLE with SEQUENCE
-
- In Testing
-
-
MDEV-32795 ALTER SEQUENCE IF NOT EXISTS non_existing_seq Errors rather than note
-
- Closed
-
- includes
-
MDEV-12930 Testing SEQUENCE object
-
- Closed
-
-
MDEV-12941 First release of SEQUENCEs
-
- Closed
-
-
MDEV-13005 Fixing bugs in SEQUENCE, part 3
-
- Closed
-
-
MDEV-13679 crash when using SEQUENCE as column default
-
- Closed
-
-
MDEV-13711 Assertion `is_temporary_table(tables)' failed in open_and_process_table on CREATE TABLE .. LIKE <sequence>
-
- Closed
-
-
MDEV-13714 Value of SEQUENCE table option is ignored upon creation
-
- Closed
-
-
MDEV-13720 Server crashes in SEQUENCE::write_lock or Assertion `table && table->s->sequence' failed in Item_func_nextval::val_int
-
- Closed
-
-
MDEV-13732 User with SELECT privilege can ALTER sequence
-
- Closed
-
-
MDEV-14824 Assertion `!trx_is_started(trx)' failed in innobase_start_trx_and_assign_read_view
-
- Closed
-
- is duplicated by
-
MDEV-13075 AliSQL: [Feature] Issue #41 Sequence Engine
-
- Closed
-
- is part of
-
MDEV-10137 Providing compatibility to other databases
-
- Open
-
- relates to
-
MDEV-12883 CREATE SEQUENCE with huge MAXVALUE
-
- Closed
-
-
MDEV-13006 update_time column of on i_s.tables remains NULL for sequence objects
-
- Open
-
-
MDEV-13008 Documentation improvements for Sequence objects
-
- Closed
-
-
MDEV-13010 NEXTVAL should increment only once for a given row
-
- Open
-
-
MDEV-13497 concurrently used sequence hangs in SEQUENCE::next_value
-
- Closed
-
-
MDEV-32350 Can't selectively restore sequences using innodb tables from backup
-
- Closed
-
-
MDEV-12168 AUTO_INCREMENT with CYCLE support
-
- Closed
-
-
MDEV-12533 sql_mode=ORACLE: Add support for database qualified sequence names in NEXTVAL and CURRVAL
-
- Closed
-
-
MDEV-13393 SEQUENCE related crash when running concurrent I_S.TABLES and FLUSH queries
-
- Closed
-
-
MDEV-13497 concurrently used sequence hangs in SEQUENCE::next_value
-
- Closed
-
-
MDEV-20111 (CREATE|ALTER) SEQUENCE / SETVAL: only integer literal accepted as parameter
-
- Closed
-
Activity
Field | Original Value | New Value |
---|---|---|
Epic Link | MDEV-10137 [ 56868 ] |
Summary | Support for SEQUENCE tables | Support for SEQUENCE objects |
Description |
Add support for SEQUENCES, like in PostgreSQL or Oracle:
CREATE [ TEMPORARY | TEMP ] SEQUENCE name [ INCREMENT [ BY ] increment ] [ MINVALUE minvalue | NO MINVALUE ] [ MAXVALUE maxvalue | NO MAXVALUE ] [ START [ WITH ] start ] [ CACHE cache ] [ [ NO ] CYCLE ] See https://www.postgresql.org/docs/8.1/static/sql-createsequence.html for details. The main part of the task is to add support for sequence tables in the storage engine interface. The main difference between transactional tables are only that they don't roll back when issuing a ROLLBACK statement. |
Add support for SEQUENCES, like in PostgreSQL or Oracle:
CREATE [ TEMPORARY | TEMP ] SEQUENCE name [ INCREMENT [ BY ] increment ] [ MINVALUE minvalue | NO MINVALUE ] [ MAXVALUE maxvalue | NO MAXVALUE ] [ START [ WITH ] start ] [ CACHE cache ] [ [ NO ] CYCLE ] See https://www.postgresql.org/docs/8.1/static/sql-createsequence.html for details. The main part of the task is to add support for sequence tables in the storage engine interface. The main difference between transactional tables are only that they don't roll back when issuing a ROLLBACK statement. Example: {code:sql} CREATE SEQUENCE s1; SELECT s1.NEXTVAL FROM DUAL; {code} |
Labels | Compatibility |
Labels | Compatibility |
Fix Version/s | 10.3 [ 22126 ] | |
Fix Version/s | 10.2 [ 14601 ] |
Link | This issue is blocked by MDEV-10155 [ MDEV-10155 ] |
Description |
Add support for SEQUENCES, like in PostgreSQL or Oracle:
CREATE [ TEMPORARY | TEMP ] SEQUENCE name [ INCREMENT [ BY ] increment ] [ MINVALUE minvalue | NO MINVALUE ] [ MAXVALUE maxvalue | NO MAXVALUE ] [ START [ WITH ] start ] [ CACHE cache ] [ [ NO ] CYCLE ] See https://www.postgresql.org/docs/8.1/static/sql-createsequence.html for details. The main part of the task is to add support for sequence tables in the storage engine interface. The main difference between transactional tables are only that they don't roll back when issuing a ROLLBACK statement. Example: {code:sql} CREATE SEQUENCE s1; SELECT s1.NEXTVAL FROM DUAL; {code} |
Add support for SEQUENCES, like in PostgreSQL or Oracle:
{code:sql} CREATE [ TEMPORARY | TEMP ] SEQUENCE name [ INCREMENT [ BY ] increment ] [ MINVALUE minvalue | NO MINVALUE ] [ MAXVALUE maxvalue | NO MAXVALUE ] [ START [ WITH ] start ] [ CACHE cache ] [ [ NO ] CYCLE ] {code} See https://www.postgresql.org/docs/8.1/static/sql-createsequence.html for details. The main part of the task is to add support for sequence tables in the storage engine interface. The main difference between transactional tables are only that they don't roll back when issuing a ROLLBACK statement. Example: {code:sql} CREATE SEQUENCE s1; SELECT s1.NEXTVAL FROM DUAL; {code} |
Link | This issue is part of MDEV-11070 [ MDEV-11070 ] |
Epic Link | MDEV-10137 [ 56868 ] |
Link |
This issue is part of |
Link |
This issue is part of |
Link |
This issue is part of |
Link |
This issue is part of |
Link | This issue is part of MDEV-10137 [ MDEV-10137 ] |
Link | This issue is part of MDEV-11070 [ MDEV-11070 ] |
Labels | NRE-307517 |
Assignee | Marko Mäkelä [ marko ] |
NRE Projects | NRE-307517 |
Labels | NRE-307517 |
Link |
This issue is duplicated by |
Link |
This issue relates to |
Assignee | Marko Mäkelä [ marko ] | Michael Widenius [ monty ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Fix Version/s | 10.3.0 [ 22127 ] | |
Fix Version/s | 10.3 [ 22126 ] |
Component/s | OTHER [ 10125 ] | |
Resolution | Fixed [ 1 ] | |
Status | In Progress [ 3 ] | Closed [ 6 ] |
Link |
This issue relates to |
Description |
Add support for SEQUENCES, like in PostgreSQL or Oracle:
{code:sql} CREATE [ TEMPORARY | TEMP ] SEQUENCE name [ INCREMENT [ BY ] increment ] [ MINVALUE minvalue | NO MINVALUE ] [ MAXVALUE maxvalue | NO MAXVALUE ] [ START [ WITH ] start ] [ CACHE cache ] [ [ NO ] CYCLE ] {code} See https://www.postgresql.org/docs/8.1/static/sql-createsequence.html for details. The main part of the task is to add support for sequence tables in the storage engine interface. The main difference between transactional tables are only that they don't roll back when issuing a ROLLBACK statement. Example: {code:sql} CREATE SEQUENCE s1; SELECT s1.NEXTVAL FROM DUAL; {code} |
Add support for SEQUENCES, like in PostgreSQL or Oracle:
{code:sql} CREATE [ TEMPORARY | TEMP ] SEQUENCE name [ INCREMENT [ BY ] increment ] [ MINVALUE minvalue | NO MINVALUE ] [ MAXVALUE maxvalue | NO MAXVALUE ] [ START [ WITH ] start ] [ CACHE cache ] [ [ NO ] CYCLE ] {code} See https://www.postgresql.org/docs/8.1/static/sql-createsequence.html for details. The main part of the task is to add support for sequence tables in the storage engine interface. The main difference between transactional tables are only that they don't roll back when issuing a ROLLBACK statement. Example: {code:sql} CREATE SEQUENCE s1; SELECT s1.NEXTVAL FROM DUAL; {code} Supported statements: - CREATE SEQUENCE - DROP SEQUENCE - ALTER SEQUENCE - NEXT VALUE FOR sequence_name and NEXTVAL(sequence_name) - PREVIOUS VALUE FOR sequence_name and LASTVAL(sequence_name) - SETVAL(sequence_name, next_value, is_used, round) - SHOW CREATE SEQUENCE |
Link |
This issue relates to |
Resolution | Fixed [ 1 ] | |
Status | Closed [ 6 ] | Stalled [ 10000 ] |
Status | Stalled [ 10000 ] | In Progress [ 3 ] |
Link |
This issue relates to |
Link |
This issue relates to |
Link |
This issue relates to |
Fix Version/s | 10.3 [ 22126 ] | |
Fix Version/s | 10.3.0 [ 22127 ] |
Link |
This issue includes |
Link |
This issue is duplicated by |
NRE Approved | Yes [ 10304 ] |
Link |
This issue includes |
Link | This issue relates to MDEV-13006 [ MDEV-13006 ] |
Link |
This issue relates to |
Link | This issue relates to MDEV-13010 [ MDEV-13010 ] |
Component/s | Sequences [ 14009 ] | |
Component/s | OTHER [ 10125 ] |
Labels | 10.3-beta |
Priority | Major [ 3 ] | Critical [ 2 ] |
Epic Link | MDEV-11070 [ 58519 ] |
Link |
This issue relates to |
Link |
This issue relates to |
Link |
This issue relates to |
Link |
This issue is duplicated by |
Link |
This issue causes |
Link | This issue is blocked by MDEV-10155 [ MDEV-10155 ] |
Fix Version/s | 10.3.1 [ 22532 ] | |
Fix Version/s | 10.3 [ 22126 ] | |
Resolution | Fixed [ 1 ] | |
Status | In Progress [ 3 ] | Closed [ 6 ] |
Link |
This issue includes |
Link |
This issue includes |
Link |
This issue includes |
Link |
This issue relates to |
Link |
This issue includes |
Link |
This issue includes |
Link |
This issue includes |
Link |
This issue includes |
NRE Approved | Yes [ 10304 ] |
Link |
This issue relates to |
Link | This issue is blocked by MDEV-22491 [ MDEV-22491 ] |
Link | This issue causes MDEV-22491 [ MDEV-22491 ] |
Link | This issue is blocked by MDEV-22491 [ MDEV-22491 ] |
Workflow | MariaDB v3 [ 75809 ] | MariaDB v4 [ 132884 ] |
Link |
This issue relates to |
Link |
This issue causes |
Additional examples, combining sequences with expressions / functions