[MDEV-12771] Remove Item_func_xxx::decimal_precision() for case and abbreviations Created: 2017-05-10  Updated: 2017-05-10  Resolved: 2017-05-10

Status: Closed
Project: MariaDB Server
Component/s: OTHER
Fix Version/s: 10.3.1

Type: Task Priority: Major
Reporter: Alexander Barkov Assignee: Alexander Barkov
Resolution: Fixed Votes: 0
Labels: datatype, refactoring


 Description   

decimal_precision() implementations for the classes implementing CASE and CASE-alike functions became redundant after implementing MDEV-12770. The derived implementation from Item should perfectly do the job (by going through Type_handler_xxx::type_handler().

We'll remove decimal_precision() from the following classes:

Item_func_ifnull
Item_func_case_abbreviation2
Item_func_if
Item_func_nvl2
Item_func_nullif
Item_func_case

This will reduce the amount of duplicate code.



 Comments   
Comment by Alexander Barkov [ 2017-05-10 ]

Pushed to bb-10.2-ext

Generated at Thu Feb 08 08:00:20 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.