summaryrefslogtreecommitdiff
path: root/sql/spatial.cc
diff options
context:
space:
mode:
authorunknown <hf@deer.mysql.r18.ru>2002-12-18 17:17:35 +0400
committerunknown <hf@deer.mysql.r18.ru>2002-12-18 17:17:35 +0400
commit190fb8960aab98c41d746f8a42f4a1022744a31d (patch)
tree1e96aa4ef0607a1ad701b6d3b70e9c51c9c8e2f8 /sql/spatial.cc
parentf2e5f6524bffce08375b4ec68f57d10713c53935 (diff)
downloadmariadb-git-190fb8960aab98c41d746f8a42f4a1022744a31d.tar.gz
Spatial-related fixes
sql/item_strfunc.cc: spatial function's fixes sql/spatial.cc: spatial type comperations are case-independent now sql/sql_string.h: this is a bit safer BitKeeper/etc/logging_ok: Logging to logging@openlogging.org accepted
Diffstat (limited to 'sql/spatial.cc')
-rw-r--r--sql/spatial.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/spatial.cc b/sql/spatial.cc
index b21d30e4b53..1e2b9f1c512 100644
--- a/sql/spatial.cc
+++ b/sql/spatial.cc
@@ -44,7 +44,7 @@ static Geometry::GClassInfo ci_collection[] =
IMPLEMENT_GEOM(GGeometryCollection, wkbGeometryCollection, "GEOMETRYCOLLECTION")
};
-static Geometry::GClassInfo *ci_collection_end = ci_collection + sizeof(ci_collection);
+static Geometry::GClassInfo *ci_collection_end = ci_collection + sizeof(ci_collection)/sizeof(ci_collection[0]);
/***************************** Geometry *******************************/
@@ -66,7 +66,7 @@ Geometry::GClassInfo *Geometry::find_class(const char *name, size_t len)
cur_rt < ci_collection_end; ++cur_rt)
{
if ((cur_rt->m_name[len] == 0) &&
- (strncmp(cur_rt->m_name, name, len) == 0))
+ (strncasecmp(cur_rt->m_name, name, len) == 0))
{
return cur_rt;
}