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
0fbd67da
Commit
0fbd67da
authored
Jun 16, 2005
by
serg@serg.mylan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
for consictency, changed to use memcpy_fixed.
parent
b49bb72b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
sql/sql_select.cc
sql/sql_select.cc
+6
-5
No files found.
sql/sql_select.cc
View file @
0fbd67da
...
@@ -8112,9 +8112,9 @@ store_record_in_cache(JOIN_CACHE *cache)
...
@@ -8112,9 +8112,9 @@ store_record_in_cache(JOIN_CACHE *cache)
end
>
str
&&
end
[
-
1
]
==
' '
;
end
>
str
&&
end
[
-
1
]
==
' '
;
end
--
)
;
end
--
)
;
length
=
(
uint
)
(
end
-
str
);
length
=
(
uint
)
(
end
-
str
);
memcpy
(
pos
+
2
,
str
,
length
);
memcpy
(
pos
+
sizeof
(
length
)
,
str
,
length
);
int2store
(
pos
,
length
);
memcpy_fixed
(
pos
,
&
length
,
sizeof
(
length
)
);
pos
+=
length
+
2
;
pos
+=
length
+
sizeof
(
length
)
;
}
}
else
else
{
{
...
@@ -8177,9 +8177,10 @@ read_cached_record(JOIN_TAB *tab)
...
@@ -8177,9 +8177,10 @@ read_cached_record(JOIN_TAB *tab)
{
{
if
(
copy
->
strip
)
if
(
copy
->
strip
)
{
{
memcpy
(
copy
->
str
,
pos
+
2
,
length
=
uint2korr
(
pos
));
memcpy_fixed
(
&
length
,
pos
,
sizeof
(
length
));
memcpy
(
copy
->
str
,
pos
+
sizeof
(
length
),
length
);
memset
(
copy
->
str
+
length
,
' '
,
copy
->
length
-
length
);
memset
(
copy
->
str
+
length
,
' '
,
copy
->
length
-
length
);
pos
+=
2
+
length
;
pos
+=
sizeof
(
length
)
+
length
;
}
}
else
else
{
{
...
...
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