mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-16351 JSON_OBJECT() treats hybrid functions with boolean arguments as numbers
Now the boolean data type is preserved in hybrid functions and MIN/MAX, so COALESCE(bool_expr,bool_expr) and MAX(bool_expr) are correctly detected by JSON_OBJECT() as being boolean rather than numeric expressions.
This commit is contained in:
@ -1397,7 +1397,7 @@ null_return:
|
||||
|
||||
static int append_json_value(String *str, Item *item, String *tmp_val)
|
||||
{
|
||||
if (item->is_bool_type())
|
||||
if (item->type_handler()->is_bool_type())
|
||||
{
|
||||
longlong v_int= item->val_int();
|
||||
const char *t_f;
|
||||
|
Reference in New Issue
Block a user