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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
09054bff
Commit
09054bff
authored
Dec 23, 2006
by
evgen@moonbone.local
Browse files
Options
Browse Files
Download
Plain Diff
Merge epotemkin@bk-internal.mysql.com:/home/bk/mysql-5.0-opt
into moonbone.local:/home/evgen/bk-trees/mysql-5.0-opt
parents
9b2b627a
a0f48f0f
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
0 deletions
+36
-0
myisam/mi_check.c
myisam/mi_check.c
+8
-0
mysql-test/r/gis-rtree.result
mysql-test/r/gis-rtree.result
+11
-0
mysql-test/t/gis-rtree.test
mysql-test/t/gis-rtree.test
+17
-0
No files found.
myisam/mi_check.c
View file @
09054bff
...
...
@@ -1758,6 +1758,12 @@ int mi_sort_index(MI_CHECK *param, register MI_INFO *info, my_string name)
MI_STATE_INFO
old_state
;
DBUG_ENTER
(
"mi_sort_index"
);
/* cannot sort index files with R-tree indexes */
for
(
key
=
0
,
keyinfo
=
&
share
->
keyinfo
[
0
];
key
<
share
->
base
.
keys
;
key
++
,
keyinfo
++
)
if
(
keyinfo
->
key_alg
==
HA_KEY_ALG_RTREE
)
return
0
;
if
(
!
(
param
->
testflag
&
T_SILENT
))
printf
(
"- Sorting index for MyISAM-table '%s'
\n
"
,
name
);
...
...
@@ -1850,6 +1856,8 @@ static int sort_one_index(MI_CHECK *param, MI_INFO *info, MI_KEYDEF *keyinfo,
char
llbuff
[
22
];
DBUG_ENTER
(
"sort_one_index"
);
/* cannot walk over R-tree indices */
DBUG_ASSERT
(
keyinfo
->
key_alg
!=
HA_KEY_ALG_RTREE
);
new_page_pos
=
param
->
new_file_pos
;
param
->
new_file_pos
+=
keyinfo
->
block_length
;
...
...
mysql-test/r/gis-rtree.result
View file @
09054bff
...
...
@@ -881,3 +881,14 @@ ERROR 22003: Cannot get geometry object from data you send to the GEOMETRY field
INSERT INTO t1(foo) VALUES ('');
ERROR 22003: Cannot get geometry object from data you send to the GEOMETRY field
DROP TABLE t1;
CREATE TABLE t1 (a INT AUTO_INCREMENT, b POINT NOT NULL, KEY (a), SPATIAL KEY (b));
INSERT INTO t1 (b) VALUES (GeomFromText('POINT(1 2)'));
INSERT INTO t1 (b) SELECT b FROM t1;
INSERT INTO t1 (b) SELECT b FROM t1;
INSERT INTO t1 (b) SELECT b FROM t1;
INSERT INTO t1 (b) SELECT b FROM t1;
INSERT INTO t1 (b) SELECT b FROM t1;
OPTIMIZE TABLE t1;
Table Op Msg_type Msg_text
test.t1 optimize status OK
DROP TABLE t1;
mysql-test/t/gis-rtree.test
View file @
09054bff
...
...
@@ -254,3 +254,20 @@ INSERT INTO t1() VALUES ();
--
error
1416
INSERT
INTO
t1
(
foo
)
VALUES
(
''
);
DROP
TABLE
t1
;
#
# Bug #23578: Corruption prevents Optimize table from working properly with a
# spatial index
#
CREATE
TABLE
t1
(
a
INT
AUTO_INCREMENT
,
b
POINT
NOT
NULL
,
KEY
(
a
),
SPATIAL
KEY
(
b
));
INSERT
INTO
t1
(
b
)
VALUES
(
GeomFromText
(
'POINT(1 2)'
));
INSERT
INTO
t1
(
b
)
SELECT
b
FROM
t1
;
INSERT
INTO
t1
(
b
)
SELECT
b
FROM
t1
;
INSERT
INTO
t1
(
b
)
SELECT
b
FROM
t1
;
INSERT
INTO
t1
(
b
)
SELECT
b
FROM
t1
;
INSERT
INTO
t1
(
b
)
SELECT
b
FROM
t1
;
OPTIMIZE
TABLE
t1
;
DROP
TABLE
t1
;
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