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
2ff0016d
Commit
2ff0016d
authored
Jan 16, 2004
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
a fix (Bug #2298: Trailing whitespace inconsistently handled in WHERE clause)
parent
d894ca49
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
myisam/mi_key.c
myisam/mi_key.c
+2
-2
myisam/mi_search.c
myisam/mi_search.c
+4
-4
No files found.
myisam/mi_key.c
View file @
2ff0016d
...
@@ -62,7 +62,7 @@ uint _mi_make_key(register MI_INFO *info, uint keynr, uchar *key,
...
@@ -62,7 +62,7 @@ uint _mi_make_key(register MI_INFO *info, uint keynr, uchar *key,
end
=
pos
+
length
;
end
=
pos
+
length
;
if
(
type
!=
HA_KEYTYPE_NUM
)
if
(
type
!=
HA_KEYTYPE_NUM
)
{
{
while
(
end
>
pos
&&
end
[
-
1
]
==
' '
)
while
(
end
>
pos
&&
(
end
[
-
1
]
==
' '
||
end
[
-
1
]
==
'\t'
)
)
end
--
;
end
--
;
}
}
else
else
...
@@ -186,7 +186,7 @@ uint _mi_pack_key(register MI_INFO *info, uint keynr, uchar *key, uchar *old,
...
@@ -186,7 +186,7 @@ uint _mi_pack_key(register MI_INFO *info, uint keynr, uchar *key, uchar *old,
end
=
pos
+
length
;
end
=
pos
+
length
;
if
(
type
!=
HA_KEYTYPE_NUM
)
if
(
type
!=
HA_KEYTYPE_NUM
)
{
{
while
(
end
>
pos
&&
end
[
-
1
]
==
' '
)
while
(
end
>
pos
&&
(
end
[
-
1
]
==
' '
||
end
[
-
1
]
==
'\t'
)
)
end
--
;
end
--
;
}
}
else
else
...
...
myisam/mi_search.c
View file @
2ff0016d
...
@@ -795,9 +795,9 @@ int _mi_key_cmp(register MI_KEYSEG *keyseg, register uchar *a,
...
@@ -795,9 +795,9 @@ int _mi_key_cmp(register MI_KEYSEG *keyseg, register uchar *a,
uint
length
=
(
uint
)
(
end
-
a
),
a_length
=
length
,
b_length
=
length
;
uint
length
=
(
uint
)
(
end
-
a
),
a_length
=
length
,
b_length
=
length
;
if
(
!
(
nextflag
&
SEARCH_PREFIX
))
if
(
!
(
nextflag
&
SEARCH_PREFIX
))
{
{
while
(
a_length
&&
a
[
a_length
-
1
]
==
' '
)
while
(
a_length
&&
(
a
[
a_length
-
1
]
==
' '
||
a
[
a_length
-
1
]
==
'\t'
)
)
a_length
--
;
a_length
--
;
while
(
b_length
&&
b
[
b_length
-
1
]
==
' '
)
while
(
b_length
&&
(
b
[
b_length
-
1
]
==
' '
||
b
[
b_length
-
1
]
==
'\t'
)
)
b_length
--
;
b_length
--
;
}
}
if
(
piks
&&
if
(
piks
&&
...
@@ -849,9 +849,9 @@ int _mi_key_cmp(register MI_KEYSEG *keyseg, register uchar *a,
...
@@ -849,9 +849,9 @@ int _mi_key_cmp(register MI_KEYSEG *keyseg, register uchar *a,
if
(
!
(
nextflag
&
(
SEARCH_PREFIX
|
SEARCH_UPDATE
)))
if
(
!
(
nextflag
&
(
SEARCH_PREFIX
|
SEARCH_UPDATE
)))
{
{
while
(
a_length
&&
a
[
a_length
-
1
]
==
' '
)
while
(
a_length
&&
(
a
[
a_length
-
1
]
==
' '
||
a
[
a_length
-
1
]
==
'\t'
)
)
a_length
--
;
a_length
--
;
while
(
b_length
&&
b
[
b_length
-
1
]
==
' '
)
while
(
b_length
&&
(
b
[
b_length
-
1
]
==
' '
||
b
[
b_length
-
1
]
==
'\t'
)
)
b_length
--
;
b_length
--
;
}
}
if
(
piks
&&
if
(
piks
&&
...
...
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