From 6c5e60f1b198ff846ee5595927ff5a74c6b08e91 Mon Sep 17 00:00:00 2001 From: Igor Babaev Date: Thu, 26 Apr 2018 16:38:56 -0700 Subject: MDEV-16038 Assertion `map->n_bits > 0' failed (my_bitmap.c:386: bitmap_is_clear_all) Rows with no elements are not allowed in a table value constructor unless it is used in an INSERT statement. --- mysql-test/main/table_value_constr.test | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'mysql-test/main/table_value_constr.test') diff --git a/mysql-test/main/table_value_constr.test b/mysql-test/main/table_value_constr.test index 84f196b92a2..eb5ea59f829 100644 --- a/mysql-test/main/table_value_constr.test +++ b/mysql-test/main/table_value_constr.test @@ -1046,7 +1046,7 @@ select * from (values (1), (t1.b), (2)) as new_tvc; drop table t1; --echo # ---echo # MDEV-MDEV-15940: cursor over TVC +--echo # MDEV-15940: cursor over TVC --echo # DELIMITER |; @@ -1068,3 +1068,10 @@ END; | DELIMITER ;| + +--echo # +--echo # MDEV-16038: empty row in TVC +--echo # + +--error ER_EMPTY_ROW_IN_TVC +with t as (values (),()) select 1 from t; -- cgit v1.2.1