From 6ea30f64fda2149dbd08fa28ee31d41a1b2bb394 Mon Sep 17 00:00:00 2001 From: Roman Nozdrin Date: Wed, 1 Apr 2020 17:22:57 +0000 Subject: [PATCH] MCOL-3903 Fix the fail in expBetween(BETWEEN in projection wasn't processed as expected.) --- dbcon/mysql/ha_mcs_execplan.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dbcon/mysql/ha_mcs_execplan.cpp b/dbcon/mysql/ha_mcs_execplan.cpp index dc833c7c4..eca370187 100755 --- a/dbcon/mysql/ha_mcs_execplan.cpp +++ b/dbcon/mysql/ha_mcs_execplan.cpp @@ -5653,7 +5653,7 @@ void gp_walk(const Item* item, void* arg) if (col->type() != Item::COND_ITEM) { - rc = buildReturnedColumn(col, *gwip, gwip->fatalParseError, false); + rc = buildReturnedColumn(col, *gwip, gwip->fatalParseError, true); if ( col->type() == Item::FIELD_ITEM ) gwip->fatalParseError = false; @@ -6921,7 +6921,7 @@ int getSelectPlan(gp_walk_info& gwi, SELECT_LEX& select_lex, ReturnedColumn* rc; if (funcName == "in" || funcName == " IN " || funcName == "between") { - rc = buildFunctionColumn(ifp, gwi, hasNonSupportItem, false); + rc = buildFunctionColumn(ifp, gwi, hasNonSupportItem, true); } else {