Commit 2e57c8cc authored by Alexander Barkov's avatar Alexander Barkov

MDEV-19957 Move Type_handler_geometry code from sql_type.h/cc to sql_type_geom.h/cc

parent b3161bd9
......@@ -114,6 +114,7 @@ SET(SQL_EMBEDDED_SOURCES emb_qcache.cc libmysqld.c lib_sql.cc
../sql/compat56.cc
../sql/sql_type.cc ../sql/sql_type.h
../sql/sql_type_json.cc
../sql/sql_type_geom.cc
../sql/table_cache.cc ../sql/mf_iocache_encr.cc
../sql/item_inetfunc.cc
../sql/wsrep_dummy.cc ../sql/encryption.cc
......
......@@ -136,6 +136,7 @@ SET (SQL_SOURCE
semisync.cc semisync_master.cc semisync_slave.cc
semisync_master_ack_receiver.cc
sql_type.cc sql_type_json.cc
sql_type_geom.cc
item_windowfunc.cc sql_window.cc
sql_cte.cc
item_vers.cc
......
......@@ -32,6 +32,7 @@
#include "sql_error.h" /* Sql_condition */
#include "compat56.h"
#include "sql_type.h" /* Type_std_attributes */
#include "sql_type_geom.h"
#include "field_comp.h"
class Send_field;
......
......@@ -736,27 +736,6 @@ Field_null::rpl_conv_type_from(const Conv_source &source,
}
#ifdef HAVE_SPATIAL
uint32
Type_handler_geometry::max_display_length_for_field(const Conv_source &src)
const
{
return (uint32) my_set_bits(4 * 8);
}
enum_conv_type
Field_geom::rpl_conv_type_from(const Conv_source &source,
const Relay_log_info *rli,
const Conv_param &param) const
{
return binlog_type() == source.real_field_type() ?
rpl_conv_type_from_same_data_type(source.metadata(), rli, param) :
CONV_TYPE_IMPOSSIBLE;
}
#endif // HAVE_SPATIAL
/**********************************************************************/
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment