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;