Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.1(EOL), 10.2(EOL), 10.3(EOL)
Description
SET sql_mode=STRICT_ALL_TABLES; |
CREATE OR REPLACE TABLE t1 AS SELECT TO_SECONDS(NOW()); |
ERROR 1264 (22003): Out of range value for column 'TO_SECONDS(NOW())' at row 1
|
The problem is in this code:
void fix_length_and_dec() |
{
|
decimals=0;
|
max_length=6*MY_CHARSET_BIN_MB_MAXLEN;
|
maybe_null= 1;
|
}
|
max_length is set to a too small value, which makes it create an INT rather than BIGINT column.
Attachments
Issue Links
- blocks
-
MDEV-4912 Data type plugin API version 1
-
- Closed
-
Activity
Summary | Out-of-range error with CREATE..SELECT..TO_SECONDS(NOW() | Out-of-range error with CREATE..SELECT..TO_SECONDS(NOW()) |
Status | Open [ 1 ] | In Progress [ 3 ] |
issue.field.resolutiondate | 2017-05-27 12:45:09.0 | 2017-05-27 12:45:09.561 |
Fix Version/s | 10.3.1 [ 22532 ] | |
Fix Version/s | 10.3 [ 22126 ] | |
Resolution | Fixed [ 1 ] | |
Status | In Progress [ 3 ] | Closed [ 6 ] |
Workflow | MariaDB v3 [ 80878 ] | MariaDB v4 [ 152196 ] |