summaryrefslogtreecommitdiff
path: root/sql/unireg.cc
diff options
context:
space:
mode:
authorhf@deer.(none) <>2004-01-15 21:06:22 +0400
committerhf@deer.(none) <>2004-01-15 21:06:22 +0400
commit6dcda5153b4bada5a5e890641b0d69fb28bf8db5 (patch)
tree24c233c602a5644cbcc259252d10163dc0551fc5 /sql/unireg.cc
parentecf8118cff8e25fb2286ea75a9c24f513423a2da (diff)
downloadmariadb-git-6dcda5153b4bada5a5e890641b0d69fb28bf8db5.tar.gz
SCRUM:
WL#1163 (Making spatial code optional) Pack of changes to do in sql/ code.
Diffstat (limited to 'sql/unireg.cc')
-rw-r--r--sql/unireg.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/unireg.cc b/sql/unireg.cc
index fc948ddd5a6..6ebba313442 100644
--- a/sql/unireg.cc
+++ b/sql/unireg.cc
@@ -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