diff options
author | Rucha Deodhar <rucha.deodhar@mariadb.com> | 2022-01-26 03:02:45 +0530 |
---|---|---|
committer | Rucha Deodhar <rucha.deodhar@mariadb.com> | 2022-03-30 17:00:17 +0530 |
commit | 3eb1e11d8a68b5667193d14d718b5e672fe18fb7 (patch) | |
tree | 741082e6b477928875c9147296528cee9f30ab13 /sql/item_geofunc.cc | |
parent | 12abe61af44205a17c75ace71252db1bad05b184 (diff) | |
download | mariadb-git-3eb1e11d8a68b5667193d14d718b5e672fe18fb7.tar.gz |
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.
Diffstat (limited to 'sql/item_geofunc.cc')
-rw-r--r-- | sql/item_geofunc.cc | 6 |
1 files changed, 3 insertions, 3 deletions
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; |