diff --git a/mysql-test/main/func_json.test b/mysql-test/main/func_json.test index f3271f6bd3fde..e3d98d7525702 100644 --- a/mysql-test/main/func_json.test +++ b/mysql-test/main/func_json.test @@ -24,10 +24,7 @@ select json_array(1); --disable_view_protocol select json_array(1, "text", false, null); -#enable after fix MDEV-31554 ---disable_cursor_protocol select json_array_append('["a", "b"]', '$', FALSE); ---enable_cursor_protocol --enable_view_protocol select json_array_append('{"k1":1, "k2":["a", "b"]}', '$.k2', 2); select json_array_append('["a", ["b", "c"], "d"]', '$[0]', 2); diff --git a/sql/item.h b/sql/item.h index 55ff46c7af80a..7bad7801bbb41 100644 --- a/sql/item.h +++ b/sql/item.h @@ -4631,10 +4631,10 @@ class Item_bool :public Item_int { public: Item_bool(THD *thd, const char *str_arg, longlong i): - Item_int(thd, str_arg, i, 1) {} - Item_bool(THD *thd, bool i) :Item_int(thd, (longlong) i, 1) { } + Item_int(thd, str_arg, i, 5) {} + Item_bool(THD *thd, bool i) :Item_int(thd, (longlong) i, 5) { } Item_bool(const char *str_arg, longlong i): - Item_int(str_arg, i, 1) {} + Item_int(str_arg, i, 5) {} bool is_bool_literal() const override { return true; } Item *neg_transformer(THD *thd) override; const Type_handler *type_handler() const override