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
4ed2ba5f
Commit
4ed2ba5f
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
344bdd2a
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 @
4ed2ba5f
...
...
@@ -847,7 +847,7 @@ int _mi_key_cmp(register MI_KEYSEG *keyseg, register uchar *a,
full_b_length
=
b_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
]
==
' '
)
a_length
--
;
...
...
mysql-test/r/myisam.result
View file @
4ed2ba5f
...
...
@@ -390,4 +390,8 @@ insert into t1 values ('aaa '),('aaa');
repair table t1;
Table Op Msg_type Msg_text
test.t1 repair status OK
select concat(a,'.') from t1 where a='aaa';
concat(a,'.')
aaa.
aaa .
drop table t1;
mysql-test/t/myisam.test
View file @
4ed2ba5f
...
...
@@ -387,10 +387,11 @@ check 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
)));
insert
into
t1
values
(
'aaa '
),(
'aaa'
);
repair
table
t1
;
select
concat
(
a
,
'.'
)
from
t1
where
a
=
'aaa'
;
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