mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +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:
@ -221,6 +221,12 @@ bool table_value_constr::prepare(THD *thd, SELECT_LEX *sl,
|
||||
uint cnt= first_elem->elements;
|
||||
Type_holder *holders;
|
||||
|
||||
if (cnt == 0)
|
||||
{
|
||||
my_error(ER_EMPTY_ROW_IN_TVC, MYF(0));
|
||||
DBUG_RETURN(true);
|
||||
}
|
||||
|
||||
if (fix_fields_for_tvc(thd, li))
|
||||
DBUG_RETURN(true);
|
||||
|
||||
|
Reference in New Issue
Block a user