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
9e451f51
Commit
9e451f51
authored
Jun 26, 2007
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge maint1.mysql.com:/data/localhome/tsmith/bk/41
into maint1.mysql.com:/data/localhome/tsmith/bk/maint/41
parents
7d8a30f5
4c39d68c
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
45 additions
and
6 deletions
+45
-6
cmd-line-utils/libedit/el_term.h
cmd-line-utils/libedit/el_term.h
+10
-0
configure.in
configure.in
+13
-0
include/my_global.h
include/my_global.h
+6
-1
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+7
-4
mysql-test/r/mysqltest.result
mysql-test/r/mysqltest.result
+1
-0
mysql-test/t/mysqltest.test
mysql-test/t/mysqltest.test
+4
-0
sql/sql_parse.cc
sql/sql_parse.cc
+4
-1
No files found.
cmd-line-utils/libedit/el_term.h
View file @
9e451f51
...
...
@@ -90,6 +90,16 @@ extern char* tgoto(const char*, int, int);
extern
char
*
tgetstr
(
char
*
,
char
**
);
#endif
#if !HAVE_DECL_TGOTO
/*
'tgoto' is not declared in the system header files, this causes
problems on 64-bit systems. The function returns a 64 bit pointer
but caller see it as "int" and it's thus truncated to 32-bit
*/
extern
char
*
tgoto
(
const
char
*
,
int
,
int
);
#endif
protected
void
term_move_to_line
(
EditLine
*
,
int
);
protected
void
term_move_to_char
(
EditLine
*
,
int
);
protected
void
term_clear_EOL
(
EditLine
*
,
int
);
...
...
configure.in
View file @
9e451f51
...
...
@@ -1960,6 +1960,19 @@ else
fi
AC_SUBST
(
TERMCAP_LIB
)
# Check if the termcap function 'tgoto' is already declared in
# system header files or if it need to be declared locally
AC_CHECK_DECLS
(
tgoto,,,[
#ifdef HAVE_CURSES_H
# include <curses.h>
#elif HAVE_NCURSES_H
# include <ncurses.h>
#endif
#ifdef HAVE_TERM_H
# include <term.h>
#endif
])
LIBEDIT_LOBJECTS
=
""
AC_CHECK_FUNC
(
strunvis, ,[LIBEDIT_LOBJECTS
=
"
$LIBEDIT_LOBJECTS
unvis.o"
])
AC_CHECK_FUNC
(
strvis, ,[LIBEDIT_LOBJECTS
=
"
$LIBEDIT_LOBJECTS
vis.o"
])
...
...
include/my_global.h
View file @
9e451f51
...
...
@@ -828,7 +828,12 @@ error "Neither int or long is of 4 bytes width"
typedef
unsigned
long
ulong
;
/* Short for unsigned long */
#endif
#ifndef longlong_defined
#if defined(HAVE_LONG_LONG) && SIZEOF_LONG != 8
/*
Using [unsigned] long long is preferable as [u]longlong because we use
[unsigned] long long unconditionally in many places,
for example in constants with [U]LL suffix.
*/
#if defined(HAVE_LONG_LONG) && SIZEOF_LONG_LONG == 8
typedef
unsigned
long
long
int
ulonglong
;
/* ulong or unsigned long long */
typedef
long
long
int
longlong
;
#else
...
...
mysql-test/mysql-test-run.pl
View file @
9e451f51
...
...
@@ -3106,9 +3106,12 @@ sub find_testcase_skipped_reason($)
{
my
(
$tinfo
)
=
@_
;
# Set default message
$tinfo
->
{'
comment
'}
=
"
Detected by testcase(no log file)
";
# Open mysqltest.log
my
$F
=
IO::
File
->
new
(
$path_timefile
)
or
mtr_error
("
can't open file
\"
$path_timefile
\"
: $!
")
;
my
$F
=
IO::
File
->
new
(
$path_timefile
)
or
return
;
my
$reason
;
while
(
my
$line
=
<
$F
>
)
...
...
@@ -3161,8 +3164,8 @@ sub analyze_testcase_failure($)
my
(
$tinfo
)
=
@_
;
# Open mysqltest.log
my
$F
=
IO::
File
->
new
(
$path_timefile
)
or
mtr_error
("
can't open file
\"
$path_timefile
\"
: $!
")
;
my
$F
=
IO::
File
->
new
(
$path_timefile
)
or
return
;
while
(
my
$line
=
<
$F
>
)
{
...
...
mysql-test/r/mysqltest.result
View file @
9e451f51
...
...
@@ -330,6 +330,7 @@ here is the sourced script
In loop
here is the sourced script
here is the sourced script
mysqltest: At line 1: Missing argument to sleep
mysqltest: At line 1: Missing argument to real_sleep
mysqltest: At line 1: Invalid argument to sleep "abc"
...
...
mysql-test/t/mysqltest.test
View file @
9e451f51
...
...
@@ -807,6 +807,10 @@ while ($num)
}
--
enable_abort_on_error
--
enable_query_log
# Test source $variable/<filename>
--
source
$MYSQLTEST_VARDIR
/
tmp
/
sourced
.
inc
--
remove_file
$MYSQLTEST_VARDIR
/
tmp
/
sourced
.
inc
# ----------------------------------------------------------------------------
...
...
sql/sql_parse.cc
View file @
9e451f51
...
...
@@ -1445,11 +1445,14 @@ bool dispatch_command(enum enum_server_command command, THD *thd,
Old clients send null-terminated string ('\0' for empty string) for
password. New clients send the size (1 byte) + string (not null
terminated, so also '\0' for empty string).
Cast *passwd to an unsigned char, so that it doesn't extend the sign
for *passwd > 127 and become 2**32-127 after casting to uint.
*/
char
db_buff
[
NAME_LEN
+
1
];
// buffer to store db in utf8
char
*
db
=
passwd
;
uint
passwd_len
=
thd
->
client_capabilities
&
CLIENT_SECURE_CONNECTION
?
*
passwd
++
:
strlen
(
passwd
);
(
uchar
)(
*
passwd
++
)
:
strlen
(
passwd
);
db
+=
passwd_len
+
1
;
#ifndef EMBEDDED_LIBRARY
/* Small check for incomming packet */
...
...
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