Details
-
Task
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
None
-
None
Description
ERROR 1903 (HY000): Primary key cannot be defined upon a computed column .
Virtual column was a nice way to remove stuff like
PRIMARY KEY (`COD_INV`, `COD_FAM`, `COD_MAG`, `COD_FIL`, `COD_ID_INV`)
- It's a bad practice to use triggers
- It's a bad practice to use hidden primary key ,
- It's a bad practice to use virtual column .
What could we advice that can be transparent to the application layer to fixe such bad design for InnoDB.
Rewrite the application is not always a political correct answer.
Attachments
Issue Links
- duplicates
-
MDEV-8135 Support primary keys on virtual columns
-
- Closed
-
- is part of
-
MDEV-10137 Providing compatibility to other databases
-
- Open
-
Activity
Field | Original Value | New Value |
---|---|---|
Summary | Primary key cannot be defined upon persitent virtual column | Primary key cannot be defined upon persistent virtual column |
Affects Version/s | 5.5.34 [ 13700 ] | |
Affects Version/s | 10.0.7 [ 14100 ] | |
Issue Type | Bug [ 1 ] | Task [ 3 ] |
Priority | Major [ 3 ] | Minor [ 4 ] |
Workflow | defaullt [ 33760 ] | MariaDB v2 [ 42376 ] |
Workflow | MariaDB v2 [ 42376 ] | MariaDB v3 [ 61303 ] |
Epic Link | MDEV-10137 [ 56868 ] |
Link | This issue is part of MDEV-10137 [ MDEV-10137 ] |
Parent | MDEV-10137 [ 56868 ] | |
Issue Type | Task [ 3 ] | Technical task [ 7 ] |
Epic Link | MDEV-10137 [ 56868 ] |
Link | This issue is part of MDEV-10137 [ MDEV-10137 ] |
Link | This issue is part of MDEV-10137 [ MDEV-10137 ] |
Link | This issue is part of MDEV-10137 [ MDEV-10137 ] |
Link | This issue is part of MDEV-10137 [ MDEV-10137 ] |
Parent | MDEV-10137 [ 56868 ] | |
Issue Type | Technical task [ 7 ] | Task [ 3 ] |
Priority | Minor [ 4 ] | Major [ 3 ] |
NRE Projects | RM_105_CANDIDATE |
Assignee | Ralf Gebhardt [ ralf.gebhardt@mariadb.com ] |
Assignee | Ralf Gebhardt [ ralf.gebhardt@mariadb.com ] |
Workflow | MariaDB v3 [ 61303 ] | MariaDB v4 [ 130191 ] |
Component/s | Virtual Columns [ 10803 ] |
Zendesk Related Tickets | 139074 |
Summary | Primary key cannot be defined upon persistent virtual column | Primary key cannot be defined upon persistent virtual column |