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
0ef9acc9
Commit
0ef9acc9
authored
Jan 21, 2004
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
two more bugfixes for "space stripping in MyISAM indexes"
parent
2c3fdcf7
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
myisam/mi_search.c
myisam/mi_search.c
+1
-1
mysql-test/r/myisam.result
mysql-test/r/myisam.result
+4
-0
mysql-test/t/myisam.test
mysql-test/t/myisam.test
+2
-1
No files found.
myisam/mi_search.c
View file @
0ef9acc9
...
@@ -847,7 +847,7 @@ int _mi_key_cmp(register MI_KEYSEG *keyseg, register uchar *a,
...
@@ -847,7 +847,7 @@ int _mi_key_cmp(register MI_KEYSEG *keyseg, register uchar *a,
full_b_length
=
b_length
;
full_b_length
=
b_length
;
next_key_length
=
key_length
-
b_length
-
pack_length
;
next_key_length
=
key_length
-
b_length
-
pack_length
;
if
(
!
(
nextflag
&
(
SEARCH_PREFIX
|
SEARCH_UPDATE
))
)
if
(
(
nextflag
&
(
SEARCH_FIND
|
SEARCH_UPDATE
))
==
SEARCH_FIND
)
{
{
while
(
a_length
&&
a
[
a_length
-
1
]
==
' '
)
while
(
a_length
&&
a
[
a_length
-
1
]
==
' '
)
a_length
--
;
a_length
--
;
...
...
mysql-test/r/myisam.result
View file @
0ef9acc9
...
@@ -390,4 +390,8 @@ insert into t1 values ('aaa '),('aaa');
...
@@ -390,4 +390,8 @@ insert into t1 values ('aaa '),('aaa');
repair table t1;
repair table t1;
Table Op Msg_type Msg_text
Table Op Msg_type Msg_text
test.t1 repair status OK
test.t1 repair status OK
select concat(a,'.') from t1 where a='aaa';
concat(a,'.')
aaa.
aaa .
drop table t1;
drop table t1;
mysql-test/t/myisam.test
View file @
0ef9acc9
...
@@ -387,10 +387,11 @@ check table t1;
...
@@ -387,10 +387,11 @@ check table t1;
drop
table
t1
;
drop
table
t1
;
#
#
#
sort-repair bug
#
two bugs in myisam-space-stripping feature
#
#
create
table
t1
(
a
text
not
null
,
key
a
(
a
(
20
)));
create
table
t1
(
a
text
not
null
,
key
a
(
a
(
20
)));
insert
into
t1
values
(
'aaa '
),(
'aaa'
);
insert
into
t1
values
(
'aaa '
),(
'aaa'
);
repair
table
t1
;
repair
table
t1
;
select
concat
(
a
,
'.'
)
from
t1
where
a
=
'aaa'
;
drop
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