summaryrefslogtreecommitdiff
path: root/mysql-test/main/type_newdecimal.test
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/main/type_newdecimal.test')
-rw-r--r--mysql-test/main/type_newdecimal.test28
1 files changed, 26 insertions, 2 deletions
diff --git a/mysql-test/main/type_newdecimal.test b/mysql-test/main/type_newdecimal.test
index 011c6dbc743..070b465b71a 100644
--- a/mysql-test/main/type_newdecimal.test
+++ b/mysql-test/main/type_newdecimal.test
@@ -587,8 +587,11 @@ select floor(9.999999999999999999999);
select floor(-9.999999999999999999999);
#-- should return -10
#
+#enable_view_protocol in 10.4
+--disable_view_protocol
select floor(-999999999999999999999.999);
select ceiling(999999999999999999999.999);
+--enable_view_protocol
#
#
select 99999999999999999999999999999999999999 mod 3;
@@ -606,9 +609,12 @@ select round(99999999999999999.999,3);
select round(-99999999999999999.999,3);
#-- should return -100000000000000000.000
#
+#enable after fix MDEV-28660
+--disable_view_protocol
select truncate(99999999999999999999999999999999999999,49);
#-- should return 99999999999999999999999999999999999999.000
#
+--enable_view_protocol
select truncate(99.999999999999999999999999999999999999,49);
#-- should return 99.9999999999999999999999999999999
#
@@ -860,7 +866,10 @@ select 0/0;
#
--disable_ps_protocol
select 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999 as x;
+#enableview protocol after fix MDEV-28659
+--disable_view_protocol
select 9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999 + 1 as x;
+--enable_view_protocol
--enable_ps_protocol
#
# Bug #10004
@@ -943,7 +952,10 @@ drop table t1;
#
# Bug #10891 (converting to decimal crashes server)
#
+#enable after fix MDEV-27871
+--disable_view_protocol
select cast('1.00000001335143196001808973960578441619873046875E-10' as decimal(30,15));
+--enable_view_protocol
#
# Bug #11708 (conversion to decimal fails in decimal part)
@@ -1231,12 +1243,16 @@ DROP TABLE t1;
#
# Bug #36270: incorrect calculation result - works in 4.1 but not in 5.0 or 5.1
#
+#enable after fix MDEV-27871
+--disable_view_protocol
# show that if we need to truncate the scale of an operand, we pick the
# right one (that is, we discard the least significant decimal places)
select (1.20396873 * 0.89550000 * 0.68000000 * 1.08721696 * 0.99500000 *
1.01500000 * 1.01500000 * 0.99500000);
+--enable_view_protocol
+
#
# Bug #31616 div_precision_increment description looks wrong
#
@@ -1255,7 +1271,13 @@ DROP TABLE t1;
let $nine_81=
999999999999999999999999999999999999999999999999999999999999999999999999999999999;
+
+#view protocol generates additional warning
+--disable_view_protocol
eval SELECT substring(('M') FROM ($nine_81)) AS foo;
+--enable_view_protocol
+#enable after fix MDEV-28661
+--disable_view_protocol
eval SELECT min($nine_81) AS foo;
eval SELECT multipolygonfromtext(('4294967294.1'),($nine_81)) AS foo;
eval SELECT convert(($nine_81), decimal(30,30)) AS foo;
@@ -1267,6 +1289,7 @@ eval SELECT date_sub(($nine_81),
day_minute)
AS foo;
eval SELECT truncate($nine_81, 28) AS foo;
+--enable_view_protocol
--echo End of 5.0 tests
@@ -1899,9 +1922,10 @@ drop table t1;
--echo # decimal_bin_size And Assertion `scale >= 0 && precision > 0 && scale <= precision'
--echo # failed in decimal_bin_size_inline/decimal_bin_size.
--echo #
-
+#enable after fix MDEV-27871
+--disable_view_protocol
SELECT AVG(DISTINCT 0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001);
-
+--enable_view_protocol
CREATE TABLE t1 AS SELECT NULL AS v1;
SELECT 1 FROM t1 GROUP BY v1 ORDER BY AVG ( from_unixtime ( '' ) ) ;
DROP TABLE t1;