From 275b1db857b312736d70488a658f8dc9f2267582 Mon Sep 17 00:00:00 2001 From: David Hall Date: Tue, 28 Jan 2020 11:16:18 -0600 Subject: [PATCH] MCOL-3632 Restore error message for ref item type Function or Operator with sub query on the SELECT clause is currently not supported. --- dbcon/mysql/ha_mcs_execplan.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dbcon/mysql/ha_mcs_execplan.cpp b/dbcon/mysql/ha_mcs_execplan.cpp index 63dbb91a8..59f013cd4 100755 --- a/dbcon/mysql/ha_mcs_execplan.cpp +++ b/dbcon/mysql/ha_mcs_execplan.cpp @@ -3306,6 +3306,11 @@ ReturnedColumn* buildReturnedColumn(Item* item, gp_walk_info& gwi, bool& nonSupp case Item::WINDOW_FUNC_ITEM: return buildWindowFunctionColumn(*(ref->ref), gwi, nonSupport); + case Item::SUBSELECT_ITEM: + gwi.fatalParseError = true; + gwi.parseErrorText = IDBErrorInfo::instance()->errorMsg(ERR_NON_SUPPORT_SELECT_SUB); + break; + default: gwi.fatalParseError = true; gwi.parseErrorText = "Unknown REF item";