From 3eb1e11d8a68b5667193d14d718b5e672fe18fb7 Mon Sep 17 00:00:00 2001 From: Rucha Deodhar Date: Wed, 26 Jan 2022 03:02:45 +0530 Subject: MDEV-23479: Add a THD* argument to Item_func_or_sum::fix_length_and_dec() Fix: Added THD *thd argument in Item_func_or_sum::fix_length_and_dec() and in fix_length_and_dec() for all derived classes of Item_func_or_sum. --- sql/item_geofunc.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sql/item_geofunc.cc') diff --git a/sql/item_geofunc.cc b/sql/item_geofunc.cc index 0fdcf9e94e2..ad26eda990f 100644 --- a/sql/item_geofunc.cc +++ b/sql/item_geofunc.cc @@ -42,7 +42,7 @@ #include "item_create.h" -bool Item_geometry_func::fix_length_and_dec() +bool Item_geometry_func::fix_length_and_dec(THD *thd) { collation.set(&my_charset_bin); decimals=0; @@ -214,7 +214,7 @@ String *Item_func_as_wkt::val_str_ascii(String *str) } -bool Item_func_as_wkt::fix_length_and_dec() +bool Item_func_as_wkt::fix_length_and_dec(THD *thd) { collation.set(default_charset(), DERIVATION_COERCIBLE, MY_REPERTOIRE_ASCII); max_length= (uint32) UINT_MAX32; @@ -241,7 +241,7 @@ String *Item_func_as_wkb::val_str(String *str) } -bool Item_func_as_geojson::fix_length_and_dec() +bool Item_func_as_geojson::fix_length_and_dec(THD *thd) { collation.set(default_charset(), DERIVATION_COERCIBLE, MY_REPERTOIRE_ASCII); max_length=MAX_BLOB_WIDTH; -- cgit v1.2.1