[MDEV-13526] Add Type_handler::Item_val_bool() Created: 2017-08-15  Updated: 2017-08-15  Resolved: 2017-08-15

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

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

Issue Links:
Blocks
blocks MDEV-4912 Data type plugin API version 1 Closed

 Description   

The code in this method:

bool Item::val_bool();

is not friendly to pluggable data types, as it tests for result_type().
Pluggable data types may want to implement a different way for boolean conversion.

Under terms of this task will add new methods in Type_handler:

virtual bool Item_val_bool(Item *item) const;

and split the mentioned code into virtual implementations for relevant Type_handler_xxx classes.


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