From 195833f1b641b0e119507040ae6feb607201900e Mon Sep 17 00:00:00 2001 From: qggcs Date: Thu, 28 Jul 2022 15:29:53 +0800 Subject: [PATCH] refactor: remove redundant assignments --- sql/item_jsonfunc.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sql/item_jsonfunc.cc b/sql/item_jsonfunc.cc index 37dd2454116..011cfdc8fd0 100644 --- a/sql/item_jsonfunc.cc +++ b/sql/item_jsonfunc.cc @@ -2605,10 +2605,8 @@ String *Item_func_json_merge_patch::val_str(String *str) if (json_read_value(&je2)) goto error_return; if (je2.value_type == JSON_VALUE_OBJECT) - { - merge_to_null= true; goto cont_point; - } + merge_to_null= false; str->set(js2->ptr(), js2->length(), js2->charset()); goto cont_point;