diff options
author | unknown <bar@bar.mysql.r18.ru> | 2003-03-27 13:09:09 +0400 |
---|---|---|
committer | unknown <bar@bar.mysql.r18.ru> | 2003-03-27 13:09:09 +0400 |
commit | 8bbbd1d6f84740e1def5d34251f1942c19805543 (patch) | |
tree | cf02a1f110ca4ad00d79000f82123c306165adf0 /sql/unireg.cc | |
parent | 27e77a8fd6f5531e64557c20d594b85050df96b6 (diff) | |
download | mariadb-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/unireg.cc')
-rw-r--r-- | sql/unireg.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sql/unireg.cc b/sql/unireg.cc index fa843fe5d1e..5e723281d3f 100644 --- a/sql/unireg.cc +++ b/sql/unireg.cc @@ -458,7 +458,10 @@ static bool pack_fields(File file,List<create_field> &create_fields) int2store(buff+10,field->unireg_check); buff[12]= (uchar) field->interval_id; buff[13]= (uchar) field->sql_type; - buff[14]= (uchar) field->charset->number; + if (field->sql_type == FIELD_TYPE_GEOMETRY) + buff[14]= (uchar) field->geom_type; + else + buff[14]= (uchar) field->charset->number; int2store(buff+15, field->comment.length); comment_length+= field->comment.length; set_if_bigger(int_count,field->interval_id); @@ -573,6 +576,7 @@ static bool make_empty_rec(File file,enum db_type table_type, field->pack_flag, field->sql_type, field->charset, + field->geom_type, field->unireg_check, field->interval, field->field_name, |