[MDEV-12777] Change Lex_field_type_st::m_type from enum_field_types to Type_handler pointer Created: 2017-05-10  Updated: 2017-05-10  Resolved: 2017-05-10

Status: Closed
Project: MariaDB Server
Component/s: Parser
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   

We'll replace the member in Lex_field_type_st::m_type responsible for storing the real data type from:

  enum_field_types m_type; 

to

  const Type_handler *m_handler;

and do relevant changes in sql_yacc.yy and sql_yacc_ora.yy, e.g. replace things like:

  $$.set(MYSQL_TYPE_FLOAT, $2);

to

  $$.set(&type_handler_float, $2);



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

Pushed to bb-10.2-ext

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