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
81930fc4
Commit
81930fc4
authored
Jun 01, 2007
by
joerg@debian.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge jbruehe@bk-internal.mysql.com:/home/bk/mysql-5.1
into debian.(none):/M51/merge-5.1
parents
2c8f4f97
509faa5a
Changes
28
Hide whitespace changes
Inline
Side-by-side
Showing
28 changed files
with
68 additions
and
66 deletions
+68
-66
BUILD/check-cpu
BUILD/check-cpu
+6
-0
CMakeLists.txt
CMakeLists.txt
+1
-1
config/ac-macros/compiler_flag.m4
config/ac-macros/compiler_flag.m4
+1
-1
config/ac-macros/misc.m4
config/ac-macros/misc.m4
+3
-24
configure.in
configure.in
+13
-13
include/config-netware.h
include/config-netware.h
+0
-3
include/config-win.h
include/config-win.h
+0
-2
mysql-test/include/federated.inc
mysql-test/include/federated.inc
+1
-0
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+1
-2
mysql-test/r/date_formats.result
mysql-test/r/date_formats.result
+3
-6
mysql-test/r/have_log_bin.require
mysql-test/r/have_log_bin.require
+1
-1
mysql-test/t/date_formats.test
mysql-test/t/date_formats.test
+3
-6
mysql-test/t/flush_block_commit_notembedded.test
mysql-test/t/flush_block_commit_notembedded.test
+2
-0
mysql-test/t/mysqlbinlog.test
mysql-test/t/mysqlbinlog.test
+2
-0
mysql-test/t/mysqldump.test
mysql-test/t/mysqldump.test
+3
-0
mysql-test/t/mysqltest.test
mysql-test/t/mysqltest.test
+2
-0
mysql-test/t/ps.test
mysql-test/t/ps.test
+1
-0
mysql-test/t/sp_trans.test
mysql-test/t/sp_trans.test
+1
-0
mysql-test/t/user_var-binlog.test
mysql-test/t/user_var-binlog.test
+1
-0
plugin/daemon_example/Makefile.am
plugin/daemon_example/Makefile.am
+3
-0
plugin/fulltext/Makefile.am
plugin/fulltext/Makefile.am
+3
-0
sql/Makefile.am
sql/Makefile.am
+2
-1
sql/sql_parse.cc
sql/sql_parse.cc
+3
-6
unittest/Makefile.am
unittest/Makefile.am
+3
-0
unittest/examples/Makefile.am
unittest/examples/Makefile.am
+2
-0
unittest/mysys/Makefile.am
unittest/mysys/Makefile.am
+2
-0
unittest/mytap/Makefile.am
unittest/mytap/Makefile.am
+3
-0
unittest/mytap/t/Makefile.am
unittest/mytap/t/Makefile.am
+2
-0
No files found.
BUILD/check-cpu
View file @
81930fc4
...
...
@@ -105,6 +105,12 @@ check_cpu () {
*
Athlon
*
64
*
)
cpu_arg
=
"athlon64"
;
;;
*
Turion
*
)
cpu_arg
=
"athlon64"
;
;;
*
Opteron
*
)
cpu_arg
=
"athlon64"
;
;;
*
Athlon
*
)
cpu_arg
=
"athlon"
;
;;
...
...
CMakeLists.txt
View file @
81930fc4
...
...
@@ -157,7 +157,7 @@ IF(EMBED_MANIFESTS)
STRING
(
REGEX MATCH
"MANIFEST:NO"
tmp_manifest
${
CMAKE_EXE_LINKER_FLAGS
}
)
IF
(
NOT tmp_manifest
)
SET
(
CMAKE_EXE_LINKER_FLAGS
"
${
CMAKE_EXE_LINKER_FLAGS
}
/MANIFEST:NO"
)
ENDIF
(
tmp_manifest
)
ENDIF
(
NOT
tmp_manifest
)
# Set the processor architecture.
IF
(
CMAKE_GENERATOR MATCHES
"Visual Studio 8 2005 Win64"
)
SET
(
PROCESSOR_ARCH
"X64"
)
...
...
config/ac-macros/compiler_flag.m4
View file @
81930fc4
...
...
@@ -7,7 +7,7 @@ AC_DEFUN([AC_SYS_COMPILER_FLAG],
AC_CACHE_VAL(mysql_cv_option_$2,
[
CFLAGS="[$]OLD_CFLAGS $1"
AC_TRY_
RUN
([int main(){exit(0);}],mysql_cv_option_$2=yes,mysql_cv_option_$2=no,mysql_cv_option_$2=no)
AC_TRY_
LINK
([int main(){exit(0);}],mysql_cv_option_$2=yes,mysql_cv_option_$2=no,mysql_cv_option_$2=no)
])
CFLAGS="[$]OLD_CFLAGS"
...
...
config/ac-macros/misc.m4
View file @
81930fc4
...
...
@@ -450,29 +450,6 @@ AC_DEFINE([HAVE_BOOL], [1], [bool is not defined by all C++ compilators])
fi
])dnl
AC_DEFUN([MYSQL_STACK_DIRECTION],
[AC_CACHE_CHECK(stack direction for C alloca, ac_cv_c_stack_direction,
[AC_TRY_RUN([#include <stdlib.h>
int find_stack_direction ()
{
static char *addr = 0;
auto char dummy;
if (addr == 0)
{
addr = &dummy;
return find_stack_direction ();
}
else
return (&dummy > addr) ? 1 : -1;
}
int main ()
{
exit (find_stack_direction() < 0);
}], ac_cv_c_stack_direction=1, ac_cv_c_stack_direction=-1,
ac_cv_c_stack_direction=0)])
AC_DEFINE_UNQUOTED(STACK_DIRECTION, $ac_cv_c_stack_direction)
])dnl
AC_DEFUN([MYSQL_CHECK_LONGLONG_TO_FLOAT],
[
AC_MSG_CHECKING(if conversion of longlong to float works)
...
...
@@ -488,7 +465,9 @@ int main()
fprintf(file,"%g\n",f);
fclose(file);
return (0);
}], ac_cv_conv_longlong_to_float=`cat conftestval`, ac_cv_conv_longlong_to_float=0, ifelse([$2], , , ac_cv_conv_longlong_to_float=$2))])dnl
}], ac_cv_conv_longlong_to_float=`cat conftestval`,
ac_cv_conv_longlong_to_float=0,
ac_cv_conv_longlong_to_float="yes")])dnl # Cross compiling, assume can convert
if test "$ac_cv_conv_longlong_to_float" = "1" -o "$ac_cv_conv_longlong_to_float" = "yes"
then
ac_cv_conv_longlong_to_float=yes
...
...
configure.in
View file @
81930fc4
...
...
@@ -230,14 +230,8 @@ AC_CHECK_PROGS(YACC, ['bison -y -p MYSQL'])
AC_CHECK_PROG
(
PDFMANUAL, pdftex, manual.pdf
)
AC_CHECK_PROG
(
DVIS, tex, manual.dvi
)
AC_MSG_CHECKING
(
"return type of sprintf"
)
#check the return type of sprintf
case
$SYSTEM_TYPE
in
*
netware
*
)
AC_DEFINE
(
SPRINTF_RETURNS_INT,
[
1]
)
AC_MSG_RESULT
(
"int"
)
;;
*
)
AC_MSG_CHECKING
(
"return type of sprintf"
)
AC_TRY_RUN
([
int main
()
{
...
...
@@ -263,10 +257,12 @@ AC_TRY_RUN([
[
AC_DEFINE
(
SPRINTF_RETURNS_PTR,
[
1],
[
Broken sprintf]
)
AC_MSG_RESULT
(
"ptr"
)]
,
[
AC_DEFINE
(
SPRINTF_RETURNS_GARBAGE,
[
1],
[
Broken sprintf]
)
AC_MSG_RESULT
(
"garbage"
)])
])
;;
esac
AC_MSG_RESULT
(
"garbage"
)]
)]
,
# Cross compile, assume POSIX
[
AC_DEFINE
(
SPRINTF_RETURNS_INT,
[
1],
[
POSIX sprintf]
)
AC_MSG_RESULT
(
"int (we assume)"
)]
)
AC_PATH_PROG
(
uname_prog,
uname
, no
)
...
...
@@ -1667,6 +1663,12 @@ AC_ARG_WITH(client-ldflags,
[CLIENT_EXTRA_LDFLAGS=])
AC_SUBST(CLIENT_EXTRA_LDFLAGS)
AC_ARG_WITH(mysqld-libs,
[ --with-mysqld-libs Extra libraries to link with for mysqld],
[MYSQLD_EXTRA_LIBS=$withval],
[MYSQLD_EXTRA_LIBS=])
AC_SUBST(MYSQLD_EXTRA_LIBS)
AC_ARG_WITH(lib-ccflags,
[ --with-lib-ccflags Extra CC options for libraries],
[LIB_EXTRA_CCFLAGS=$withval],
...
...
@@ -1784,8 +1786,6 @@ MYSQL_TYPE_ACCEPT
#---END:
# Figure out what type of struct rlimit to use with setrlimit
MYSQL_TYPE_STRUCT_RLIMIT
# Find where the stack goes
MYSQL_STACK_DIRECTION
# We want to skip alloca on irix unconditionally. It may work on some version..
MYSQL_FUNC_ALLOCA
# Do struct timespec have members tv_sec or ts_sec
...
...
include/config-netware.h
View file @
81930fc4
...
...
@@ -112,9 +112,6 @@ extern "C" {
/* signal by closing the sockets */
#define SIGNAL_WITH_VIO_CLOSE 1
/* On NetWare, stack grows towards lower address*/
#define STACK_DIRECTION -1
/* On NetWare, we need to set stack size for threads, otherwise default 16K is used */
#define NW_THD_STACKSIZE 65536
...
...
include/config-win.h
View file @
81930fc4
...
...
@@ -250,8 +250,6 @@ inline double ulonglong2double(ulonglong value)
#endif
#define STACK_DIRECTION -1
/* Optimized store functions for Intel x86 */
#ifndef _WIN64
...
...
mysql-test/include/federated.inc
View file @
81930fc4
--
source
include
/
have_log_bin
.
inc
--
source
include
/
not_embedded
.
inc
--
source
./
include
/
have_federated_db
.
inc
...
...
mysql-test/mysql-test-run.pl
View file @
81930fc4
...
...
@@ -3770,8 +3770,7 @@ sub mysqld_arguments ($$$$) {
"
%s--log-slow-queries=%s-slow.log
",
$prefix
,
$log_base_path
);
# Check if "extra_opt" contains --skip-log-bin
my
$skip_binlog
=
grep
(
/^--skip-log-bin/
,
@$extra_opt
);
my
$skip_binlog
=
grep
(
/^--skip-log-bin/
,
@$extra_opt
,
@opt_extra_mysqld_opt
);
if
(
$mysqld
->
{'
type
'}
eq
'
master
'
)
{
if
(
!
(
$opt_skip_master_binlog
||
$skip_binlog
)
)
...
...
mysql-test/r/date_formats.result
View file @
81930fc4
drop table if exists t1;
SHOW GLOBAL VARIABLES
LIKE "%_format%
";
SHOW GLOBAL VARIABLES
WHERE Variable_name LIKE "%_format%" AND Variable_name != "binlog_format
";
Variable_name Value
binlog_format <format>
date_format %d.%m.%Y
datetime_format %Y-%m-%d %H:%i:%s
default_week_format 0
time_format %H.%i.%s
SHOW SESSION VARIABLES
LIKE "%_format%
";
SHOW SESSION VARIABLES
WHERE Variable_name LIKE "%_format%" AND Variable_name != "binlog_format
";
Variable_name Value
binlog_format <format>
date_format %d.%m.%Y
datetime_format %Y-%m-%d %H:%i:%s
default_week_format 0
...
...
@@ -30,9 +28,8 @@ set datetime_format= '%H:%i:%s %Y-%m-%d';
set datetime_format= '%H:%i:%s.%f %m-%d-%Y';
set datetime_format= '%h:%i:%s %p %Y-%m-%d';
set datetime_format= '%h:%i:%s.%f %p %Y-%m-%d';
SHOW SESSION VARIABLES
LIKE "%
format";
SHOW SESSION VARIABLES
WHERE Variable_name LIKE "%format" AND Variable_name != "binlog_
format";
Variable_name Value
binlog_format <format>
date_format %m-%d-%Y
datetime_format %h:%i:%s.%f %p %Y-%m-%d
default_week_format 0
...
...
mysql-test/r/have_log_bin.require
View file @
81930fc4
Variable_name Value
have_
log_bin ON
log_bin ON
mysql-test/t/date_formats.test
View file @
81930fc4
...
...
@@ -6,10 +6,8 @@
drop
table
if
exists
t1
;
--
enable_warnings
--
replace_result
ROW
<
format
>
STATEMENT
<
format
>
MIXED
<
format
>
SHOW
GLOBAL
VARIABLES
LIKE
"%_format%"
;
--
replace_result
ROW
<
format
>
STATEMENT
<
format
>
MIXED
<
format
>
SHOW
SESSION
VARIABLES
LIKE
"%_format%"
;
SHOW
GLOBAL
VARIABLES
WHERE
Variable_name
LIKE
"%_format%"
AND
Variable_name
!=
"binlog_format"
;
SHOW
SESSION
VARIABLES
WHERE
Variable_name
LIKE
"%_format%"
AND
Variable_name
!=
"binlog_format"
;
#
# Test setting a lot of different formats to see which formats are accepted and
...
...
@@ -36,8 +34,7 @@ set datetime_format= '%H:%i:%s.%f %m-%d-%Y';
set
datetime_format
=
'%h:%i:%s %p %Y-%m-%d'
;
set
datetime_format
=
'%h:%i:%s.%f %p %Y-%m-%d'
;
--
replace_result
ROW
<
format
>
STATEMENT
<
format
>
MIXED
<
format
>
SHOW
SESSION
VARIABLES
LIKE
"%format"
;
SHOW
SESSION
VARIABLES
WHERE
Variable_name
LIKE
"%format"
AND
Variable_name
!=
"binlog_format"
;
--
error
1231
SET
time_format
=
'%h:%i:%s'
;
...
...
mysql-test/t/flush_block_commit_notembedded.test
View file @
81930fc4
...
...
@@ -3,6 +3,8 @@
# We verify that we did not introduce a deadlock.
# This is intended to mimick how mysqldump and innobackup work.
--
source
include
/
have_log_bin
.
inc
# And it requires InnoDB
--
source
include
/
not_embedded
.
inc
--
source
include
/
have_innodb
.
inc
...
...
mysql-test/t/mysqlbinlog.test
View file @
81930fc4
...
...
@@ -2,6 +2,8 @@
# TODO: Need to look at making a row based version once the new row based client is completed. [jbm]
--
source
include
/
have_binlog_format_mixed_or_statement
.
inc
--
source
include
/
have_log_bin
.
inc
# Embedded server doesn't support binlogging
--
source
include
/
not_embedded
.
inc
...
...
mysql-test/t/mysqldump.test
View file @
81930fc4
# Embedded server doesn't support external clients
--
source
include
/
not_embedded
.
inc
# Binlog is required
--
source
include
/
have_log_bin
.
inc
--
disable_warnings
DROP
TABLE
IF
EXISTS
t1
,
`"t"1`
,
t1aa
,
t2
,
t2aa
,
t3
;
drop
database
if
exists
mysqldump_test_db
;
...
...
mysql-test/t/mysqltest.test
View file @
81930fc4
--
source
include
/
have_log_bin
.
inc
# This test should work in embedded server after mysqltest is fixed
--
source
include
/
not_embedded
.
inc
...
...
mysql-test/t/ps.test
View file @
81930fc4
--
source
include
/
not_embedded
.
inc
--
source
include
/
have_log_bin
.
inc
#
# SQL Syntax for Prepared Statements test
#
...
...
mysql-test/t/sp_trans.test
View file @
81930fc4
...
...
@@ -2,6 +2,7 @@
# tests that require InnoDB...
#
--
source
include
/
have_log_bin
.
inc
--
source
include
/
have_innodb
.
inc
--
disable_warnings
...
...
mysql-test/t/user_var-binlog.test
View file @
81930fc4
...
...
@@ -3,6 +3,7 @@
# TODO: Create row based version once $MYSQL_BINLOG has new RB version
# Embedded server does not support binlogging
--
source
include
/
not_embedded
.
inc
--
source
include
/
have_log_bin
.
inc
# Check that user variables are binlogged correctly (BUG#3875)
create
table
t1
(
a
varchar
(
50
));
...
...
plugin/daemon_example/Makefile.am
View file @
81930fc4
...
...
@@ -36,3 +36,6 @@ noinst_LIBRARIES = @plugin_daemon_example_static_target@
libdaemon_example_a_CXXFLAGS
=
$(AM_CFLAGS)
libdaemon_example_a_CFLAGS
=
$(AM_CFLAGS)
libdaemon_example_a_SOURCES
=
daemon_example.cc
# Don't update the files from bitkeeper
%
::
SCCS/s.%
plugin/fulltext/Makefile.am
View file @
81930fc4
...
...
@@ -22,3 +22,6 @@ pkglib_LTLIBRARIES= mypluglib.la
mypluglib_la_SOURCES
=
plugin_example.c
mypluglib_la_LDFLAGS
=
-module
-rpath
$(pkglibdir)
mypluglib_la_CFLAGS
=
-DMYSQL_DYNAMIC_PLUGIN
# Don't update the files from bitkeeper
%
::
SCCS/s.%
sql/Makefile.am
View file @
81930fc4
...
...
@@ -38,7 +38,8 @@ mysqld_LDADD = @MYSQLD_EXTRA_LDFLAGS@ \
@pstack_libs@
\
@mysql_plugin_libs@
\
$(LDADD)
$(CXXLDFLAGS)
$(WRAPLIBS)
@LIBDL@
\
$(yassl_libs)
$(openssl_libs)
$(yassl_libs)
$(openssl_libs)
\
@MYSQLD_EXTRA_LIBS@
noinst_HEADERS
=
item.h item_func.h item_sum.h item_cmpfunc.h
\
item_strfunc.h item_timefunc.h
\
...
...
sql/sql_parse.cc
View file @
81930fc4
...
...
@@ -4997,17 +4997,14 @@ bool check_merge_table_access(THD *thd, char *db,
Check stack size; Send error if there isn't enough stack to continue
****************************************************************************/
#if STACK_DIRECTION < 0
#define used_stack(A,B) (long) (A - B)
#else
#define used_stack(A,B) (long) (B - A)
#endif
#ifndef EMBEDDED_LIBRARY
#define used_stack(A,B) (long)(A > B ? A - B : B - A)
#ifndef DBUG_OFF
long
max_stack_used
;
#endif
#ifndef EMBEDDED_LIBRARY
/*
Note: The 'buf' parameter is necessary, even if it is unused here.
- fix_fields functions has a "dummy" buffer large enough for the
...
...
unittest/Makefile.am
View file @
81930fc4
...
...
@@ -25,3 +25,6 @@ test:
test-verbose
:
HARNESS_VERBOSE
=
1 perl unit.pl run
$(unittests)
# Don't update the files from bitkeeper
%
::
SCCS/s.%
unittest/examples/Makefile.am
View file @
81930fc4
...
...
@@ -22,3 +22,5 @@ LDADD = -lmytap
noinst_PROGRAMS
=
simple-t skip-t todo-t skip_all-t no_plan-t core-t
# Don't update the files from bitkeeper
%
::
SCCS/s.%
unittest/mysys/Makefile.am
View file @
81930fc4
...
...
@@ -23,3 +23,5 @@ LDADD = $(top_builddir)/unittest/mytap/libmytap.a \
noinst_PROGRAMS
=
bitmap-t base64-t my_atomic-t
# Don't update the files from bitkeeper
%
::
SCCS/s.%
unittest/mytap/Makefile.am
View file @
81930fc4
...
...
@@ -21,3 +21,6 @@ noinst_HEADERS = tap.h
libmytap_a_SOURCES
=
tap.c
SUBDIRS
=
.
t
# Don't update the files from bitkeeper
%
::
SCCS/s.%
unittest/mytap/t/Makefile.am
View file @
81930fc4
...
...
@@ -21,3 +21,5 @@ LDADD = -lmytap
noinst_PROGRAMS
=
basic-t
# Don't update the files from bitkeeper
%
::
SCCS/s.%
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