[MDEV-9396] Split Create_field::init() into virtual methods in Type_handler Created: 2016-01-11  Updated: 2019-04-23  Resolved: 2019-04-23

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

Type: Task Priority: Major
Reporter: Alexander Barkov Assignee: Alexander Barkov
Resolution: Duplicate Votes: 0
Labels: refactoring

Issue Links:
Blocks
blocks MDEV-4912 Data type plugin API version 1 Closed
Duplicate
duplicates MDEV-9188 Split Column_definition::check() into... Closed

 Description   

The relevant piece of the code in the original type handler patch:

@@ -9287,6 +9384,13 @@ bool Create_field::init(THD *thd, char *
 
   sign_len= fld_type_modifier & UNSIGNED_FLAG ? 0 : 1;
 
+  if (const Type_handler *handler= Type_handlers.handler(fld_type))
+  {
+    if (handler->init_field(this))
+      DBUG_RETURN(TRUE);
+    goto check_flags;
+  }
+
 


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