[MDEV-18208] enum ('0','1','2','3') -> int type causes data increment '0' -> 1 ('x' -> x+1) Created: 2019-01-11 Updated: 2019-01-11 Resolved: 2019-01-11 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data types |
| Affects Version/s: | 10.3.11, 10.2.19 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Daniel Black | Assignee: | Unassigned |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | types, upstream | ||
| Description |
|
https://dbfiddle.uk/?rdbms=mariadb_10.3&fiddle=a104c74c56d1a9e25ae1e5104016b774
|
| Comments |
| Comment by Daniel Black [ 2019-01-11 ] | |||||||||
|
Seems generic about casting any string enum to signed/unsigned int
| |||||||||
| Comment by Daniel Black [ 2019-01-11 ] | |||||||||
|
This converting the order in the enum list as the int rather than a conversion of the value. |