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
30209c1d
Commit
30209c1d
authored
Nov 07, 2001
by
monty@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Portability fix.
Fixed linking problem with InnoDB.
parent
f9a321af
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
35 additions
and
28 deletions
+35
-28
BUILD/compile-alpha-cxx
BUILD/compile-alpha-cxx
+1
-1
acinclude.m4
acinclude.m4
+1
-1
client/mysql.cc
client/mysql.cc
+1
-1
client/mysqlmanager-pwgen.c
client/mysqlmanager-pwgen.c
+1
-1
innobase/que/que0que.c
innobase/que/que0que.c
+1
-1
myisam/ft_boolean_search.c
myisam/ft_boolean_search.c
+6
-4
myisam/sort.c
myisam/sort.c
+16
-12
mysys/queues.c
mysys/queues.c
+3
-3
strings/ctype-latin1_de.c
strings/ctype-latin1_de.c
+3
-2
tools/mysqlmanager.c
tools/mysqlmanager.c
+2
-2
No files found.
BUILD/compile-alpha-cxx
View file @
30209c1d
...
...
@@ -11,7 +11,7 @@ rm */.deps/*
make
if [ $? = 0 ]
then
rm */.deps/*
find . -name ".deps" | xargs rm -r
bin/mysqladmin shutdown
sur make install
if [ $? = 0 ]
...
...
acinclude.m4
View file @
30209c1d
...
...
@@ -1126,9 +1126,9 @@ dnl circular references.
\$(top_builddir)/innobase/usr/libusr.a\
\$(top_builddir)/innobase/odbc/libodbc.a\
\$(top_builddir)/innobase/srv/libsrv.a\
\$(top_builddir)/innobase/dict/libdict.a\
\$(top_builddir)/innobase/que/libque.a\
\$(top_builddir)/innobase/srv/libsrv.a\
\$(top_builddir)/innobase/dict/libdict.a\
\$(top_builddir)/innobase/ibuf/libibuf.a\
\$(top_builddir)/innobase/row/librow.a\
\$(top_builddir)/innobase/pars/libpars.a\
...
...
client/mysql.cc
View file @
30209c1d
...
...
@@ -129,7 +129,7 @@ static String glob_buffer,old_buffer;
static
int
wait_time
=
5
;
static
STATUS
status
;
static
ulong
select_limit
,
max_join_size
,
opt_connect_timeout
=
0
;
char
mysql_charsets_dir
[
FN_REFLEN
+
1
];
static
char
mysql_charsets_dir
[
FN_REFLEN
+
1
];
static
const
char
*
xmlmeta
[]
=
{
"&"
,
"&"
,
"<"
,
"<"
,
...
...
client/mysqlmanager-pwgen.c
View file @
30209c1d
...
...
@@ -145,7 +145,7 @@ int main(int argc, char** argv)
die
(
"Could not open '%s'(errno=%d)"
,
outfile
,
errno
);
get_pass
(
pw
,
sizeof
(
pw
)
-
1
);
my_MD5Init
(
&
context
);
my_MD5Update
(
&
context
,
pw
,
sizeof
(
pw
)
-
1
);
my_MD5Update
(
&
context
,
(
uchar
*
)
pw
,
sizeof
(
pw
)
-
1
);
my_MD5Final
(
digest
,
&
context
);
fprintf
(
fp
,
"%s:"
,
user
);
for
(
i
=
0
;
i
<
sizeof
(
digest
);
i
++
)
...
...
innobase/que/que0que.c
View file @
30209c1d
myisam/ft_boolean_search.c
View file @
30209c1d
...
...
@@ -163,13 +163,14 @@ void _ftb_init_index_search(FT_INFO *ftb)
{
ftbw
=
(
FTB_WORD
*
)(
ftb
->
queue
.
root
[
i
]);
r
=
_mi_search
(
info
,
keyinfo
,
ftbw
->
word
,
ftbw
->
len
,
r
=
_mi_search
(
info
,
keyinfo
,
(
uchar
*
)
ftbw
->
word
,
ftbw
->
len
,
SEARCH_FIND
|
SEARCH_PREFIX
,
keyroot
);
if
(
!
r
)
{
r
=
_mi_compare_text
(
default_charset_info
,
info
->
lastkey
+
ftbw
->
trunc
,
ftbw
->
len
-
ftbw
->
trunc
,
ftbw
->
word
+
ftbw
->
trunc
,
ftbw
->
len
-
ftbw
->
trunc
,
0
);
(
uchar
*
)
ftbw
->
word
+
ftbw
->
trunc
,
ftbw
->
len
-
ftbw
->
trunc
,
0
);
}
if
(
r
)
/* not found */
{
...
...
@@ -306,13 +307,14 @@ int ft_boolean_read_next(FT_INFO *ftb, char *record)
_ftb_climb_the_tree
(
ftbw
,
curdoc
);
/* update queue */
r
=
_mi_search
(
info
,
keyinfo
,
ftbw
->
word
,
USE_WHOLE_KEY
,
r
=
_mi_search
(
info
,
keyinfo
,
(
uchar
*
)
ftbw
->
word
,
USE_WHOLE_KEY
,
SEARCH_BIGGER
,
keyroot
);
if
(
!
r
)
{
r
=
_mi_compare_text
(
default_charset_info
,
info
->
lastkey
+
ftbw
->
trunc
,
ftbw
->
len
-
ftbw
->
trunc
,
ftbw
->
word
+
ftbw
->
trunc
,
ftbw
->
len
-
ftbw
->
trunc
,
0
);
(
uchar
*
)
ftbw
->
word
+
ftbw
->
trunc
,
ftbw
->
len
-
ftbw
->
trunc
,
0
);
}
if
(
r
)
/* not found */
{
...
...
myisam/sort.c
View file @
30209c1d
...
...
@@ -187,10 +187,13 @@ int _create_index_by_sort(MI_SORT_PARAM *info,my_bool no_messages,
reinit_io_cache
(
&
tempfile_for_exceptions
,
READ_CACHE
,
0L
,
0
,
0
))
goto
err
;
while
(
!
my_b_read
(
&
tempfile_for_exceptions
,(
byte
*
)
&
key_length
,
sizeof
(
key_length
))
&&
!
my_b_read
(
&
tempfile_for_exceptions
,(
byte
*
)
sort_keys
,(
uint
)
key_length
))
while
(
!
my_b_read
(
&
tempfile_for_exceptions
,(
byte
*
)
&
key_length
,
sizeof
(
key_length
))
&&
!
my_b_read
(
&
tempfile_for_exceptions
,(
byte
*
)
sort_keys
,
(
uint
)
key_length
))
{
if
(
_mi_ck_write
(
index
,
keyno
,(
byte
*
)
sort_keys
,
key_length
-
ref_length
))
goto
err
;
if
(
_mi_ck_write
(
index
,
keyno
,(
uchar
*
)
sort_keys
,
key_length
-
ref_length
))
goto
err
;
}
}
...
...
@@ -219,7 +222,7 @@ static ha_rows NEAR_F find_all_keys(MI_SORT_PARAM *info, uint keys,
DBUG_ENTER
(
"find_all_keys"
);
idx
=
error
=
0
;
sort_keys
[
0
]
=
(
char
*
)
(
sort_keys
+
keys
);
sort_keys
[
0
]
=
(
uchar
*
)
(
sort_keys
+
keys
);
while
(
!
(
error
=
(
*
info
->
key_read
)(
info
->
sort_info
,
sort_keys
[
idx
])))
{
...
...
@@ -232,10 +235,11 @@ static ha_rows NEAR_F find_all_keys(MI_SORT_PARAM *info, uint keys,
if
(
++
idx
==
keys
)
{
if
(
write_keys
(
info
,
sort_keys
,
idx
-
1
,(
BUFFPEK
*
)
alloc_dynamic
(
buffpek
),
tempfile
))
if
(
write_keys
(
info
,
sort_keys
,
idx
-
1
,(
BUFFPEK
*
)
alloc_dynamic
(
buffpek
),
tempfile
))
DBUG_RETURN
(
HA_POS_ERROR
);
/* purecov: inspected */
sort_keys
[
0
]
=
(
char
*
)
(
sort_keys
+
keys
);
sort_keys
[
0
]
=
(
uchar
*
)
(
sort_keys
+
keys
);
memcpy
(
sort_keys
[
0
],
sort_keys
[
idx
-
1
],(
size_t
)
info
->
key_length
);
idx
=
1
;
}
...
...
mysys/queues.c
View file @
30209c1d
...
...
@@ -170,8 +170,8 @@ void _downheap(register QUEUE *queue, uint idx)
static
int
queue_fix_cmp
(
QUEUE
*
queue
,
void
*
a
,
void
*
b
)
{
return
queue
->
compare
(
queue
->
first_cmp_arg
,
a
+
queue
->
offset_to_key
,
b
+
queue
->
offset_to_key
);
(
char
*
)
a
+
queue
->
offset_to_key
,
(
char
*
)
b
+
queue
->
offset_to_key
);
}
/* Fix heap when every element was changed */
...
...
strings/ctype-latin1_de.c
View file @
30209c1d
...
...
@@ -278,13 +278,14 @@ int my_strnxfrm_latin1_de(uchar * dest, const uchar * src, int len, int srclen)
int
my_strcoll_latin1_de
(
const
uchar
*
s1
,
const
uchar
*
s2
)
{
/* XXX QQ: This should be fixed to not call strlen */
return
my_strnncoll_latin1_de
(
s1
,
strlen
(
s1
),
s2
,
strlen
(
s2
));
return
my_strnncoll_latin1_de
(
s1
,
strlen
((
char
*
)
s1
),
s2
,
strlen
((
char
*
)
s2
));
}
int
my_strxfrm_latin1_de
(
uchar
*
dest
,
const
uchar
*
src
,
int
len
)
{
/* XXX QQ: This should be fixed to not call strlen */
return
my_strnxfrm_latin1_de
(
dest
,
src
,
len
,
strlen
(
src
));
return
my_strnxfrm_latin1_de
(
dest
,
src
,
len
,
strlen
(
(
char
*
)
src
));
}
/*
...
...
tools/mysqlmanager.c
View file @
30209c1d
...
...
@@ -978,7 +978,7 @@ static int authenticate(struct manager_thd* thd)
for
(;
isspace
(
*
buf
)
&&
buf
<
buf_end
;
buf
++
)
/* empty */
;
my_MD5Init
(
&
context
);
my_MD5Update
(
&
context
,
buf
,(
uint
)(
buf_end
-
buf
));
my_MD5Update
(
&
context
,
(
uchar
*
)
buf
,(
uint
)(
buf_end
-
buf
));
my_MD5Final
(
digest
,
&
context
);
if
(
memcmp
(
u
->
md5_pass
,
digest
,
MD5_LEN
))
return
1
;
...
...
@@ -1218,7 +1218,7 @@ struct manager_thd* manager_thd_new(Vio* vio)
tmp
->
user
[
0
]
=
0
;
tmp
->
priv_flags
=
0
;
tmp
->
fatal
=
tmp
->
finished
=
0
;
tmp
->
cmd_buf
=
tmp
->
net
.
read_pos
;
tmp
->
cmd_buf
=
(
char
*
)
tmp
->
net
.
read_pos
;
return
tmp
;
}
...
...
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