[MDEV-19377] Replace Virtual_column_info::field_type to Type_handler Created: 2019-05-01  Updated: 2019-05-01  Resolved: 2019-05-01

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

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   

Column_definition::check(THD *thd) has the following code:

   if (vcol_info)
   {
     DBUG_ASSERT(vcol_info->expr);
     vcol_info->set_field_type(real_field_type())

To be pluggable data type friendly, we'll need to remove all calls for Column_definition::real_field_type() eventually.
To get rid of this entry, let's do the following:

  • Remove the member Virtual_column_info::field_type
  • Derive Virtual_column_info from Type_handler_hybrid_field_type
  • Remove methods set_field_type() and get_real_type() and use Type_handler_hybrid_field_type::set_handler() and Type_handler_hybrid_field_type::typ_handler() instead.

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