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
4c737cf1
Commit
4c737cf1
authored
Dec 21, 2006
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge gkodinov@bk-internal.mysql.com:/home/bk/mysql-5.0-opt
into rakia.gmz:/home/kgeorge/mysql/autopush/B23578-5.0-opt
parents
acf0636e
ce10e6ca
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 @
4c737cf1
...
@@ -1758,6 +1758,12 @@ int mi_sort_index(MI_CHECK *param, register MI_INFO *info, my_string name)
...
@@ -1758,6 +1758,12 @@ int mi_sort_index(MI_CHECK *param, register MI_INFO *info, my_string name)
MI_STATE_INFO
old_state
;
MI_STATE_INFO
old_state
;
DBUG_ENTER
(
"mi_sort_index"
);
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
))
if
(
!
(
param
->
testflag
&
T_SILENT
))
printf
(
"- Sorting index for MyISAM-table '%s'
\n
"
,
name
);
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,
...
@@ -1850,6 +1856,8 @@ static int sort_one_index(MI_CHECK *param, MI_INFO *info, MI_KEYDEF *keyinfo,
char
llbuff
[
22
];
char
llbuff
[
22
];
DBUG_ENTER
(
"sort_one_index"
);
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
;
new_page_pos
=
param
->
new_file_pos
;
param
->
new_file_pos
+=
keyinfo
->
block_length
;
param
->
new_file_pos
+=
keyinfo
->
block_length
;
...
...
mysql-test/r/gis-rtree.result
View file @
4c737cf1
...
@@ -881,3 +881,14 @@ ERROR 22003: Cannot get geometry object from data you send to the GEOMETRY field
...
@@ -881,3 +881,14 @@ ERROR 22003: Cannot get geometry object from data you send to the GEOMETRY field
INSERT INTO t1(foo) VALUES ('');
INSERT INTO t1(foo) VALUES ('');
ERROR 22003: Cannot get geometry object from data you send to the GEOMETRY field
ERROR 22003: Cannot get geometry object from data you send to the GEOMETRY field
DROP TABLE t1;
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 @
4c737cf1
...
@@ -254,3 +254,20 @@ INSERT INTO t1() VALUES ();
...
@@ -254,3 +254,20 @@ INSERT INTO t1() VALUES ();
--
error
1416
--
error
1416
INSERT
INTO
t1
(
foo
)
VALUES
(
''
);
INSERT
INTO
t1
(
foo
)
VALUES
(
''
);
DROP
TABLE
t1
;
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