Commit ec7e0b7b authored by Alexander Barkov's avatar Alexander Barkov

MDEV-10556 Assertion `0' failed in virtual void Item_sum_field::set_result_field(Field*)

parent 8b51bacf
...@@ -2432,5 +2432,14 @@ c1 ...@@ -2432,5 +2432,14 @@ c1
3 3
drop table t1,t2; drop table t1,t2;
# #
# MDEV-10556 Assertion `0' failed in virtual void Item_sum_field::set_result_field(Field*)
#
CREATE TABLE t1 (i INT, KEY(i)) ENGINE=MyISAM;
INSERT INTO t1 VALUES (10),(20),(30);
SELECT DISTINCT STDDEV(1) FROM t1 GROUP BY i ORDER BY BENCHMARK(0, BIT_XOR(i));
STDDEV(1)
0.0000
DROP TABLE t1;
#
# End of 10.1 tests # End of 10.1 tests
# #
#
# Start of 10.1 tests
#
#
# MDEV-10556 Assertion `0' failed in virtual void Item_sum_field::set_result_field(Field*)
#
CREATE TABLE t1 (i INT) ENGINE=InnoDB;
SELECT DISTINCT STDDEV(1) FROM t1 GROUP BY i ORDER BY BENCHMARK(0, BIT_XOR(i));
STDDEV(1)
DROP TABLE t1;
#
# End of 10.1 tests
#
...@@ -1679,6 +1679,15 @@ select c1 from t1 having c1 >= (select t.c1 as c from t2 t order by (select min( ...@@ -1679,6 +1679,15 @@ select c1 from t1 having c1 >= (select t.c1 as c from t2 t order by (select min(
select c1 from t1 having c1 >= (select t.c1 as c from t2 t order by (select min(t1.c1+tt.c1) from t2 tt)); select c1 from t1 having c1 >= (select t.c1 as c from t2 t order by (select min(t1.c1+tt.c1) from t2 tt));
drop table t1,t2; drop table t1,t2;
--echo #
--echo # MDEV-10556 Assertion `0' failed in virtual void Item_sum_field::set_result_field(Field*)
--echo #
CREATE TABLE t1 (i INT, KEY(i)) ENGINE=MyISAM;
INSERT INTO t1 VALUES (10),(20),(30);
SELECT DISTINCT STDDEV(1) FROM t1 GROUP BY i ORDER BY BENCHMARK(0, BIT_XOR(i));
DROP TABLE t1;
--echo # --echo #
--echo # End of 10.1 tests --echo # End of 10.1 tests
--echo # --echo #
#
# Tests involving GROUP BY, aggregate functions and InnoDB
#
--source include/have_innodb.inc
--echo #
--echo # Start of 10.1 tests
--echo #
--echo #
--echo # MDEV-10556 Assertion `0' failed in virtual void Item_sum_field::set_result_field(Field*)
--echo #
CREATE TABLE t1 (i INT) ENGINE=InnoDB;
SELECT DISTINCT STDDEV(1) FROM t1 GROUP BY i ORDER BY BENCHMARK(0, BIT_XOR(i));
DROP TABLE t1;
--echo #
--echo # End of 10.1 tests
--echo #
...@@ -1084,7 +1084,6 @@ public: ...@@ -1084,7 +1084,6 @@ public:
fixed= true; fixed= true;
} }
table_map used_tables() const { return (table_map) 1L; } table_map used_tables() const { return (table_map) 1L; }
void set_result_field(Field *) { DBUG_ASSERT(0); }
void save_in_result_field(bool no_conversions) { DBUG_ASSERT(0); } void save_in_result_field(bool no_conversions) { DBUG_ASSERT(0); }
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment