diff options
author | Alexander Barkov <bar@mariadb.com> | 2022-02-09 17:59:38 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.com> | 2022-03-22 14:42:54 +0400 |
commit | d25b10fede8926f63203dfd2040ec60549d10936 (patch) | |
tree | 3e9b0da676e1a3e54f562d9f7e9552fc2ebdcdb3 /mysql-test | |
parent | ab1a7925714727743e5dd7bb1b83014044fc5660 (diff) | |
download | mariadb-git-d25b10fede8926f63203dfd2040ec60549d10936.tar.gz |
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.
Diffstat (limited to 'mysql-test')
-rw-r--r-- | mysql-test/main/cast.result | 8 | ||||
-rw-r--r-- | mysql-test/main/dyncol.result | 2 | ||||
-rw-r--r-- | mysql-test/main/func_time.result | 2 | ||||
-rw-r--r-- | mysql-test/main/func_time_hires.result | 6 | ||||
-rw-r--r-- | mysql-test/main/type_blob.result | 10 | ||||
-rw-r--r-- | mysql-test/main/type_blob.test | 4 | ||||
-rw-r--r-- | mysql-test/main/type_datetime_hires.result | 2 | ||||
-rw-r--r-- | mysql-test/main/type_decimal.result | 2 | ||||
-rw-r--r-- | mysql-test/main/type_float.result | 37 | ||||
-rw-r--r-- | mysql-test/main/type_float.test | 41 | ||||
-rw-r--r-- | mysql-test/main/type_newdecimal.result | 14 | ||||
-rw-r--r-- | mysql-test/main/type_time_hires.result | 23 | ||||
-rw-r--r-- | mysql-test/main/type_time_hires.test | 27 | ||||
-rw-r--r-- | mysql-test/main/type_timestamp_hires.result | 2 | ||||
-rw-r--r-- | mysql-test/main/win.result | 2 | ||||
-rw-r--r-- | mysql-test/suite/encryption/r/tempfiles_encrypted.result | 2 | ||||
-rw-r--r-- | mysql-test/suite/engines/iuds/r/insert_decimal.result | 2 | ||||
-rw-r--r-- | mysql-test/suite/funcs_1/r/storedproc.result | 8 |
18 files changed, 162 insertions, 32 deletions
diff --git a/mysql-test/main/cast.result b/mysql-test/main/cast.result index 4e518826017..7a443f39863 100644 --- a/mysql-test/main/cast.result +++ b/mysql-test/main/cast.result @@ -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) diff --git a/mysql-test/main/dyncol.result b/mysql-test/main/dyncol.result index a57b5248002..4eb2a7994fc 100644 --- a/mysql-test/main/dyncol.result +++ b/mysql-test/main/dyncol.result @@ -1459,7 +1459,7 @@ Note 1105 Cast to signed converted positive out-of-range integer to it's negativ # mysqld # SELECT COLUMN_GET(`x`, 'y' AS DECIMAL(5,50)); -ERROR 42000: Too big scale 50 specified for ''y''. Maximum is 38 +ERROR 42000: Too big scale specified for ''y''. Maximum is 38 # # test of symbolic names # diff --git a/mysql-test/main/func_time.result b/mysql-test/main/func_time.result index 7bca4158d70..c1cc5dd19e6 100644 --- a/mysql-test/main/func_time.result +++ b/mysql-test/main/func_time.result @@ -1983,7 +1983,7 @@ select microsecond('12:00:00.123456'), microsecond('2009-12-31 23:59:59.000010') microsecond('12:00:00.123456') microsecond('2009-12-31 23:59:59.000010') 123456 10 select now(258); -ERROR 42000: Too big precision 258 specified for 'current_timestamp'. Maximum is 6 +ERROR 42000: Too big precision specified for 'current_timestamp'. Maximum is 6 SELECT 1 FROM DUAL WHERE YEAR(TIMEDIFF(NULL, '12:12:12')); 1 SELECT 1 FROM DUAL WHERE MONTH(TIMEDIFF(NULL, '12:12:12')); diff --git a/mysql-test/main/func_time_hires.result b/mysql-test/main/func_time_hires.result index a76571a67b5..725a3f42e55 100644 --- a/mysql-test/main/func_time_hires.result +++ b/mysql-test/main/func_time_hires.result @@ -24,9 +24,9 @@ select time_to_sec(sec_to_time(11111)), time_to_sec(sec_to_time(11111.22222)); time_to_sec(sec_to_time(11111)) 11111 time_to_sec(sec_to_time(11111.22222)) 11111.22222 select current_timestamp(7); -ERROR 42000: Too big precision 7 specified for 'current_timestamp'. Maximum is 6 +ERROR 42000: Too big precision specified for 'current_timestamp'. Maximum is 6 select curtime(7); -ERROR 42000: Too big precision 7 specified for 'curtime'. Maximum is 6 +ERROR 42000: Too big precision specified for 'curtime'. Maximum is 6 drop table if exists t1; create table t1 select sec_to_time(12345), sec_to_time(12345.6789), sec_to_time(1234567e-2), now(), curtime(0), @@ -161,7 +161,7 @@ select cast(cast(@a as time(2)) as time(6)); cast(cast(@a as time(2)) as time(6)) 12:13:14.120000 select CAST(@a AS DATETIME(7)); -ERROR 42000: Too big precision 7 specified for '@`a`'. Maximum is 6 +ERROR 42000: Too big precision specified for '@`a`'. Maximum is 6 SELECT CONVERT_TZ('2011-01-02 12:00:00', '+00:00', '+03:00'); CONVERT_TZ('2011-01-02 12:00:00', '+00:00', '+03:00') 2011-01-02 15:00:00 diff --git a/mysql-test/main/type_blob.result b/mysql-test/main/type_blob.result index c2739e4b166..76088319a40 100644 --- a/mysql-test/main/type_blob.result +++ b/mysql-test/main/type_blob.result @@ -908,6 +908,8 @@ a 2042 DROP TABLE b15776; CREATE TABLE b15776 (a year(4294967296)); +Warnings: +Note 1287 'YEAR(4294967295)' is deprecated and will be removed in a future release. Please use YEAR(4) instead SHOW CREATE TABLE b15776; Table Create Table b15776 CREATE TABLE `b15776` ( @@ -921,11 +923,11 @@ DROP TABLE b15776; CREATE TABLE b15776 (a year(-2)); ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '-2))' at line 1 CREATE TABLE b15776 (a timestamp(4294967294)); -ERROR 42000: Too big precision 4294967294 specified for 'a'. Maximum is 6 +ERROR 42000: Too big precision specified for 'a'. Maximum is 6 CREATE TABLE b15776 (a timestamp(4294967295)); -ERROR 42000: Too big precision 4294967295 specified for 'a'. Maximum is 6 +ERROR 42000: Too big precision specified for 'a'. Maximum is 6 CREATE TABLE b15776 (a timestamp(4294967296)); -ERROR 42000: Too big precision 4294967296 specified for 'a'. Maximum is 6 +ERROR 42000: Too big precision specified for 'a'. Maximum is 6 CREATE TABLE b15776 (a timestamp(-1)); ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '-1))' at line 1 CREATE TABLE b15776 (a timestamp(-2)); @@ -935,6 +937,8 @@ ERROR 42000: Display width out of range for 'a' (max = 255) CREATE TABLE b15776 (a char(999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999)); ERROR 42000: Column length too big for column 'a' (max = 255); use BLOB or TEXT instead CREATE TABLE b15776 (a year(999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999)); +Warnings: +Note 1287 'YEAR(4294967295)' is deprecated and will be removed in a future release. Please use YEAR(4) instead SHOW CREATE TABLE b15776; Table Create Table b15776 CREATE TABLE `b15776` ( diff --git a/mysql-test/main/type_blob.test b/mysql-test/main/type_blob.test index c61ed124139..f958a055b6c 100644 --- a/mysql-test/main/type_blob.test +++ b/mysql-test/main/type_blob.test @@ -532,7 +532,9 @@ CREATE TABLE b15776 (a year(4294967295)); INSERT INTO b15776 VALUES (42); SELECT * FROM b15776; DROP TABLE b15776; +--enable_prepare_warnings CREATE TABLE b15776 (a year(4294967296)); +--disable_prepare_warnings SHOW CREATE TABLE b15776; DROP TABLE b15776; --enable_prepare_warnings @@ -560,7 +562,9 @@ CREATE TABLE b15776 (a timestamp(-2)); CREATE TABLE b15776 (a int(999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999)); --error ER_TOO_BIG_FIELDLENGTH CREATE TABLE b15776 (a char(999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999)); +--enable_prepare_warnings CREATE TABLE b15776 (a year(999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999)); +--disable_prepare_warnings SHOW CREATE TABLE b15776; DROP TABLE b15776; diff --git a/mysql-test/main/type_datetime_hires.result b/mysql-test/main/type_datetime_hires.result index 02adadd16c5..be85669225e 100644 --- a/mysql-test/main/type_datetime_hires.result +++ b/mysql-test/main/type_datetime_hires.result @@ -1,7 +1,7 @@ SET timestamp=UNIX_TIMESTAMP('2001-02-03 10:20:30'); drop table if exists t1, t2, t3; create table t1 (a datetime(7)); -ERROR 42000: Too big precision 7 specified for 'a'. Maximum is 6 +ERROR 42000: Too big precision specified for 'a'. Maximum is 6 create table t1 (a datetime(3), key(a)); insert t1 values ('2010-12-11 00:20:03.1234'); insert t1 values ('2010-12-11 15:47:11.1234'); diff --git a/mysql-test/main/type_decimal.result b/mysql-test/main/type_decimal.result index 7bf3b52970a..a053d0e5655 100644 --- a/mysql-test/main/type_decimal.result +++ b/mysql-test/main/type_decimal.result @@ -721,7 +721,7 @@ t1 CREATE TABLE `t1` ( ) ENGINE=MyISAM DEFAULT CHARSET=latin1 drop table t1; create table t1 (d decimal(66,0)); -ERROR 42000: Too big precision 66 specified for 'd'. Maximum is 65 +ERROR 42000: Too big precision specified for 'd'. Maximum is 65 CREATE TABLE t1 (i INT, d1 DECIMAL(9,2), d2 DECIMAL(9,2)); INSERT INTO t1 VALUES (1, 101.40, 21.40), (1, -80.00, 0.00), (2, 0.00, 0.00), (2, -13.20, 0.00), (2, 59.60, 46.40), diff --git a/mysql-test/main/type_float.result b/mysql-test/main/type_float.result index 5137a8229b6..4791a0ad39b 100644 --- a/mysql-test/main/type_float.result +++ b/mysql-test/main/type_float.result @@ -133,7 +133,7 @@ min(a) -0.010 drop table t1; create table t1 (a float(200,100), b double(200,100)); -ERROR 42000: Too big scale 100 specified for 'a'. Maximum is 30 +ERROR 42000: Too big scale specified for 'a'. Maximum is 30 create table t1 (c20 char); insert ignore into t1 values (5000.0); Warnings: @@ -788,7 +788,7 @@ DROP TABLE t1,t2; # create or replace table t1 (a double(40,30)); create or replace table t1 (a double(40,31)); -ERROR 42000: Too big scale 31 specified for 'a'. Maximum is 30 +ERROR 42000: Too big scale specified for 'a'. Maximum is 30 create or replace table t1 as select 1.01e1; show create table t1; Table Create Table @@ -1162,3 +1162,36 @@ fdec 123.456.789,12345678900000000000000000000000000000 # # End of 10.4 tests # +# +# Start of 10.9 tests +# +# +# MDEV-27712 Reduce the size of Lex_length_and_dec_st from 16 to 8 +# +CREATE TABLE t1 (a DOUBLE(1000,1000)); +ERROR 42000: Too big scale specified for 'a'. Maximum is 30 +CREATE TABLE t1 (a DOUBLE(1000,0)); +ERROR 42000: Display width out of range for 'a' (max = 255) +CREATE TABLE t1 (a DOUBLE(0,1000)); +ERROR 42000: For float(M,D), double(M,D) or decimal(M,D), M must be >= D (column 'a') +CREATE TABLE t1 (a DOUBLE(2147483647,2147483647)); +ERROR 42000: Too big scale specified for 'a'. Maximum is 30 +CREATE TABLE t1 (a DOUBLE(2147483647,0)); +ERROR 42000: Display width out of range for 'a' (max = 255) +CREATE TABLE t1 (a DOUBLE(0,2147483647)); +ERROR 42000: For float(M,D), double(M,D) or decimal(M,D), M must be >= D (column 'a') +CREATE TABLE t1 (a DOUBLE(2147483648,2147483648)); +ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '2147483648,2147483648))' at line 1 +CREATE TABLE t1 (a DOUBLE(2147483648,0)); +ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '2147483648,0))' at line 1 +CREATE TABLE t1 (a DOUBLE(0,2147483648)); +ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '2147483648))' at line 1 +CREATE TABLE t1 (a DOUBLE(999999999999999999999999999999,999999999999999999999999999999)); +ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '999999999999999999999999999999,999999999999999999999999999999))' at line 1 +CREATE TABLE t1 (a DOUBLE(999999999999999999999999999999,0)); +ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '999999999999999999999999999999,0))' at line 1 +CREATE TABLE t1 (a DOUBLE(0,999999999999999999999999999999)); +ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '999999999999999999999999999999))' at line 1 +# +# End of 10.9 tests +# diff --git a/mysql-test/main/type_float.test b/mysql-test/main/type_float.test index a12bf67a426..3870fc7cd5d 100644 --- a/mysql-test/main/type_float.test +++ b/mysql-test/main/type_float.test @@ -703,3 +703,44 @@ DELIMITER ;$$ --echo # --echo # End of 10.4 tests --echo # + + +--echo # +--echo # Start of 10.9 tests +--echo # + +--echo # +--echo # MDEV-27712 Reduce the size of Lex_length_and_dec_st from 16 to 8 +--echo # + +--error ER_TOO_BIG_SCALE +CREATE TABLE t1 (a DOUBLE(1000,1000)); +--error ER_TOO_BIG_DISPLAYWIDTH +CREATE TABLE t1 (a DOUBLE(1000,0)); +--error ER_M_BIGGER_THAN_D +CREATE TABLE t1 (a DOUBLE(0,1000)); + +--error ER_TOO_BIG_SCALE +CREATE TABLE t1 (a DOUBLE(2147483647,2147483647)); +--error ER_TOO_BIG_DISPLAYWIDTH +CREATE TABLE t1 (a DOUBLE(2147483647,0)); +--error ER_M_BIGGER_THAN_D +CREATE TABLE t1 (a DOUBLE(0,2147483647)); + +--error ER_PARSE_ERROR +CREATE TABLE t1 (a DOUBLE(2147483648,2147483648)); +--error ER_PARSE_ERROR +CREATE TABLE t1 (a DOUBLE(2147483648,0)); +--error ER_PARSE_ERROR +CREATE TABLE t1 (a DOUBLE(0,2147483648)); + +--error ER_PARSE_ERROR +CREATE TABLE t1 (a DOUBLE(999999999999999999999999999999,999999999999999999999999999999)); +--error ER_PARSE_ERROR +CREATE TABLE t1 (a DOUBLE(999999999999999999999999999999,0)); +--error ER_PARSE_ERROR +CREATE TABLE t1 (a DOUBLE(0,999999999999999999999999999999)); + +--echo # +--echo # End of 10.9 tests +--echo # diff --git a/mysql-test/main/type_newdecimal.result b/mysql-test/main/type_newdecimal.result index c55938eebf1..ea2ef37cb34 100644 --- a/mysql-test/main/type_newdecimal.result +++ b/mysql-test/main/type_newdecimal.result @@ -923,13 +923,13 @@ ERROR 42000: For float(M,D), double(M,D) or decimal(M,D), M must be >= D (column select cast(ln(14000) as decimal(2,3)) c1; ERROR 42000: For float(M,D), double(M,D) or decimal(M,D), M must be >= D (column '') create table t1 (sl decimal(70,30)); -ERROR 42000: Too big precision 70 specified for 'sl'. Maximum is 65 +ERROR 42000: Too big precision specified for 'sl'. Maximum is 65 create table t1 (sl decimal(32,39)); -ERROR 42000: Too big scale 39 specified for 'sl'. Maximum is 38 +ERROR 42000: Too big scale specified for 'sl'. Maximum is 38 create table t1 (sl decimal(67,38)); -ERROR 42000: Too big precision 67 specified for 'sl'. Maximum is 65 +ERROR 42000: Too big precision specified for 'sl'. Maximum is 65 create table t1 (sl decimal(0,50)); -ERROR 42000: Too big scale 50 specified for 'sl'. Maximum is 38 +ERROR 42000: Too big scale specified for 'sl'. Maximum is 38 create table t1 (sl decimal(0,30)); ERROR 42000: For float(M,D), double(M,D) or decimal(M,D), M must be >= D (column 'sl') create table t1 (sl decimal(5, 5)); @@ -1482,12 +1482,12 @@ SELECT CAST(1 AS decimal(65,10)); CAST(1 AS decimal(65,10)) 1.0000000000 SELECT CAST(1 AS decimal(66,10)); -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(65,38)); CAST(1 AS decimal(65,38)) 1.00000000000000000000000000000000000000 SELECT CAST(1 AS decimal(65,39)); -ERROR 42000: Too big scale 39 specified for '1'. Maximum is 38 +ERROR 42000: Too big scale specified for '1'. Maximum is 38 CREATE TABLE t1 (a int DEFAULT NULL, b int DEFAULT NULL); INSERT INTO t1 VALUES (3,30), (1,10), (2,10); SELECT a+CAST(1 AS decimal(65,30)) AS aa, SUM(b) FROM t1 GROUP BY aa; @@ -1496,7 +1496,7 @@ aa SUM(b) 3.000000000000000000000000000000 10 4.000000000000000000000000000000 30 SELECT a+CAST(1 AS decimal(65,49)) AS aa, SUM(b) FROM t1 GROUP BY aa; -ERROR 42000: Too big scale 49 specified for '1'. Maximum is 38 +ERROR 42000: Too big scale specified for '1'. Maximum is 38 DROP TABLE t1; CREATE TABLE t1 (a int DEFAULT NULL, b int DEFAULT NULL); INSERT INTO t1 VALUES (3,30), (1,10), (2,10); diff --git a/mysql-test/main/type_time_hires.result b/mysql-test/main/type_time_hires.result index 661ca0e98f5..bd193ba1ed6 100644 --- a/mysql-test/main/type_time_hires.result +++ b/mysql-test/main/type_time_hires.result @@ -1,7 +1,7 @@ SET timestamp=UNIX_TIMESTAMP('2001-02-03 10:20:30'); drop table if exists t1, t2, t3; create table t1 (a time(7)); -ERROR 42000: Too big precision 7 specified for 'a'. Maximum is 6 +ERROR 42000: Too big precision specified for 'a'. Maximum is 6 create table t1 (a time(3), key(a)); insert t1 values ('2010-12-11 00:20:03.1234'); Warnings: @@ -907,3 +907,24 @@ a CEILING(a) CEILING_SP(a) CEILING(a)=CEILING_SP(a) DROP FUNCTION FLOOR_SP; DROP FUNCTION CEILING_SP; DROP TABLE t1; +# +# Start of 10.9 tests +# +# +# MDEV-27712 Reduce the size of Lex_length_and_dec_st from 16 to 8 +# +CREATE TABLE t1 (a TIME(4294967295)); +ERROR 42000: Too big precision specified for 'a'. Maximum is 6 +CREATE TABLE t1 (a TIME(4294967296)); +ERROR 42000: Too big precision specified for 'a'. Maximum is 6 +CREATE TABLE t1 (a TIME(999999999999999999999999999999)); +ERROR 42000: Too big precision specified for 'a'. Maximum is 6 +SELECT CAST(1 AS TIME(4294967295)); +ERROR 42000: Too big precision specified for '1'. Maximum is 6 +SELECT CAST(1 AS TIME(4294967296)); +ERROR 42000: Too big precision specified for '1'. Maximum is 6 +SELECT CAST(1 AS TIME(999999999999999999999999999999)); +ERROR 42000: Too big precision specified for '1'. Maximum is 6 +# +# Start of 10.9 tests +# diff --git a/mysql-test/main/type_time_hires.test b/mysql-test/main/type_time_hires.test index f9b4a5a9f27..cb15113f8ec 100644 --- a/mysql-test/main/type_time_hires.test +++ b/mysql-test/main/type_time_hires.test @@ -196,3 +196,30 @@ DROP FUNCTION FLOOR_SP; DROP FUNCTION CEILING_SP; DROP TABLE t1; + + +--echo # +--echo # Start of 10.9 tests +--echo # + +--echo # +--echo # MDEV-27712 Reduce the size of Lex_length_and_dec_st from 16 to 8 +--echo # + +--error ER_TOO_BIG_PRECISION +CREATE TABLE t1 (a TIME(4294967295)); +--error ER_TOO_BIG_PRECISION +CREATE TABLE t1 (a TIME(4294967296)); +--error ER_TOO_BIG_PRECISION +CREATE TABLE t1 (a TIME(999999999999999999999999999999)); + +--error ER_TOO_BIG_PRECISION +SELECT CAST(1 AS TIME(4294967295)); +--error ER_TOO_BIG_PRECISION +SELECT CAST(1 AS TIME(4294967296)); +--error ER_TOO_BIG_PRECISION +SELECT CAST(1 AS TIME(999999999999999999999999999999)); + +--echo # +--echo # Start of 10.9 tests +--echo # diff --git a/mysql-test/main/type_timestamp_hires.result b/mysql-test/main/type_timestamp_hires.result index 64675ff9973..f19b26b09f6 100644 --- a/mysql-test/main/type_timestamp_hires.result +++ b/mysql-test/main/type_timestamp_hires.result @@ -1,7 +1,7 @@ SET timestamp=UNIX_TIMESTAMP('2001-02-03 10:20:30'); drop table if exists t1, t2, t3; create table t1 (a timestamp(7)); -ERROR 42000: Too big precision 7 specified for 'a'. Maximum is 6 +ERROR 42000: Too big precision specified for 'a'. Maximum is 6 create table t1 (a timestamp(3), key(a)); insert t1 values ('2010-12-11 00:20:03.1234'); insert t1 values ('2010-12-11 15:47:11.1234'); diff --git a/mysql-test/main/win.result b/mysql-test/main/win.result index 38d33000547..3a5434cda59 100644 --- a/mysql-test/main/win.result +++ b/mysql-test/main/win.result @@ -3925,7 +3925,7 @@ DROP TABLE t1; # MDEV-18916: crash in Window_spec::print_partition() with decimals # SELECT cast((rank() over w1) as decimal (53,56)); -ERROR 42000: Too big scale 56 specified for 'rank() over w1'. Maximum is 38 +ERROR 42000: Too big scale specified for 'rank() over w1'. Maximum is 38 SELECT cast((rank() over w1) as decimal (53,30)); ERROR HY000: Window specification with name 'w1' is not defined # diff --git a/mysql-test/suite/encryption/r/tempfiles_encrypted.result b/mysql-test/suite/encryption/r/tempfiles_encrypted.result index 42b298abb32..f68aaf9d10c 100644 --- a/mysql-test/suite/encryption/r/tempfiles_encrypted.result +++ b/mysql-test/suite/encryption/r/tempfiles_encrypted.result @@ -3931,7 +3931,7 @@ DROP TABLE t1; # MDEV-18916: crash in Window_spec::print_partition() with decimals # SELECT cast((rank() over w1) as decimal (53,56)); -ERROR 42000: Too big scale 56 specified for 'rank() over w1'. Maximum is 38 +ERROR 42000: Too big scale specified for 'rank() over w1'. Maximum is 38 SELECT cast((rank() over w1) as decimal (53,30)); ERROR HY000: Window specification with name 'w1' is not defined # diff --git a/mysql-test/suite/engines/iuds/r/insert_decimal.result b/mysql-test/suite/engines/iuds/r/insert_decimal.result index 2f174c5e70b..a36c6c852dc 100644 --- a/mysql-test/suite/engines/iuds/r/insert_decimal.result +++ b/mysql-test/suite/engines/iuds/r/insert_decimal.result @@ -1010,7 +1010,7 @@ ROUND(c1,c2) TRUNCATE(c1,c2) 1.133000 1.132000 DROP TABLE t5; CREATE TABLE t7(c1 DECIMAL(66,0)); -ERROR 42000: Too big precision 66 specified for 'c1'. Maximum is 65 +ERROR 42000: Too big precision specified for 'c1'. Maximum is 65 CREATE TABLE t7(c1 DECIMAL(5,10)); ERROR 42000: For float(M,D), double(M,D) or decimal(M,D), M must be >= D (column 'c1') DROP TABLE t1,t2; diff --git a/mysql-test/suite/funcs_1/r/storedproc.result b/mysql-test/suite/funcs_1/r/storedproc.result index d2cc9353518..dd682534bf7 100644 --- a/mysql-test/suite/funcs_1/r/storedproc.result +++ b/mysql-test/suite/funcs_1/r/storedproc.result @@ -143,7 +143,7 @@ BEGIN SET @v1 = f1; SELECT @v1; END// -ERROR 42000: Too big precision 256 specified for 'f1'. Maximum is 65 +ERROR 42000: Too big precision specified for 'f1'. Maximum is 65 DROP PROCEDURE IF EXISTS sp1// Warnings: Note 1305 PROCEDURE db_storedproc.sp1 does not exist @@ -153,7 +153,7 @@ BEGIN SET @v1 = f1; SELECT @v1; END// -ERROR 42000: Too big precision 66 specified for 'f1'. Maximum is 65 +ERROR 42000: Too big precision specified for 'f1'. Maximum is 65 DROP PROCEDURE IF EXISTS sp1// Warnings: Note 1305 PROCEDURE db_storedproc.sp1 does not exist @@ -1549,7 +1549,7 @@ BEGIN SET f1 = 1000000 + f1; RETURN f1; END// -ERROR 42000: Too big scale 61 specified for 'f1'. Maximum is 38 +ERROR 42000: Too big scale specified for 'f1'. Maximum is 38 SELECT fn1( 1.3326e+8 ); ERROR 42000: FUNCTION db_storedproc.fn1 does not exist CREATE FUNCTION fn1( f1 DECIMAL(63, 30) ) RETURNS DECIMAL(63, 30) @@ -5837,7 +5837,7 @@ fetch cur1 into e; SELECT x, y, z, a, b, c, d, e; close cur1; END// -ERROR 42000: Too big scale 255 specified for 'b'. Maximum is 38 +ERROR 42000: Too big scale specified for 'b'. Maximum is 38 CALL sp6(); ERROR 42000: PROCEDURE db_storedproc.sp6 does not exist DROP PROCEDURE IF EXISTS sp6; |