Commit 9e39d0ae authored by Sergei Golubchik's avatar Sergei Golubchik

MDEV-25787 Bug report: crash on SELECT DISTINCT thousands_blob_fields

fix a debug assert to account for not opened temp tables
parent fd101daa
......@@ -2789,7 +2789,7 @@ int ha_maria::delete_table(const char *name)
void ha_maria::drop_table(const char *name)
{
DBUG_ASSERT(file->s->temporary);
DBUG_ASSERT(!file || file->s->temporary);
(void) ha_close();
(void) maria_delete_table_files(name, 1, MY_WME);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment