Skip to content

Commit f32dc93

Browse files
author
Alexey Botchkov
committed
MDEV-20498 Assertion `table_share->tmp_table != NO_TMP_TABLE || m_lock_type == 1' failed upon REBUILD PARTITION.
Subpartition field list can be NULL. So keep the function null-safe.
1 parent aada4e2 commit f32dc93

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sql/sql_partition.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4800,6 +4800,9 @@ static void check_datadir_altered_for_innodb(THD *thd,
48004800

48014801
static bool check_name_in_fields(const Field * const *fields, const char *name)
48024802
{
4803+
if (!fields)
4804+
return FALSE;
4805+
48034806
for (; *fields; fields++)
48044807
{
48054808
if (my_strcasecmp(system_charset_info,

0 commit comments

Comments
 (0)