1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

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.
This commit is contained in:
Igor Babaev
2018-04-26 16:38:56 -07:00
parent 99fa7c6c2f
commit 6c5e60f1b1
4 changed files with 22 additions and 2 deletions

View File

@ -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;