Details
-
Task
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
None
-
None
Description
In order to make built-in and pluggable data types look similar inside the server code, we'll split this function:
static bool
|
can_convert_field_to(Field *field,
|
enum_field_types source_type, uint16 metadata,
|
Relay_log_info *rli, uint16 mflags,
|
int *order_var)
|
{
|
...
|
}
|
into type-specific implementations of a new virtual method in Type_handler.
The relevant piece of the code in the original type handler patch:
--- sql/rpl_utility.cc 2014-05-13 09:53:30 +0000
|
+++ sql/rpl_utility.cc 2014-06-27 15:48:45 +0000
|
@@ -675,6 +675,9 @@ can_convert_field_to(Field *field,
|
*/
|
 |
DBUG_PRINT("debug", ("Base types are different, checking conversion"));
|
+ if (Type_handlers.handler(source_type))
|
+ DBUG_RETURN(false);
|
Attachments
Issue Links
- is part of
-
MDEV-19710 Split the server side code in rpl_utility.cc into virtual methods in Type_handler
- Closed