mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
SCRUM:
WL#1163 (Making spatial code optional) Pack of changes to do in sql/ code. sql/field.cc: Spatial code #ifdef-ed sql/field.h: Spatial code #ifdef-ed sql/item_create.cc: Spatial code #ifdef-ed sql/item_create.h: Spatial code #ifdef-ed sql/item_geofunc.cc: Spatial code #ifdef-ed sql/item_geofunc.h: Spatial code #ifdef-ed GEOM_NEW implementation sql/lex.h: Code was significally modified to support optional group of functions sql/lex_symbol.h: SYM_GROUP structure presented sql/sql_table.cc: Spatial code #ifdef-ed sql/sql_yacc.yy: Several modifications to make spatial code optional sql/table.cc: Spatial code #ifdef-ed sql/unireg.cc: Spatial code #ifdef-ed
This commit is contained in:
@ -471,7 +471,12 @@ static bool pack_fields(File file,List<create_field> &create_fields)
|
||||
buff[12]= (uchar) field->interval_id;
|
||||
buff[13]= (uchar) field->sql_type;
|
||||
if (field->sql_type == FIELD_TYPE_GEOMETRY)
|
||||
{
|
||||
buff[14]= (uchar) field->geom_type;
|
||||
#ifndef HAVE_SPATIAL
|
||||
DBUG_ASSERT(0); // Should newer happen
|
||||
#endif
|
||||
}
|
||||
else if (field->charset)
|
||||
buff[14]= (uchar) field->charset->number;
|
||||
else
|
||||
|
Reference in New Issue
Block a user