1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00

MCOL-3464 don't dereference a NULL String.

This commit is contained in:
David Hall
2020-09-04 16:31:20 -05:00
parent b6e657fa4d
commit 890846fa8a

View File

@ -4386,7 +4386,8 @@ SimpleColumn* buildSimpleColumn(Item_field* ifp, gp_walk_info& gwi)
bool isInformationSchema = false;
// @bug5523
if (ifp->cached_table && strcmp(ifp->cached_table->db.str, "information_schema") == 0)
if (ifp->cached_table && ifp->cached_table->db.length > 0
&& strcmp(ifp->cached_table->db.str, "information_schema") == 0)
isInformationSchema = true;
// support FRPM subquery. columns from the derived table has no definition