[GIS] get_geo_type_by_name bugfix

This commit is contained in:
obdev
2023-06-01 03:42:14 +00:00
committed by ob-robot
parent c0424a690f
commit ab45b51c6a
3 changed files with 9 additions and 7 deletions

View File

@ -136,6 +136,8 @@ ObGeoType ObGeoTypeUtil::get_geo_type_by_name(ObString &name)
geo_type = ObGeoType::MULTIPOLYGON;
} else if (0 == name.case_compare("geometrycollection")) {
geo_type = ObGeoType::GEOMETRYCOLLECTION;
} else if (0 == name.case_compare("geometry")) {
geo_type = ObGeoType::GEOMETRY;
} else {
LOG_WARN_RET(OB_INVALID_ARGUMENT, "get type by name failed", K(geo_type));
}