1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-19125 Change Send_field::type from enum_field_types to Type_handler*

This commit is contained in:
Alexander Barkov
2019-04-01 20:29:45 +04:00
parent e10f9e6c81
commit 4d12a6458e
11 changed files with 222 additions and 95 deletions

View File

@ -22,6 +22,7 @@
#include "sql_error.h"
#include "my_decimal.h" /* my_decimal */
#include "sql_type.h"
class i_string;
class Field;
@ -40,7 +41,12 @@ protected:
String *convert;
uint field_pos;
#ifndef DBUG_OFF
enum enum_field_types *field_types;
const Type_handler **field_handlers;
bool valid_handler(uint pos, protocol_send_type_t type) const
{
return field_handlers == 0 ||
field_handlers[field_pos]->protocol_send_type() == type;
}
#endif
uint field_count;
#ifndef EMBEDDED_LIBRARY