From fb41117c907a99d051ac09c229762978373d7eb0 Mon Sep 17 00:00:00 2001 From: Yuchen Pei Date: Tue, 20 Dec 2022 10:38:35 +1100 Subject: MDEV-29653 Make sure Item_cache_row has the correct type handler. The incorrect type handler caused an incorrect result_type() for Item_cache_row (STRING_RESULT rather than ROW_RESULT). By updating the constructor of Item_cache_row with the correct type handler, it fixes this problem. Signed-off-by: Yuchen Pei Reviewed-by: Sergei Golubchik --- sql/item.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sql/item.h') diff --git a/sql/item.h b/sql/item.h index 083bc2261ce..9389250d6ec 100644 --- a/sql/item.h +++ b/sql/item.h @@ -7305,7 +7305,7 @@ class Item_cache_row: public Item_cache bool save_array; public: Item_cache_row(THD *thd): - Item_cache(thd), values(0), item_count(2), + Item_cache(thd, &type_handler_row), values(0), item_count(2), save_array(0) {} /* -- cgit v1.2.1