[MDEV-4913] External ENUM Field definition Created: 2013-08-17 Updated: 2019-11-19 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Minor |
| Reporter: | roberto spadim | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 2 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Epic Link: | New data types | ||||||||
| Description |
|
Based in a table, KEY-VALUE, we could expand the ENUM field from limited size (65535 values) to a unlimited size (64bits), this is a new field type ENUM_EXTERNAL(database,table,key column,value column) the internal value of ENUM_EXTERNAL is a bigint, the string representation is a blob (or maybe a varchar(255) or a text) the point is: the storage engine will save a bitint SELECT <value_column> FROM <database>.<table> WHERE <value_column>="FIELD VALUE SEND VIA INSERT/UPDATE/DELETE" this solve the problem of .FRM file don't allowing a big definition of ENUM/SET, and add an feature to developer of an avoid of alter table to change enum definition (it can use the external table to define the key-values of enum) |
| Comments |
| Comment by Patryk Pomykalski [ 2013-08-17 ] |
|
Why wouldn't you just use an int/bigint column and a dictionary table by yourself? Why complicate the server code? |
| Comment by roberto spadim [ 2013-08-17 ] |
|
hi patryk, i will make this one as blocked by mdev-4912, this will remove problems 2013/8/17 Patryk Pomykalski (JIRA) <jira@mariadb.atlassian.net> – |
| Comment by roberto spadim [ 2013-08-17 ] |
|
hi patryk, check that the idea of https://mariadb.atlassian.net/browse/MDEV-4631 - Encrypted column data type and the enum could be used as theses mdevs too what you think? |
| Comment by roberto spadim [ 2013-08-29 ] |
|
please add this to 10.1.0 version |