summaryrefslogtreecommitdiff
path: root/sql/sql_parse.cc
diff options
context:
space:
mode:
authorunknown <bar@bar.mysql.r18.ru>2003-03-27 13:09:09 +0400
committerunknown <bar@bar.mysql.r18.ru>2003-03-27 13:09:09 +0400
commit8bbbd1d6f84740e1def5d34251f1942c19805543 (patch)
treecf02a1f110ca4ad00d79000f82123c306165adf0 /sql/sql_parse.cc
parent27e77a8fd6f5531e64557c20d594b85050df96b6 (diff)
downloadmariadb-git-8bbbd1d6f84740e1def5d34251f1942c19805543.tar.gz
More OpenGIS compatibility:
Point, MultiLine, Poligom, etc, are now not aliases for Geometry, but separate field types.
Diffstat (limited to 'sql/sql_parse.cc')
-rw-r--r--sql/sql_parse.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc
index d08e6b70634..3169d2235f5 100644
--- a/sql/sql_parse.cc
+++ b/sql/sql_parse.cc
@@ -3391,7 +3391,8 @@ bool add_field_to_list(THD *thd, char *field_name, enum_field_types type,
char *length, char *decimals,
uint type_modifier,
Item *default_value, Item *comment,
- char *change, TYPELIB *interval, CHARSET_INFO *cs)
+ char *change, TYPELIB *interval, CHARSET_INFO *cs,
+ uint uint_geom_type)
{
register create_field *new_field;
LEX *lex= &thd->lex;
@@ -3445,6 +3446,7 @@ bool add_field_to_list(THD *thd, char *field_name, enum_field_types type,
new_field->interval=0;
new_field->pack_length=0;
new_field->charset=cs;
+ new_field->geom_type= (Field::geometry_type) uint_geom_type;
if (!comment)
{