From 11f194b5feb13165b6d9e2c1aa82672c71db6a5a Mon Sep 17 00:00:00 2001 From: David Hall Date: Tue, 5 Nov 2019 15:37:10 -0600 Subject: [PATCH] MCOL-3448 Corrected datatype in predicate for RowItem RowItem compares, such as (c1,c2) IN ((v11, v21), (v12, v22)) gave bad answers due to a typo getting the wrong datatype. --- dbcon/mysql/ha_mcs_execplan.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbcon/mysql/ha_mcs_execplan.cpp b/dbcon/mysql/ha_mcs_execplan.cpp index 28b2d8065..07fdb25f5 100755 --- a/dbcon/mysql/ha_mcs_execplan.cpp +++ b/dbcon/mysql/ha_mcs_execplan.cpp @@ -1614,7 +1614,7 @@ bool buildRowColumnFilter(gp_walk_info* gwip, RowColumn* rhs, RowColumn* lhs, It if (!cc) break; - sop->setOpType(sc->resultType(), valVec[j]->resultType()); + sop->setOpType(sc->resultType(), valVec[j]->columnVec()[i]->resultType()); cf->pushFilter(new SimpleFilter(sop, sc->clone(), valVec[j]->columnVec()[i]->clone(), gwip->thd->variables.time_zone->get_name()->ptr()));