mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
a fix for a crashing bug when attempting to create InnoDB table
with GEOMETRY field type.
This commit is contained in:
@ -486,6 +486,12 @@ int mysql_create_table(THD *thd,const char *db, const char *table_name,
|
||||
blob_columns++;
|
||||
break;
|
||||
case FIELD_TYPE_GEOMETRY:
|
||||
if (!(file->table_flags() & HA_HAS_GEOMETRY))
|
||||
{
|
||||
my_printf_error(ER_WRONG_USAGE,ER(ER_WRONG_USAGE),MYF(0),
|
||||
"GEOMETRY FIELD TYPE","not supported by this storage engine ");
|
||||
DBUG_RETURN(-1);
|
||||
}
|
||||
sql_field->pack_flag=FIELDFLAG_GEOM |
|
||||
pack_length_to_packflag(sql_field->pack_length -
|
||||
portable_sizeof_char_ptr);
|
||||
|
Reference in New Issue
Block a user