Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions mysql-test/main/func_json.test
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
6 changes: 3 additions & 3 deletions sql/item.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down