From 0bd172cd6e6d6a5f96ba595c3e7b6e0834f1b32d Mon Sep 17 00:00:00 2001 From: Roman Nozdrin Date: Tue, 17 Mar 2020 09:01:20 +0000 Subject: [PATCH] MCOL-641 The fix to support recent changes in 10.5.1. --- dbcon/mysql/ha_mcs_impl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dbcon/mysql/ha_mcs_impl.cpp b/dbcon/mysql/ha_mcs_impl.cpp index e798ead3f..1de0870f9 100644 --- a/dbcon/mysql/ha_mcs_impl.cpp +++ b/dbcon/mysql/ha_mcs_impl.cpp @@ -1494,8 +1494,8 @@ uint32_t doUpdateDelete(THD* thd, gp_walk_info& gwi, const std::vector& c // Minor optimization: // do not perform updates of the form "update t1 set a = a;" if (!strcmp(item->name.str, setIt->name.str) - && item->table_name && setIt->table_name && !strcmp(item->table_name, setIt->table_name) - && item->db_name && setIt->db_name && !strcmp(item->db_name, setIt->db_name)) + && item->table_name.str && setIt->table_name.str && !strcmp(item->table_name.str, setIt->table_name.str) + && item->db_name.str && setIt->db_name.str && !strcmp(item->db_name.str, setIt->db_name.str)) { delete columnAssignmentPtr; continue;