1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00
WL#1163 (Making spatial code optional)
Pack of changes to do in sql/ code.
This commit is contained in:
hf@deer.(none)
2004-01-15 21:06:22 +04:00
parent ecf8118cff
commit 6dcda5153b
12 changed files with 919 additions and 736 deletions

View File

@ -405,8 +405,13 @@ int openfrm(const char *name, const char *alias, uint db_stat, uint prgflag,
// charset and geometry_type share the same byte in frm
if (field_type == FIELD_TYPE_GEOMETRY)
{
#ifdef HAVE_SPATIAL
geom_type= (Field::geometry_type) strpos[14];
charset= &my_charset_bin;
#else
error= 4; // unsupported field type
goto err_not_open;
#endif
}
else
{