From 2fa2a214c6716fee47f0d9adf11be362611bc1a6 Mon Sep 17 00:00:00 2001 From: David Hall Date: Tue, 24 May 2016 17:42:17 -0500 Subject: [PATCH] MCOL-81 - optimizer override bug --- dbcon/mysql/ha_calpont_execplan.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbcon/mysql/ha_calpont_execplan.cpp b/dbcon/mysql/ha_calpont_execplan.cpp index 8a3b24082..43d36a0a6 100755 --- a/dbcon/mysql/ha_calpont_execplan.cpp +++ b/dbcon/mysql/ha_calpont_execplan.cpp @@ -1606,7 +1606,7 @@ SimpleColumn* buildSimpleColFromDerivedTable(gp_walk_info& gwi, Item_field* ifp) // outer join inner table filter can not be moved in // MariaDB 10.1: cached_table is never available for derived tables. // Find the uncached object in table_list - TABLE_LIST* tblList = ifp->context->table_list; + TABLE_LIST* tblList = ifp->context ? ifp->context->table_list : NULL; while (tblList) { if (strcasecmp(tblList->alias, ifp->table_name) == 0)