mirror of
https://github.com/MariaDB/server.git
synced 2026-04-28 11:15:33 +02:00
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
This commit is contained in:
parent
f2e5f6524b
commit
190fb8960a
4 changed files with 19 additions and 10 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue