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
ced15fcc
Commit
ced15fcc
authored
Nov 24, 2007
by
holyfoot/hf@hfmain.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk@192.168.21.1:mysql-5.0-opt
into mysql.com:/home/hf/work/30284/my50-30284
parents
0b40c63f
7094295d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
1 deletion
+20
-1
myisam/mi_check.c
myisam/mi_check.c
+1
-1
mysql-test/r/gis.result
mysql-test/r/gis.result
+8
-0
mysql-test/t/gis.test
mysql-test/t/gis.test
+11
-0
No files found.
myisam/mi_check.c
View file @
ced15fcc
...
@@ -454,7 +454,7 @@ int chk_key(MI_CHECK *param, register MI_INFO *info)
...
@@ -454,7 +454,7 @@ int chk_key(MI_CHECK *param, register MI_INFO *info)
if
((
!
(
param
->
testflag
&
T_SILENT
)))
if
((
!
(
param
->
testflag
&
T_SILENT
)))
printf
(
"- check data record references index: %d
\n
"
,
key
+
1
);
printf
(
"- check data record references index: %d
\n
"
,
key
+
1
);
if
(
keyinfo
->
flag
&
HA_FULLTEXT
)
if
(
keyinfo
->
flag
&
(
HA_FULLTEXT
|
HA_SPATIAL
)
)
full_text_keys
++
;
full_text_keys
++
;
if
(
share
->
state
.
key_root
[
key
]
==
HA_OFFSET_ERROR
&&
if
(
share
->
state
.
key_root
[
key
]
==
HA_OFFSET_ERROR
&&
(
info
->
state
->
records
==
0
||
keyinfo
->
flag
&
HA_FULLTEXT
))
(
info
->
state
->
records
==
0
||
keyinfo
->
flag
&
HA_FULLTEXT
))
...
...
mysql-test/r/gis.result
View file @
ced15fcc
...
@@ -766,6 +766,14 @@ geomdatawkb longblob YES NULL
...
@@ -766,6 +766,14 @@ geomdatawkb longblob YES NULL
drop table t1;
drop table t1;
drop table t2;
drop table t2;
drop table t3;
drop table t3;
create table t1(col1 geometry default null,col15 geometrycollection not
null,spatial index(col15),index(col1(15)))engine=myisam;
insert into t1 set col15 = GeomFromText('POINT(6 5)');
insert into t1 set col15 = GeomFromText('POINT(6 5)');
check table t1 extended;
Table Op Msg_type Msg_text
test.t1 check status OK
drop table t1;
End of 4.1 tests
End of 4.1 tests
create table t1 (s1 geometry not null,s2 char(100));
create table t1 (s1 geometry not null,s2 char(100));
create trigger t1_bu before update on t1 for each row set new.s1 = null;
create trigger t1_bu before update on t1 for each row set new.s1 = null;
...
...
mysql-test/t/gis.test
View file @
ced15fcc
...
@@ -470,6 +470,17 @@ drop table t1;
...
@@ -470,6 +470,17 @@ drop table t1;
drop
table
t2
;
drop
table
t2
;
drop
table
t3
;
drop
table
t3
;
#
# Bug #30284 spatial key corruption
#
create
table
t1
(
col1
geometry
default
null
,
col15
geometrycollection
not
null
,
spatial
index
(
col15
),
index
(
col1
(
15
)))
engine
=
myisam
;
insert
into
t1
set
col15
=
GeomFromText
(
'POINT(6 5)'
);
insert
into
t1
set
col15
=
GeomFromText
(
'POINT(6 5)'
);
check
table
t1
extended
;
drop
table
t1
;
--
echo
End
of
4.1
tests
--
echo
End
of
4.1
tests
#
#
...
...
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