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:
@@ -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
|
||||
|
Reference in New Issue
Block a user