[MDEV-10811] Change design from "Item is Type_handler" to "Item has Type_handler" Created: 2016-09-15  Updated: 2017-04-07  Resolved: 2016-11-16

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

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

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

 Description   

In 10.2 we introduced Type_handler.

The original idea was to assign a specific data type behavior to Item_xxx using:

  • either class templates passing a specific Type_handler_xxx as a parameter, or
  • virtual inheritance (also known as diamond inheritance) from Type_handler_xxx

Both ways appeared to have some disadvantages.
It was decided instead of "Item is Type_handler" (when Item derives from Type_handler) to use "Item has Type_handler" (when Item has a pointer to Type_handler).



 Comments   
Comment by Alexander Barkov [ 2016-09-17 ]

Reverted from bb-10.2-compatibility. Will push later (perhaps into 10.3)

Comment by Alexey Botchkov [ 2016-11-15 ]

Ok to push as a first step.

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