Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
4f919bee
Commit
4f919bee
authored
Oct 03, 2016
by
Jan Lindström
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable Geometry datatype for SPATIAL indexes and disable online
index creation for SPATIAL indexes.
parent
9e70d88d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
3 deletions
+14
-3
storage/innobase/handler/ha_innodb.cc
storage/innobase/handler/ha_innodb.cc
+0
-3
storage/innobase/handler/handler0alter.cc
storage/innobase/handler/handler0alter.cc
+14
-0
No files found.
storage/innobase/handler/ha_innodb.cc
View file @
4f919bee
...
...
@@ -7835,10 +7835,7 @@ get_innobase_type_from_mysql_type(
case
MYSQL_TYPE_DECIMAL
:
return
(
DATA_DECIMAL
);
case
MYSQL_TYPE_GEOMETRY
:
return
(
DATA_BLOB
);
/* TODO: MySQL 5.7: Geometry
return
(
DATA_GEOMETRY
);
*/
case
MYSQL_TYPE_TINY_BLOB
:
case
MYSQL_TYPE_MEDIUM_BLOB
:
case
MYSQL_TYPE_BLOB
:
...
...
storage/innobase/handler/handler0alter.cc
View file @
4f919bee
...
...
@@ -967,6 +967,20 @@ ha_innobase::check_if_supported_inplace_alter(
DBUG_ASSERT
(
!
m_prebuilt
->
table
->
fts
||
m_prebuilt
->
table
->
fts
->
doc_col
<
dict_table_get_n_user_cols
(
m_prebuilt
->
table
));
/* Spatial indexes should use copy method for now.
TOO: remove this when below ADD_SPATIAL_INDEX supported. */
for
(
uint
i
=
0
;
i
<
ha_alter_info
->
index_add_count
;
i
++
)
{
const
KEY
*
key
=
&
ha_alter_info
->
key_info_buffer
[
ha_alter_info
->
index_add_buffer
[
i
]];
if
(
key
->
flags
&
HA_SPATIAL
)
{
ha_alter_info
->
unsupported_reason
=
innobase_get_err_msg
(
ER_INNODB_FT_LIMIT
);
DBUG_RETURN
(
HA_ALTER_INPLACE_NOT_SUPPORTED
);
}
}
#ifdef MYSQL_SPATIAL_INDEX
if
(
ha_alter_info
->
handler_flags
&
Alter_inplace_info
::
ADD_SPATIAL_INDEX
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment