[MDEV-16451] Split Item_equal::add_const() into a virtual method in type_handler() Created: 2018-06-09  Updated: 2018-06-09  Resolved: 2018-06-09

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

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

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

 Description   

The method Item_equal::add_const() has this code:

switch (Item_equal::compare_type_handler()->cmp_type()) {

This is not friendly for user data type plugins, because user data types will need their own value comparison implementation, different from the ones for the built-in data types.

This task is to split this swith into a new virtual method in Type_handler with approximately this API:

virtual bool Item_eq_value(THD *thd, Item *a, Item *b) const;


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