mirror of
https://github.com/MariaDB/server.git
synced 2026-05-08 08:04:29 +02:00
MDEV-10556 Assertion `0' failed in virtual void Item_sum_field::set_result_field(Field*)
This commit is contained in:
parent
8b51bacfd6
commit
ec7e0b7b30
5 changed files with 53 additions and 1 deletions
|
|
@ -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
|
||||||
#
|
#
|
||||||
|
|
|
||||||
13
mysql-test/r/innodb_group.result
Normal file
13
mysql-test/r/innodb_group.result
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
#
|
||||||
|
# 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(
|
||||||
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 #
|
||||||
|
|
|
||||||
22
mysql-test/t/innodb_group.test
Normal file
22
mysql-test/t/innodb_group.test
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
#
|
||||||
|
# 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:
|
||||||
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); }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue