From 976cc16a0e9ee3ee069481577cc9172b694d3756 Mon Sep 17 00:00:00 2001 From: Andrew Hutchings Date: Tue, 11 Jul 2017 13:55:22 +0100 Subject: [PATCH] MCOL-674 Fix subquery in UPDATE When some subquery changes were made over a year ago the flag to state that an UPDATE subquery was not constant data was accidentally commented out. This brings it back in again. --- dbcon/mysql/ha_calpont_impl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dbcon/mysql/ha_calpont_impl.cpp b/dbcon/mysql/ha_calpont_impl.cpp index 88cc597e4..38b0f6e2f 100755 --- a/dbcon/mysql/ha_calpont_impl.cpp +++ b/dbcon/mysql/ha_calpont_impl.cpp @@ -1048,8 +1048,8 @@ uint32_t doUpdateDelete(THD *thd) } else if ( value->type() == Item::SUBSELECT_ITEM ) { -// isFromCol = true; -// columnAssignmentPtr->fFromCol = true; + isFromCol = true; + columnAssignmentPtr->fFromCol = true; // Item_field* setIt = reinterpret_cast (value); // string sectableName = string(setIt->table_name); // string secschemaName = string(setIt->db_name);