1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-27712 Reduce the size of Lex_length_and_dec_st from 16 to 8

User visible change:
Removing the length specified by user from error messages:
ER_TOO_BIG_SCALE and ER_TOO_BIG_PRECISION
as discussed with Sergei.
This commit is contained in:
Alexander Barkov
2022-02-09 17:59:38 +04:00
parent ab1a792571
commit d25b10fede
34 changed files with 367 additions and 175 deletions

View File

@@ -390,13 +390,13 @@ ERROR 42000: For float(M,D), double(M,D) or decimal(M,D), M must be >= D (column
select cast(1 as decimal(5,6));
ERROR 42000: For float(M,D), double(M,D) or decimal(M,D), M must be >= D (column '')
select cast(1 as double(66,6));
ERROR 42000: Too big precision 66 specified for '1'. Maximum is 65
ERROR 42000: Too big precision specified for '1'. Maximum is 65
select cast(1 as decimal(66,6));
ERROR 42000: Too big precision 66 specified for '1'. Maximum is 65
ERROR 42000: Too big precision specified for '1'. Maximum is 65
select cast(1 as decimal(64,63));
ERROR 42000: Too big scale 63 specified for '1'. Maximum is 38
ERROR 42000: Too big scale specified for '1'. Maximum is 38
select cast(1 as double(64,63));
ERROR 42000: Too big scale 63 specified for '1'. Maximum is 38
ERROR 42000: Too big scale specified for '1'. Maximum is 38
set names binary;
select cast(_latin1'test' as char character set latin2);
cast(_latin1'test' as char character set latin2)