1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +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

@@ -2072,7 +2072,7 @@ select * from (values (1), (t1.b), (2)) as new_tvc;
ERROR HY000: Field reference 't1.b' can't be used in table value constructor
drop table t1;
#
# MDEV-MDEV-15940: cursor over TVC
# MDEV-15940: cursor over TVC
#
BEGIN NOT ATOMIC
DECLARE v INT;
@@ -2092,3 +2092,8 @@ END;
|
v
1
#
# MDEV-16038: empty row in TVC
#
with t as (values (),()) select 1 from t;
ERROR HY000: Row with no elements is not allowed in table value constructor in this context