Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
MariaDB and MySQL Packaging Team
mariadb-5.5
Commits
3d30668e
Commit
3d30668e
authored
Mar 02, 2014
by
Otto Kekäläinen
Browse files
Imported upstream 5.5.36
parent
cdd04139
Changes
1000
Hide whitespace changes
Inline
Side-by-side
Too many changes to show.
To preserve performance only
20 of 1000+
files are displayed.
Plain diff
Email patch
include/my_global.h
View file @
3d30668e
...
@@ -1514,11 +1514,4 @@ static inline double rint(double x)
...
@@ -1514,11 +1514,4 @@ static inline double rint(double x)
#endif
/* EMBEDDED_LIBRARY */
#endif
/* EMBEDDED_LIBRARY */
/*
Define default tmpdir if not already set.
*/
#if !defined(DEFAULT_TMPDIR)
#define DEFAULT_TMPDIR P_tmpdir
#endif
#endif
/* my_global_h */
#endif
/* my_global_h */
include/my_net.h
View file @
3d30668e
/* Copyright (c) 2000, 201
1
, Oracle and/or its affiliates. All rights reserved.
/* Copyright (c) 2000, 201
0
, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU General Public License as published by
...
...
include/my_pthread.h
View file @
3d30668e
/* Copyright (
C
) 2000
-2008 MySQL AB, 2008-2009 Sun Microsystems, Inc,
/* Copyright (
c
) 2000
, 2013, Oracle and/or its affiliates.
2010-2011 Oracle and/or its affiliates,
2009
-
201
0
Monty Program Ab.
Copyright (c)
2009
,
201
3,
Monty Program Ab.
This program is free software; you can redistribute it and/or modify
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU General Public License as published by
...
@@ -96,7 +96,7 @@ int pthread_create(pthread_t *, const pthread_attr_t *, pthread_handler, void *)
...
@@ -96,7 +96,7 @@ int pthread_create(pthread_t *, const pthread_attr_t *, pthread_handler, void *)
int
pthread_cond_init
(
pthread_cond_t
*
cond
,
const
pthread_condattr_t
*
attr
);
int
pthread_cond_init
(
pthread_cond_t
*
cond
,
const
pthread_condattr_t
*
attr
);
int
pthread_cond_wait
(
pthread_cond_t
*
cond
,
pthread_mutex_t
*
mutex
);
int
pthread_cond_wait
(
pthread_cond_t
*
cond
,
pthread_mutex_t
*
mutex
);
int
pthread_cond_timedwait
(
pthread_cond_t
*
cond
,
pthread_mutex_t
*
mutex
,
int
pthread_cond_timedwait
(
pthread_cond_t
*
cond
,
pthread_mutex_t
*
mutex
,
struct
timespec
*
abstime
);
const
struct
timespec
*
abstime
);
int
pthread_cond_signal
(
pthread_cond_t
*
cond
);
int
pthread_cond_signal
(
pthread_cond_t
*
cond
);
int
pthread_cond_broadcast
(
pthread_cond_t
*
cond
);
int
pthread_cond_broadcast
(
pthread_cond_t
*
cond
);
int
pthread_cond_destroy
(
pthread_cond_t
*
cond
);
int
pthread_cond_destroy
(
pthread_cond_t
*
cond
);
...
...
include/my_valgrind.h
View file @
3d30668e
...
@@ -13,10 +13,6 @@
...
@@ -13,10 +13,6 @@
along with this program; if not, write to the Free Software
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
/* Some defines to make it easier to use valgrind */
#include
<m_string.h>
/* bfill */
#ifdef HAVE_valgrind
#ifdef HAVE_valgrind
#define IF_VALGRIND(A,B) A
#define IF_VALGRIND(A,B) A
#else
#else
...
@@ -37,7 +33,7 @@
...
@@ -37,7 +33,7 @@
#endif
/* HAVE_VALGRIND */
#endif
/* HAVE_VALGRIND */
#ifndef DBUG_OFF
#ifndef DBUG_OFF
#define TRASH_FILL(A,B,C) do {
bfill
(A,
B
,
C
); MEM_UNDEFINED(A, B); } while (0)
#define TRASH_FILL(A,B,C) do {
memset
(A,
C
,
B
); MEM_UNDEFINED(A, B); } while (0)
#else
#else
#define TRASH_FILL(A,B,C) do{ MEM_CHECK_ADDRESSABLE(A,B);MEM_UNDEFINED(A,B);} while (0)
#define TRASH_FILL(A,B,C) do{ MEM_CHECK_ADDRESSABLE(A,B);MEM_UNDEFINED(A,B);} while (0)
#endif
#endif
...
...
include/myisam.h
View file @
3d30668e
/*
/*
Copyright (c) 2000, 201
2
, Oracle and/or its affiliates.
Copyright (c) 2000, 201
3
, Oracle and/or its affiliates.
This program is free software; you can redistribute it and/or modify
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU General Public License as published by
...
...
include/mysql/plugin.h
View file @
3d30668e
/* Copyright (c) 2005, 201
1
, Oracle and/or its affiliates
/* Copyright (c) 2005, 201
3
, Oracle and/or its affiliates
Copyright (C) 2009, 201
1
, Monty Program Ab
Copyright (C) 2009, 201
3
, Monty Program Ab
This program is free software; you can redistribute it and/or modify
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU General Public License as published by
...
...
include/mysql/plugin_audit.h
View file @
3d30668e
/* Copyright (c) 2007, 201
1
, Oracle and/or its affiliates. All rights reserved.
/* Copyright (c) 2007, 201
3
, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
modify it under the terms of the GNU General Public License
...
...
include/mysql/psi/mysql_thread.h
View file @
3d30668e
/* Copyright (c) 2008, 201
0
, Oracle and/or its affiliates. All rights reserved.
/* Copyright (c) 2008, 201
3
, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU General Public License as published by
...
@@ -995,7 +995,7 @@ static inline int inline_mysql_cond_wait(
...
@@ -995,7 +995,7 @@ static inline int inline_mysql_cond_wait(
static
inline
int
inline_mysql_cond_timedwait
(
static
inline
int
inline_mysql_cond_timedwait
(
mysql_cond_t
*
that
,
mysql_cond_t
*
that
,
mysql_mutex_t
*
mutex
,
mysql_mutex_t
*
mutex
,
struct
timespec
*
abstime
const
struct
timespec
*
abstime
#if defined(HAVE_PSI_INTERFACE) || defined(SAFE_MUTEX)
#if defined(HAVE_PSI_INTERFACE) || defined(SAFE_MUTEX)
,
const
char
*
src_file
,
uint
src_line
,
const
char
*
src_file
,
uint
src_line
#endif
#endif
...
...
include/welcome_copyright_notice.h
View file @
3d30668e
/* Copyright (c) 2011, 201
2
, Oracle and/or its affiliates.
/* Copyright (c) 2011, 201
4
, Oracle and/or its affiliates.
Copyright (c) 2011, 2012, Monty Program Ab
Copyright (c) 2011, 2012, Monty Program Ab
This program is free software; you can redistribute it and/or modify
This program is free software; you can redistribute it and/or modify
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
#ifndef _welcome_copyright_notice_h_
#ifndef _welcome_copyright_notice_h_
#define _welcome_copyright_notice_h_
#define _welcome_copyright_notice_h_
#define COPYRIGHT_NOTICE_CURRENT_YEAR "201
3
"
#define COPYRIGHT_NOTICE_CURRENT_YEAR "201
4
"
/*
/*
This define specifies copyright notice which is displayed by every MySQL
This define specifies copyright notice which is displayed by every MySQL
...
...
libmysql/CMakeLists.txt
View file @
3d30668e
# Copyright (c) 2006, 2012, Oracle and/or its affiliates.
# Copyright (c) 2006, 2013, Oracle and/or its affiliates.
# Copyright (c) 2009, 2013, SkySQL Ab.
#
#
# This program is free software; you can redistribute it and/or modify
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# it under the terms of the GNU General Public License as published by
...
@@ -25,8 +26,6 @@ ADD_DEFINITIONS(${SSL_DEFINES})
...
@@ -25,8 +26,6 @@ ADD_DEFINITIONS(${SSL_DEFINES})
SET
(
CLIENT_API_FUNCTIONS_5_1
SET
(
CLIENT_API_FUNCTIONS_5_1
get_tty_password
get_tty_password
handle_options
load_defaults
mysql_thread_end
mysql_thread_end
mysql_thread_init
mysql_thread_init
myodbc_remove_escape
myodbc_remove_escape
...
@@ -130,6 +129,12 @@ mysql_server_init
...
@@ -130,6 +129,12 @@ mysql_server_init
mysql_server_end
mysql_server_end
mysql_set_character_set
mysql_set_character_set
mysql_get_character_set_info
mysql_get_character_set_info
# These are documented in Paul DuBois' MySQL book,
# so we treat them as part of the de-facto API.
handle_options
load_defaults
free_defaults
my_print_help
)
)
SET
(
CLIENT_API_FUNCTIONS_5_5
SET
(
CLIENT_API_FUNCTIONS_5_5
...
@@ -152,6 +157,8 @@ mysql_close_cont
...
@@ -152,6 +157,8 @@ mysql_close_cont
mysql_close_start
mysql_close_start
mysql_commit_cont
mysql_commit_cont
mysql_commit_start
mysql_commit_start
mysql_dump_debug_info_cont
mysql_dump_debug_info_start
mysql_fetch_row_cont
mysql_fetch_row_cont
mysql_fetch_row_start
mysql_fetch_row_start
mysql_free_result_cont
mysql_free_result_cont
...
@@ -238,73 +245,76 @@ IF(CMAKE_SYSTEM_NAME MATCHES "Linux")
...
@@ -238,73 +245,76 @@ IF(CMAKE_SYSTEM_NAME MATCHES "Linux")
# for compatibility with distribution packages, so client shared library can
# for compatibility with distribution packages, so client shared library can
# painlessly replace the one supplied by the distribution.
# painlessly replace the one supplied by the distribution.
# Also list of exported symbols in distributions may differ from what is
considered
# Also list of exported symbols in distributions may differ from what is
# official API. Define CLIENT_API_EXTRA for the set of
symbols, that required to
#
considered
official API. Define CLIENT_API_
5_1_
EXTRA for the set of
# be exported on different platforms.
#
symbols, that required to
be exported on different platforms.
IF
(
RPM
)
# Fedora & Co declared following functions as part of API
# Fedora & Co declared following functions as part of API
SET
(
CLIENT_API_5_1_EXTRA
SET
(
CLIENT_API_EXTRA
# why does Fedora export these?
mysql_default_charset_info
_fini
mysql_get_charset
_init
mysql_get_charset_by_csname
my_init
mysql_net_realloc
mysql_client_errors
# Also export the non-renamed variants
# mysql-connector-odbc requires these
# (in case someone wants to rebuild mysqli-php or something similar)
mysql_default_charset_info
# See MDEV-4127
mysql_get_charset
default_charset_info
mysql_get_charset_by_csname
get_charset
mysql_net_realloc
get_charset_by_csname
net_realloc
client_errors
THR_KEY_mysys
)
# Add special script to fix symbols renames by Fedora
SET
(
CLIENT_SOURCES_EXTRA rpm_support.cc
)
SET
(
VERSION_SCRIPT_TEMPLATE
${
CMAKE_CURRENT_SOURCE_DIR
}
/libmysql_rpm_version.in
)
ELSEIF
(
DEB
)
# libmyodbc on Ubuntu is using functions below
# If we don't export them, linker would just remove
# them (they are not used inside libmysqlclient)
SET
(
CLIENT_API_EXTRA
strfill
init_dynamic_string
)
# MySQL supplied with Ubuntu does not have versioning, bug Debian does.
IF
(
DEB MATCHES
"debian"
)
SET
(
VERSION_SCRIPT_TEMPLATE
${
CMAKE_CURRENT_SOURCE_DIR
}
/libmysql.ver.in
)
ENDIF
()
ENDIF
()
IF
(
VERSION_SCRIPT_TEMPLATE
)
# PHP's mysqli.so requires this (via the ER() macro)
# Generate version script.
mysql_client_errors
# Create semicolon separated lists of functions to export from
# Since RPM packages use separate versioning for 5.1 API
# Also export the non-renamed variants
# and 5.5 API (libmysqlclient_16 vs libmysqlclient_18),
# (in case someone wants to rebuild mysqli-php or something similar)
# we need 2 lists.
# See MDEV-4127
SET
(
CLIENT_API_5_1_LIST
)
default_charset_info
FOREACH
(
f
${
CLIENT_API_FUNCTIONS_5_1
}
)
get_charset
SET
(
CLIENT_API_5_1_LIST
"
${
CLIENT_API_5_1_LIST
}
\n
${
f
}
;"
)
get_charset_by_csname
ENDFOREACH
()
net_realloc
client_errors
SET
(
CLIENT_API_5_5_LIST
)
FOREACH
(
f
${
CLIENT_API_FUNCTIONS_5_5
}
)
# pure-ftpd requires this
SET
(
CLIENT_API_5_5_LIST
"
${
CLIENT_API_5_5_LIST
}
\n
${
f
}
;"
)
my_make_scrambled_password
ENDFOREACH
()
# hydra requires this
scramble
# ODB requires this: https://bugzilla.redhat.com/show_bug.cgi?id=846602
THR_KEY_mysys
# DBD::mysql requires this
is_prefix
)
# Linker script to version symbols in Fedora- and Debian- compatible way, MDEV-5529
SET
(
VERSION_SCRIPT_TEMPLATE
${
CMAKE_CURRENT_SOURCE_DIR
}
/libmysql_versions.ld.in
)
# Generate version script.
# Create semicolon separated lists of functions to export from
# Since RPM packages use separate versioning for 5.1 API
# and 5.5 API (libmysqlclient_16 vs libmysqlclient_18),
# we need 2 lists.
SET
(
CLIENT_API_5_1_LIST
)
SET
(
CLIENT_API_5_1_ALIASES
)
FOREACH
(
f
${
CLIENT_API_FUNCTIONS_5_1
}
${
CLIENT_API_5_1_EXTRA
}
)
SET
(
CLIENT_API_5_1_LIST
"
${
CLIENT_API_5_1_LIST
}
\t
${
f
}
;
\n
"
)
SET
(
CLIENT_API_5_1_ALIASES
"
${
CLIENT_API_5_1_ALIASES
}
\"
${
f
}
@libmysqlclient_16
\"
=
${
f
}
;
\n
"
)
ENDFOREACH
()
SET
(
CLIENT_API_5_5_LIST
)
FOREACH
(
f
${
CLIENT_API_FUNCTIONS_5_5
}
)
SET
(
CLIENT_API_5_5_LIST
"
${
CLIENT_API_5_5_LIST
}
\t
${
f
}
;
\n
"
)
ENDFOREACH
()
CONFIGURE_FILE
(
${
VERSION_SCRIPT_TEMPLATE
}
${
CMAKE_CURRENT_BINARY_DIR
}
/libmysql_versions.ld
@ONLY@
)
SET
(
VERSION_SCRIPT_LINK_FLAGS
"-Wl,
${
CMAKE_CURRENT_BINARY_DIR
}
/libmysql_versions.ld"
)
CONFIGURE_FILE
(
${
VERSION_SCRIPT_TEMPLATE
}
${
CMAKE_CURRENT_BINARY_DIR
}
/libmysql.version
@ONLY@
)
SET
(
VERSION_SCRIPT_LINK_FLAGS
"-Wl,--version-script=
${
CMAKE_CURRENT_BINARY_DIR
}
/libmysql.version"
)
ENDIF
()
ENDIF
()
ENDIF
()
...
@@ -354,7 +364,7 @@ IF(UNIX)
...
@@ -354,7 +364,7 @@ IF(UNIX)
ENDIF
()
ENDIF
()
IF
(
NOT DISABLE_SHARED
)
IF
(
NOT DISABLE_SHARED
)
MERGE_LIBRARIES
(
libmysql SHARED
${
LIBS
}
EXPORTS
${
CLIENT_API_FUNCTIONS
}
${
CLIENT_API_EXTRA
}
COMPONENT SharedLibraries
)
MERGE_LIBRARIES
(
libmysql SHARED
${
LIBS
}
EXPORTS
${
CLIENT_API_FUNCTIONS
}
${
CLIENT_API_
5_1_
EXTRA
}
COMPONENT SharedLibraries
)
IF
(
UNIX
)
IF
(
UNIX
)
# libtool compatability
# libtool compatability
IF
(
CMAKE_SYSTEM_NAME MATCHES
"FreeBSD"
OR APPLE
)
IF
(
CMAKE_SYSTEM_NAME MATCHES
"FreeBSD"
OR APPLE
)
...
@@ -371,9 +381,6 @@ IF(NOT DISABLE_SHARED)
...
@@ -371,9 +381,6 @@ IF(NOT DISABLE_SHARED)
SOVERSION
"
${
SHARED_LIB_MAJOR_VERSION
}
"
)
SOVERSION
"
${
SHARED_LIB_MAJOR_VERSION
}
"
)
IF
(
LINK_FLAG_NO_UNDEFINED OR VERSION_SCRIPT_LINK_FLAGS
)
IF
(
LINK_FLAG_NO_UNDEFINED OR VERSION_SCRIPT_LINK_FLAGS
)
GET_TARGET_PROPERTY
(
libmysql_link_flags libmysql LINK_FLAGS
)
GET_TARGET_PROPERTY
(
libmysql_link_flags libmysql LINK_FLAGS
)
IF
(
NOT libmysql_link_flag
)
SET
(
libmysql_link_flags
)
ENDIF
()
SET_TARGET_PROPERTIES
(
libmysql PROPERTIES LINK_FLAGS
SET_TARGET_PROPERTIES
(
libmysql PROPERTIES LINK_FLAGS
"
${
libmysql_link_flags
}
${
LINK_FLAG_NO_UNDEFINED
}
${
VERSION_SCRIPT_LINK_FLAGS
}
"
)
"
${
libmysql_link_flags
}
${
LINK_FLAG_NO_UNDEFINED
}
${
VERSION_SCRIPT_LINK_FLAGS
}
"
)
ENDIF
()
ENDIF
()
...
...
libmysql/conf_to_src.c
View file @
3d30668e
/* Copyright (
C
) 2000
-2004 MySQL AB
/* Copyright (
c
) 2000
, 2011, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU General Public License as published by
...
...
libmysql/libmysql.c
View file @
3d30668e
/* Copyright (c) 2000, 201
2
, Oracle and/or its affiliates
/* Copyright (c) 2000, 201
3
, Oracle and/or its affiliates
Copyright (c) 2009, 201
2
, Monty Program Ab
Copyright (c) 2009, 201
3
, Monty Program Ab
This program is free software; you can redistribute it and/or modify
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU General Public License as published by
...
...
libmysql/libmysql.ver.in
deleted
100644 → 0
View file @
cdd04139
libmysqlclient_@SHARED_LIB_MAJOR_VERSION@ { global: *; };
libmysql/libmysql_rpm_version.in
deleted
100644 → 0
View file @
cdd04139
# This version script is heavily inspired by Fedora's and Mageia's version scripts for
# MySQL client shared library. It is used in MariaDB for building RPMs.
libmysqlclient_16 {
global:
@CLIENT_API_5_1_LIST@
# some stuff from Mageia, I have no idea why it is there
# But too afraid to throw anything away
_fini;
_init;
my_init;
my_progname;
myodbc_remove_escape;
# These are documented in Paul DuBois' MySQL book, so we treat them as part
# of the de-facto API.
free_defaults;
handle_options;
load_defaults;
my_print_help;
# pure-ftpd requires this
my_make_scrambled_password;
# fedora18 export
THR_KEY_mysys;
# hydra requires this
scramble;
# DBD::mysql requires this
is_prefix;
local:
*;
};
libmysqlclient_18 {
global:
@CLIENT_API_5_5_LIST@
#
# Ideally the following symbols wouldn't be exported, but various applications
# require them. Fedora limits the namespace damage by prefixing mysql_
# (see mysql-dubious-exports.patch), which means the symbols are not present
# in libmysqlclient_16.
#
# MariaDB does not do the Fedora-style function renaming via #define in headers,
# however it exports mysql_ prefixed symbols in addition to the "normal" ones.
#
# To ensure successful recompilation of affected projects, as well as drop-in replacement
# for MySQL libraries, provided by distribution, both original symbols and their mysql_
# prefixed counterparts have to be exported.
# mysql-connector-odbc requires these
mysql_default_charset_info;
mysql_get_charset;
mysql_get_charset_by_csname;
mysql_net_realloc;
default_charset_info;
get_charset;
get_charset_by_csname;
net_realloc;
# PHP's mysqli.so requires this (via the ER() macro)
mysql_client_errors;
client_errors;
};
libmysql/libmysql_versions.ld.in
0 → 100644
View file @
3d30668e
/*
This version script is heavily inspired by Fedora's and Mageia's version
scripts for MySQL client shared library.
But it was modified to support Debian-compatible versioning too.
In RedHat universe, symbols from old libmysqlclient.so.16
keep their libmysqlclient_16 version. New symbols added in
libmysqlclient.so.18 get the new libmysqlclient_18 version.
In Debian all symbols in libmysqlclient.so.18 have libmysqlclient_18 version,
including symbols that existed in libmysqlclient.so.16
We solve this by putting all symbols into libmysqlclient_18 version node,
but creating aliases for old symbols in the libmysqlclient_16 version node.
*/
@CLIENT_API_5_1_ALIASES@
/*
On Fedora the following symbols are exported, but renamed into a mysql_
namespace. We export them as aliases, but keep original symbols too. See
MDEV-4127.
*/
mysql_default_charset_info = default_charset_info;
mysql_get_charset = get_charset;
mysql_get_charset_by_csname = get_charset_by_csname;
mysql_net_realloc = net_realloc;
mysql_client_errors = client_errors;
VERSION {
libmysqlclient_18 {
global:
@CLIENT_API_5_1_LIST@
@CLIENT_API_5_5_LIST@
local:
*;
};
libmysqlclient_16 {
/* empty here. aliases are added above */
};
}
libmysql/rpm_support.cc
deleted
100644 → 0
View file @
cdd04139
/*
Provide aliases for several symbols, to support drop-in replacement for
MariaDB on Fedora and several derives distributions.
These distributions redefine several symbols (in a way that is no compatible
with either MySQL or MariaDB) and export it from the client library ( as seen
e.g from this patch)
http://lists.fedoraproject.org/pipermail/scm-commits/2010-December/537257.html
MariaDB handles compatibility distribution by providing the same symbols from
the client library if it is built with -DRPM
*/
#include
<errmsg.h>
#include
<my_sys.h>
#include
<mysql.h>
extern
"C"
{
CHARSET_INFO
*
mysql_default_charset_info
=
default_charset_info
;
CHARSET_INFO
*
mysql_get_charset
(
uint
cs_number
,
myf
flags
)
{
return
get_charset
(
cs_number
,
flags
);
}
CHARSET_INFO
*
mysql_get_charset_by_csname
(
const
char
*
cs_name
,
uint
cs_flags
,
myf
my_flags
)
{
return
get_charset_by_csname
(
cs_name
,
cs_flags
,
my_flags
);
}
my_bool
mysql_net_realloc
(
NET
*
net
,
size_t
length
)
{
return
net_realloc
(
net
,
length
);
}
const
char
**
mysql_client_errors
=
client_errors
;
}
/*extern "C" */
libmysqld/lib_sql.cc
View file @
3d30668e
...
@@ -561,7 +561,7 @@ int init_embedded_server(int argc, char **argv, char **groups)
...
@@ -561,7 +561,7 @@ int init_embedded_server(int argc, char **argv, char **groups)
opt_mysql_tmpdir
=
getenv
(
"TMP"
);
opt_mysql_tmpdir
=
getenv
(
"TMP"
);
#endif
#endif
if
(
!
opt_mysql_tmpdir
||
!
opt_mysql_tmpdir
[
0
])
if
(
!
opt_mysql_tmpdir
||
!
opt_mysql_tmpdir
[
0
])
opt_mysql_tmpdir
=
(
char
*
)
DEFAULT_TMPDIR
;
/* purecov: inspected
*/
opt_mysql_tmpdir
=
const_cast
<
char
*
>
(
DEFAULT_TMPDIR
);
/* purecov: inspected*/
init_ssl
();
init_ssl
();
umask
(((
~
my_umask
)
&
0666
));
umask
(((
~
my_umask
)
&
0666
));
...
...
mysql-test/CMakeLists.txt
View file @
3d30668e
# Copyright (c) 2009, 201
2
, Oracle and/or its affiliates. All rights reserved.
# Copyright (c) 2009, 201
3
, Oracle and/or its affiliates. All rights reserved.
#
#
# This program is free software; you can redistribute it and/or modify
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# it under the terms of the GNU General Public License as published by
...
...
mysql-test/collections/default.weekly
View file @
3d30668e
...
@@ -5,3 +5,6 @@ perl mysql-test-run.pl --timer --force --debug-server --parallel=auto --comment
...
@@ -5,3 +5,6 @@ perl mysql-test-run.pl --timer --force --debug-server --parallel=auto --comment
perl mysql-test-run.pl --timer --force --debug-server --parallel=auto --comment=eits-tests-innodb-engine --experimental=collections/default.experimental --vardir=var-stmt-eits-tests-innodb-engine --suite=engines/iuds,engines/funcs --suite-timeout=500 --max-test-fail=0 --retry-failure=0 --mysqld=--default-storage-engine=innodb --mysqld=--innodb --skip-test-list=collections/disabled-weekly.list
perl mysql-test-run.pl --timer --force --debug-server --parallel=auto --comment=eits-tests-innodb-engine --experimental=collections/default.experimental --vardir=var-stmt-eits-tests-innodb-engine --suite=engines/iuds,engines/funcs --suite-timeout=500 --max-test-fail=0 --retry-failure=0 --mysqld=--default-storage-engine=innodb --mysqld=--innodb --skip-test-list=collections/disabled-weekly.list
perl mysql-test-run.pl --timer --force --debug-server --parallel=auto --comment=eits-rpl-binlog-row-tests-innodb-engine --experimental=collections/default.experimental --vardir=var-binlog-row-eits-tests-innodb-engine --suite=engines/iuds,engines/funcs --suite-timeout=500 --max-test-fail=0 --retry-failure=0 --mysqld=--default-storage-engine=innodb --mysqld=--innodb --do-test=rpl --mysqld=--binlog-format=row --skip-test-list=collections/disabled-weekly.list
perl mysql-test-run.pl --timer --force --debug-server --parallel=auto --comment=eits-rpl-binlog-row-tests-innodb-engine --experimental=collections/default.experimental --vardir=var-binlog-row-eits-tests-innodb-engine --suite=engines/iuds,engines/funcs --suite-timeout=500 --max-test-fail=0 --retry-failure=0 --mysqld=--default-storage-engine=innodb --mysqld=--innodb --do-test=rpl --mysqld=--binlog-format=row --skip-test-list=collections/disabled-weekly.list
perl mysql-test-run.pl --timer --force --debug-server --parallel=auto --comment=eits-rpl-binlog-mixed-tests-innodb-engine --experimental=collections/default.experimental --vardir=var-binlog-mixed-eits-tests-innodb-engine --suite=engines/iuds,engines/funcs --suite-timeout=500 --max-test-fail=0 --retry-failure=0 --mysqld=--default-storage-engine=innodb --mysqld=--innodb --do-test=rpl --mysqld=--binlog-format=mixed --skip-test-list=collections/disabled-weekly.list
perl mysql-test-run.pl --timer --force --debug-server --parallel=auto --comment=eits-rpl-binlog-mixed-tests-innodb-engine --experimental=collections/default.experimental --vardir=var-binlog-mixed-eits-tests-innodb-engine --suite=engines/iuds,engines/funcs --suite-timeout=500 --max-test-fail=0 --retry-failure=0 --mysqld=--default-storage-engine=innodb --mysqld=--innodb --do-test=rpl --mysqld=--binlog-format=mixed --skip-test-list=collections/disabled-weekly.list
# Run innodb compression tests
perl mysql-test-run.pl --force --debug-server --comment=innodb_compression --vardir=var-innodb-zip --big-test --testcase-timeout=60 --parallel=auto --experimental=collections/default.experimental --suite=innodb_zip
mysql-test/extra/rpl_tests/rpl_ddl.test
View file @
3d30668e
...
@@ -608,6 +608,7 @@ use test;
...
@@ -608,6 +608,7 @@ use test;
--
echo
--
echo
--
echo
--------
switch
to
master
-------
--
echo
--------
switch
to
master
-------
connection
master
;
connection
master
;
DROP
TEMPORARY
TABLE
mysqltest1
.
t22
;
DROP
DATABASE
mysqltest1
;
DROP
DATABASE
mysqltest1
;
# mysqltest2 was alreday DROPPED some tests before.
# mysqltest2 was alreday DROPPED some tests before.
DROP
DATABASE
mysqltest3
;
DROP
DATABASE
mysqltest3
;
Prev
1
2
3
4
5
6
…
50
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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