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
0c49363d
Commit
0c49363d
authored
Jan 10, 2008
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Post-merge fix after merging 5.0 -> 5.1. Replaced 'byte' with 'uchar'.
parent
1040bea9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
sql/filesort.cc
sql/filesort.cc
+6
-6
No files found.
sql/filesort.cc
View file @
0c49363d
...
@@ -37,8 +37,8 @@ if (my_b_write((file),(uchar*) (from),param->ref_length)) \
...
@@ -37,8 +37,8 @@ if (my_b_write((file),(uchar*) (from),param->ref_length)) \
static
char
**
make_char_array
(
char
**
old_pos
,
register
uint
fields
,
static
char
**
make_char_array
(
char
**
old_pos
,
register
uint
fields
,
uint
length
,
myf
my_flag
);
uint
length
,
myf
my_flag
);
static
byte
*
read_buffpek_from_file
(
IO_CACHE
*
buffer_file
,
uint
count
,
static
uchar
*
read_buffpek_from_file
(
IO_CACHE
*
buffer_file
,
uint
count
,
byte
*
buf
);
uchar
*
buf
);
static
ha_rows
find_all_keys
(
SORTPARAM
*
param
,
SQL_SELECT
*
select
,
static
ha_rows
find_all_keys
(
SORTPARAM
*
param
,
SQL_SELECT
*
select
,
uchar
*
*
sort_keys
,
IO_CACHE
*
buffer_file
,
uchar
*
*
sort_keys
,
IO_CACHE
*
buffer_file
,
IO_CACHE
*
tempfile
,
IO_CACHE
*
indexfile
);
IO_CACHE
*
tempfile
,
IO_CACHE
*
indexfile
);
...
@@ -376,16 +376,16 @@ static char **make_char_array(char **old_pos, register uint fields,
...
@@ -376,16 +376,16 @@ static char **make_char_array(char **old_pos, register uint fields,
/* Read 'count' number of buffer pointers into memory */
/* Read 'count' number of buffer pointers into memory */
static
byte
*
read_buffpek_from_file
(
IO_CACHE
*
buffpek_pointers
,
uint
count
,
static
uchar
*
read_buffpek_from_file
(
IO_CACHE
*
buffpek_pointers
,
uint
count
,
byte
*
buf
)
uchar
*
buf
)
{
{
ulong
length
=
sizeof
(
BUFFPEK
)
*
count
;
ulong
length
=
sizeof
(
BUFFPEK
)
*
count
;
byte
*
tmp
=
buf
;
uchar
*
tmp
=
buf
;
DBUG_ENTER
(
"read_buffpek_from_file"
);
DBUG_ENTER
(
"read_buffpek_from_file"
);
if
(
count
>
UINT_MAX
/
sizeof
(
BUFFPEK
))
if
(
count
>
UINT_MAX
/
sizeof
(
BUFFPEK
))
return
0
;
/* sizeof(BUFFPEK)*count will overflow */
return
0
;
/* sizeof(BUFFPEK)*count will overflow */
if
(
!
tmp
)
if
(
!
tmp
)
tmp
=
(
byte
*
)
my_malloc
(
length
,
MYF
(
MY_WME
));
tmp
=
(
uchar
*
)
my_malloc
(
length
,
MYF
(
MY_WME
));
if
(
tmp
)
if
(
tmp
)
{
{
if
(
reinit_io_cache
(
buffpek_pointers
,
READ_CACHE
,
0L
,
0
,
0
)
||
if
(
reinit_io_cache
(
buffpek_pointers
,
READ_CACHE
,
0L
,
0
,
0
)
||
...
...
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