summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2022-02-10 11:27:14 +0100
committerSergei Golubchik <serg@mariadb.org>2022-02-10 13:45:11 +0100
commit9e39d0ae44595dbd1570805d97c9c874778a6be8 (patch)
treeb068a22890d3198bc74dcd753f317ac59394e0c1
parentfd101daa84ec5f70f09c48e3fb7a4ce8f6d26edb (diff)
downloadmariadb-git-9e39d0ae44595dbd1570805d97c9c874778a6be8.tar.gz
MDEV-25787 Bug report: crash on SELECT DISTINCT thousands_blob_fields
fix a debug assert to account for not opened temp tables
-rw-r--r--storage/maria/ha_maria.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/maria/ha_maria.cc b/storage/maria/ha_maria.cc
index fd28164cb59..ce23e670c17 100644
--- a/storage/maria/ha_maria.cc
+++ b/storage/maria/ha_maria.cc
@@ -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);
}