[MDEV-10138] Support for decimals up to 38 digits Created: 2016-05-27 Updated: 2018-08-31 Resolved: 2016-06-24 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data Definition - Alter Table |
| Fix Version/s: | 10.2.1 |
| Type: | Task | Priority: | Major |
| Reporter: | Michael Widenius | Assignee: | Michael Widenius |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Compatibility | ||
| Issue Links: |
|
||||||||
| Epic Link: | Oracle Compatibility | ||||||||
| Sprint: | Compatibility-1 | ||||||||
| Description |
|
Currently DECIMAL only supports 30 decimals. FLOAT and DOUBLE should still have the old limit of 30 decimals. The change should be done so there is a minimum of notable change for old clients, except if they are using decimal fields with more than 30 decimals. One change that is unavoidable is that decimal expressions will return results with more than 30 decimal and that if one converts a string to decimal it will have up to 38 decimals. CREATE ... SELECT with a decimal with > 30 decimals will create a column CREATE TABLE t1 SELECT 123456789012345678901234567890123456789012345.123456789012345678901234567890123456789012345; |
| Comments |
| Comment by Elena Stepanova [ 2016-06-20 ] |
|
monty, serg, |
| Comment by Michael Widenius [ 2016-06-21 ] |
|
The migration issue will be fixed as part of the extending default handling task ( |
| Comment by Michael Widenius [ 2016-06-24 ] |
|
Pushed into 10.2 |