Merge 10.3 into 10.4
This commit is contained in:
commit
5c3ff5cb93
@ -507,6 +507,8 @@ IF(UNIX)
|
|||||||
INSTALL_DOCUMENTATION(Docs/INSTALL-BINARY Docs/README-wsrep COMPONENT Readme)
|
INSTALL_DOCUMENTATION(Docs/INSTALL-BINARY Docs/README-wsrep COMPONENT Readme)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
|
INCLUDE(build_depends)
|
||||||
|
|
||||||
INCLUDE(CPack)
|
INCLUDE(CPack)
|
||||||
|
|
||||||
IF(WIN32 AND SIGNCODE)
|
IF(WIN32 AND SIGNCODE)
|
||||||
|
@ -3782,9 +3782,10 @@ print_table_data_html(MYSQL_RES *result)
|
|||||||
MYSQL_FIELD *field;
|
MYSQL_FIELD *field;
|
||||||
|
|
||||||
mysql_field_seek(result,0);
|
mysql_field_seek(result,0);
|
||||||
(void) tee_fputs("<TABLE BORDER=1><TR>", PAGER);
|
(void) tee_fputs("<TABLE BORDER=1>", PAGER);
|
||||||
if (column_names)
|
if (column_names)
|
||||||
{
|
{
|
||||||
|
(void) tee_fputs("<TR>", PAGER);
|
||||||
while((field = mysql_fetch_field(result)))
|
while((field = mysql_fetch_field(result)))
|
||||||
{
|
{
|
||||||
tee_fputs("<TH>", PAGER);
|
tee_fputs("<TH>", PAGER);
|
||||||
|
@ -95,8 +95,8 @@ IF(WIN32)
|
|||||||
ELSEIF(RPM)
|
ELSEIF(RPM)
|
||||||
SET(WITH_SSL system CACHE STRING "")
|
SET(WITH_SSL system CACHE STRING "")
|
||||||
SET(WITH_ZLIB system CACHE STRING "")
|
SET(WITH_ZLIB system CACHE STRING "")
|
||||||
SET(CHECKMODULE /usr/bin/checkmodule CACHE STRING "")
|
SET(CHECKMODULE /usr/bin/checkmodule CACHE FILEPATH "")
|
||||||
SET(SEMODULE_PACKAGE /usr/bin/semodule_package CACHE STRING "")
|
SET(SEMODULE_PACKAGE /usr/bin/semodule_package CACHE FILEPATH "")
|
||||||
SET(PLUGIN_AUTH_SOCKET YES CACHE STRING "")
|
SET(PLUGIN_AUTH_SOCKET YES CACHE STRING "")
|
||||||
ELSEIF(DEB)
|
ELSEIF(DEB)
|
||||||
SET(WITH_SSL system CACHE STRING "")
|
SET(WITH_SSL system CACHE STRING "")
|
||||||
|
39
cmake/build_depends.cmake
Normal file
39
cmake/build_depends.cmake
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
IF(RPM)
|
||||||
|
MACRO(FIND_DEP V)
|
||||||
|
SET(out ${V}_DEP)
|
||||||
|
IF (NOT DEFINED ${out})
|
||||||
|
IF(EXISTS ${${V}} AND NOT IS_DIRECTORY ${${V}})
|
||||||
|
EXECUTE_PROCESS(COMMAND ${ARGN} RESULT_VARIABLE res OUTPUT_VARIABLE O OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||||
|
ELSE()
|
||||||
|
SET(res 1)
|
||||||
|
ENDIF()
|
||||||
|
IF (res)
|
||||||
|
SET(O)
|
||||||
|
ELSE()
|
||||||
|
MESSAGE(STATUS "Need ${O} for ${${V}}")
|
||||||
|
ENDIF()
|
||||||
|
SET(${out} ${O} CACHE INTERNAL "Package that contains ${${V}}" FORCE)
|
||||||
|
ENDIF()
|
||||||
|
ENDMACRO()
|
||||||
|
|
||||||
|
GET_CMAKE_PROPERTY(ALL_VARS CACHE_VARIABLES)
|
||||||
|
FOREACH (V ${ALL_VARS})
|
||||||
|
GET_PROPERTY(H CACHE ${V} PROPERTY HELPSTRING)
|
||||||
|
IF (H MATCHES "^Have library [^/]" AND ${V})
|
||||||
|
STRING(REGEX REPLACE "^Have library " "" L ${H})
|
||||||
|
SET(V ${L}_LIBRARY)
|
||||||
|
FIND_LIBRARY(${V} ${L})
|
||||||
|
ENDIF()
|
||||||
|
GET_PROPERTY(T CACHE ${V} PROPERTY TYPE)
|
||||||
|
IF ((T STREQUAL FILEPATH OR V MATCHES "^CMAKE_COMMAND$") AND ${V} MATCHES "^/")
|
||||||
|
IF (RPM)
|
||||||
|
FIND_DEP(${V} rpm -q --qf "%{NAME}" -f ${${V}})
|
||||||
|
ELSE() # must be DEB
|
||||||
|
MESSAGE(FATAL_ERROR "Not implemented")
|
||||||
|
ENDIF ()
|
||||||
|
SET(BUILD_DEPS ${BUILD_DEPS} ${${V}_DEP})
|
||||||
|
ENDIF()
|
||||||
|
ENDFOREACH()
|
||||||
|
LIST(REMOVE_DUPLICATES BUILD_DEPS)
|
||||||
|
STRING(REPLACE ";" " " CPACK_RPM_BUILDREQUIRES "${BUILD_DEPS}")
|
||||||
|
ENDIF(RPM)
|
@ -83,6 +83,12 @@ SET(CPACK_RPM_SPEC_MORE_DEFINE "
|
|||||||
%define _sysconfdir ${INSTALL_SYSCONFDIR}
|
%define _sysconfdir ${INSTALL_SYSCONFDIR}
|
||||||
%define restart_flag_dir %{_localstatedir}/lib/rpm-state/mariadb
|
%define restart_flag_dir %{_localstatedir}/lib/rpm-state/mariadb
|
||||||
%define restart_flag %{restart_flag_dir}/need-restart
|
%define restart_flag %{restart_flag_dir}/need-restart
|
||||||
|
|
||||||
|
%{?filter_setup:
|
||||||
|
%filter_from_provides /perl(\\\\(mtr\\\\|My::\\\\)/d
|
||||||
|
%filter_from_requires /\\\\(lib\\\\(ft\\\\|lzma\\\\|tokuportability\\\\)\\\\)\\\\|\\\\(perl(\\\\(.*mtr\\\\|My::\\\\|.*HandlerSocket\\\\|Mysql\\\\)\\\\)/d
|
||||||
|
%filter_setup
|
||||||
|
}
|
||||||
")
|
")
|
||||||
|
|
||||||
# this creative hack is described here: http://www.cmake.org/pipermail/cmake/2012-January/048416.html
|
# this creative hack is described here: http://www.cmake.org/pipermail/cmake/2012-January/048416.html
|
||||||
@ -202,7 +208,7 @@ ALTERNATIVE_NAME("server" "mysql-server")
|
|||||||
ALTERNATIVE_NAME("test" "mysql-test")
|
ALTERNATIVE_NAME("test" "mysql-test")
|
||||||
|
|
||||||
# Argh! Different distributions call packages differently, to be a drop-in
|
# Argh! Different distributions call packages differently, to be a drop-in
|
||||||
# replacement we have to fake distribution-specificic dependencies
|
# replacement we have to fake distribution-specific dependencies
|
||||||
|
|
||||||
IF(RPM MATCHES "(rhel|centos)6")
|
IF(RPM MATCHES "(rhel|centos)6")
|
||||||
ALTERNATIVE_NAME("client" "mysql")
|
ALTERNATIVE_NAME("client" "mysql")
|
||||||
@ -218,36 +224,6 @@ ELSEIF(RPM MATCHES "(rhel|centos)8")
|
|||||||
SET(PYTHON_SHEBANG "/usr/bin/python3")
|
SET(PYTHON_SHEBANG "/usr/bin/python3")
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
# workaround for lots of perl dependencies added by rpmbuild
|
|
||||||
SETA(CPACK_RPM_test_PACKAGE_PROVIDES
|
|
||||||
"perl(lib::mtr_gcov.pl)"
|
|
||||||
"perl(lib::mtr_gprof.pl)"
|
|
||||||
"perl(lib::mtr_io.pl)"
|
|
||||||
"perl(lib::mtr_misc.pl)"
|
|
||||||
"perl(lib::mtr_process.pl)"
|
|
||||||
"perl(lib::v1/mtr_cases.pl)"
|
|
||||||
"perl(lib::v1/mtr_gcov.pl)"
|
|
||||||
"perl(lib::v1/mtr_gprof.pl)"
|
|
||||||
"perl(lib::v1/mtr_im.pl)"
|
|
||||||
"perl(lib::v1/mtr_io.pl)"
|
|
||||||
"perl(lib::v1/mtr_match.pl)"
|
|
||||||
"perl(lib::v1/mtr_misc.pl)"
|
|
||||||
"perl(lib::v1/mtr_process.pl)"
|
|
||||||
"perl(lib::v1/mtr_report.pl)"
|
|
||||||
"perl(lib::v1/mtr_stress.pl)"
|
|
||||||
"perl(lib::v1/mtr_timer.pl)"
|
|
||||||
"perl(lib::v1/mtr_unique.pl)"
|
|
||||||
"perl(mtr_cases)"
|
|
||||||
"perl(mtr_io.pl)"
|
|
||||||
"perl(mtr_match)"
|
|
||||||
"perl(mtr_misc.pl)"
|
|
||||||
"perl(mtr_gcov.pl)"
|
|
||||||
"perl(mtr_gprof.pl)"
|
|
||||||
"perl(mtr_process.pl)"
|
|
||||||
"perl(mtr_report)"
|
|
||||||
"perl(mtr_results)"
|
|
||||||
"perl(mtr_unique)")
|
|
||||||
|
|
||||||
# If we want to build build MariaDB-shared-compat,
|
# If we want to build build MariaDB-shared-compat,
|
||||||
# extract compat libraries from MariaDB-shared-5.3 rpm
|
# extract compat libraries from MariaDB-shared-5.3 rpm
|
||||||
FILE(GLOB compat53 RELATIVE ${CMAKE_SOURCE_DIR}
|
FILE(GLOB compat53 RELATIVE ${CMAKE_SOURCE_DIR}
|
||||||
@ -294,4 +270,24 @@ IF(compat53 AND compat101)
|
|||||||
ENDIF()
|
ENDIF()
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
|
################
|
||||||
|
IF(CMAKE_VERSION VERSION_GREATER "3.9.99")
|
||||||
|
|
||||||
|
SET(CPACK_SOURCE_GENERATOR "RPM")
|
||||||
|
SETA(CPACK_RPM_SOURCE_PKG_BUILD_PARAMS
|
||||||
|
"-DBUILD_CONFIG=mysql_release"
|
||||||
|
"-DRPM=${RPM}"
|
||||||
|
"-DCPACK_RPM_BUILD_SOURCE_DIRS_PREFIX=/usr/src/debug/${CPACK_RPM_PACKAGE_NAME}-${VERSION}"
|
||||||
|
)
|
||||||
|
|
||||||
|
MACRO(ADDIF var)
|
||||||
|
IF(DEFINED ${var})
|
||||||
|
SETA(CPACK_RPM_SOURCE_PKG_BUILD_PARAMS "-D${var}=${${var}}")
|
||||||
|
ENDIF()
|
||||||
|
ENDMACRO()
|
||||||
|
|
||||||
|
ADDIF(BUILD_CONFIG)
|
||||||
|
ADDIF(WITH_SSL)
|
||||||
|
|
||||||
|
ENDIF()
|
||||||
ENDIF(RPM)
|
ENDIF(RPM)
|
||||||
|
@ -15,18 +15,19 @@
|
|||||||
|
|
||||||
SET(CPACK_SOURCE_IGNORE_FILES
|
SET(CPACK_SOURCE_IGNORE_FILES
|
||||||
\\\\.git/
|
\\\\.git/
|
||||||
\\\\.gitignore
|
\\\\.gitignore$
|
||||||
CMakeCache\\\\.txt
|
\\\\.gitattributes$
|
||||||
cmake_dist\\\\.cmake
|
CMakeCache\\\\.txt$
|
||||||
CPackSourceConfig\\\\.cmake
|
cmake_dist\\\\.cmake$
|
||||||
CPackConfig.cmake
|
CPackSourceConfig\\\\.cmake$
|
||||||
/cmake_install\\\\.cmake
|
CPackConfig.cmake$
|
||||||
/CTestTestfile\\\\.cmake
|
/cmake_install\\\\.cmake$
|
||||||
|
/CTestTestfile\\\\.cmake$
|
||||||
/CMakeFiles/
|
/CMakeFiles/
|
||||||
/version_resources/
|
/version_resources/
|
||||||
/_CPack_Packages/
|
/_CPack_Packages/
|
||||||
$\\\\.gz
|
\\\\.gz$
|
||||||
$\\\\.zip
|
\\\\.zip$
|
||||||
/CMakeFiles/
|
/CMakeFiles/
|
||||||
/version_resources/
|
/version_resources/
|
||||||
/_CPack_Packages/
|
/_CPack_Packages/
|
||||||
@ -49,5 +50,6 @@ include/config\\\\.h$
|
|||||||
include/my_config\\\\.h$
|
include/my_config\\\\.h$
|
||||||
/autom4te\\\\.cache/
|
/autom4te\\\\.cache/
|
||||||
errmsg\\\\.sys$
|
errmsg\\\\.sys$
|
||||||
|
\\\\.rpm$
|
||||||
#
|
#
|
||||||
)
|
)
|
||||||
|
@ -33,10 +33,15 @@ SET(MY_WARNING_FLAGS
|
|||||||
-Wnon-virtual-dtor
|
-Wnon-virtual-dtor
|
||||||
-Wvla
|
-Wvla
|
||||||
-Wwrite-strings
|
-Wwrite-strings
|
||||||
|
-Werror
|
||||||
)
|
)
|
||||||
|
|
||||||
IF(MYSQL_MAINTAINER_MODE MATCHES "ON")
|
IF(CMAKE_COMPILER_IS_GNUCC AND CMAKE_C_COMPILER_VERSION VERSION_LESS "6.0.0")
|
||||||
SET(WHERE)
|
SET(MY_WARNING_FLAGS ${MY_WARNING_FLAGS} -Wno-error=maybe-uninitialized)
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
|
IF(MYSQL_MAINTAINER_MODE MATCHES "OFF")
|
||||||
|
RETURN()
|
||||||
ELSEIF(MYSQL_MAINTAINER_MODE MATCHES "AUTO")
|
ELSEIF(MYSQL_MAINTAINER_MODE MATCHES "AUTO")
|
||||||
SET(WHERE DEBUG)
|
SET(WHERE DEBUG)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
@ -37,3 +37,8 @@ SET(CLIENT_PLUGIN_PVIO_SOCKET STATIC)
|
|||||||
|
|
||||||
MESSAGE("== Configuring MariaDB Connector/C")
|
MESSAGE("== Configuring MariaDB Connector/C")
|
||||||
ADD_SUBDIRECTORY(libmariadb)
|
ADD_SUBDIRECTORY(libmariadb)
|
||||||
|
|
||||||
|
#remove after merging libmariadb > v3.0.9
|
||||||
|
IF(TARGET caching_sha2_password AND CMAKE_C_FLAGS_DEBUG MATCHES "-Werror")
|
||||||
|
SET_PROPERTY(TARGET caching_sha2_password APPEND_STRING PROPERTY COMPILE_FLAGS -Wno-unused-function)
|
||||||
|
ENDIF()
|
||||||
|
@ -233,9 +233,6 @@ MACRO(MYSQL_ADD_PLUGIN)
|
|||||||
IF (NOT ARG_CLIENT)
|
IF (NOT ARG_CLIENT)
|
||||||
SET(CPACK_RPM_${ARG_COMPONENT}_PACKAGE_REQUIRES "MariaDB-server${ver}" PARENT_SCOPE)
|
SET(CPACK_RPM_${ARG_COMPONENT}_PACKAGE_REQUIRES "MariaDB-server${ver}" PARENT_SCOPE)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
# workarounds for cmake issues #13248 and #12864:
|
|
||||||
SET(CPACK_RPM_${ARG_COMPONENT}_PACKAGE_PROVIDES "cmake_bug_13248" PARENT_SCOPE)
|
|
||||||
SET(CPACK_RPM_${ARG_COMPONENT}_PACKAGE_OBSOLETES "cmake_bug_13248" PARENT_SCOPE)
|
|
||||||
SET(CPACK_RPM_${ARG_COMPONENT}_USER_FILELIST ${ignored} PARENT_SCOPE)
|
SET(CPACK_RPM_${ARG_COMPONENT}_USER_FILELIST ${ignored} PARENT_SCOPE)
|
||||||
IF(NOT ARG_CLIENT AND UNIX)
|
IF(NOT ARG_CLIENT AND UNIX)
|
||||||
IF (NOT ARG_CONFIG)
|
IF (NOT ARG_CONFIG)
|
||||||
|
@ -40,22 +40,14 @@ MACRO(CHECK_SYSTEMD)
|
|||||||
SET(LIBSYSTEMD systemd)
|
SET(LIBSYSTEMD systemd)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
SET(CMAKE_REQUIRED_LIBRARIES ${LIBSYSTEMD})
|
SET(CMAKE_REQUIRED_LIBRARIES ${LIBSYSTEMD})
|
||||||
CHECK_C_SOURCE_COMPILES(
|
CHECK_LIBRARY_EXISTS(systemd sd_listen_fds "" HAVE_SYSTEMD_SD_LISTEN_FDS)
|
||||||
"
|
|
||||||
#include <systemd/sd-daemon.h>
|
|
||||||
int main()
|
|
||||||
{
|
|
||||||
sd_listen_fds(0);
|
|
||||||
}"
|
|
||||||
HAVE_SYSTEMD)
|
|
||||||
CHECK_INCLUDE_FILES(systemd/sd-daemon.h HAVE_SYSTEMD_SD_DAEMON_H)
|
CHECK_INCLUDE_FILES(systemd/sd-daemon.h HAVE_SYSTEMD_SD_DAEMON_H)
|
||||||
CHECK_FUNCTION_EXISTS(sd_listen_fds HAVE_SYSTEMD_SD_LISTEN_FDS)
|
|
||||||
CHECK_FUNCTION_EXISTS(sd_notify HAVE_SYSTEMD_SD_NOTIFY)
|
CHECK_FUNCTION_EXISTS(sd_notify HAVE_SYSTEMD_SD_NOTIFY)
|
||||||
CHECK_FUNCTION_EXISTS(sd_notifyf HAVE_SYSTEMD_SD_NOTIFYF)
|
CHECK_FUNCTION_EXISTS(sd_notifyf HAVE_SYSTEMD_SD_NOTIFYF)
|
||||||
SET(CMAKE_REQUIRED_LIBRARIES)
|
SET(CMAKE_REQUIRED_LIBRARIES)
|
||||||
IF(HAVE_SYSTEMD AND HAVE_SYSTEMD_SD_DAEMON_H AND HAVE_SYSTEMD_SD_LISTEN_FDS
|
IF(HAVE_SYSTEMD_SD_DAEMON_H AND HAVE_SYSTEMD_SD_LISTEN_FDS
|
||||||
AND HAVE_SYSTEMD_SD_NOTIFY AND HAVE_SYSTEMD_SD_NOTIFYF)
|
AND HAVE_SYSTEMD_SD_NOTIFY AND HAVE_SYSTEMD_SD_NOTIFYF)
|
||||||
ADD_DEFINITIONS(-DHAVE_SYSTEMD)
|
SET(HAVE_SYSTEMD TRUE)
|
||||||
SET(SYSTEMD_SCRIPTS mariadb-service-convert galera_new_cluster galera_recovery)
|
SET(SYSTEMD_SCRIPTS mariadb-service-convert galera_new_cluster galera_recovery)
|
||||||
IF(DEB)
|
IF(DEB)
|
||||||
SET(SYSTEMD_EXECSTARTPRE "ExecStartPre=/usr/bin/install -m 755 -o mysql -g root -d /var/run/mysqld")
|
SET(SYSTEMD_EXECSTARTPRE "ExecStartPre=/usr/bin/install -m 755 -o mysql -g root -d /var/run/mysqld")
|
||||||
|
@ -32,17 +32,18 @@
|
|||||||
*/
|
*/
|
||||||
#undef MYSQL_PLUGIN_EXPORT
|
#undef MYSQL_PLUGIN_EXPORT
|
||||||
#if defined(_MSC_VER)
|
#if defined(_MSC_VER)
|
||||||
#ifdef __cplusplus
|
#define MYSQL_PLUGIN_EXPORT_C __declspec(dllexport)
|
||||||
#define MYSQL_PLUGIN_EXPORT extern "C" __declspec(dllexport)
|
|
||||||
#else
|
|
||||||
#define MYSQL_PLUGIN_EXPORT __declspec(dllexport)
|
|
||||||
#endif
|
|
||||||
#else /*_MSC_VER */
|
#else /*_MSC_VER */
|
||||||
#ifdef __cplusplus
|
#define MYSQL_PLUGIN_EXPORT_C
|
||||||
#define MYSQL_PLUGIN_EXPORT extern "C"
|
#endif
|
||||||
#else
|
#ifdef __cplusplus
|
||||||
#define MYSQL_PLUGIN_EXPORT
|
#define MYSQL_PLUGIN_EXPORT extern "C" MYSQL_PLUGIN_EXPORT_C
|
||||||
#endif
|
#define C_MODE_START extern "C" {
|
||||||
|
#define C_MODE_END }
|
||||||
|
#else
|
||||||
|
#define MYSQL_PLUGIN_EXPORT MYSQL_PLUGIN_EXPORT_C
|
||||||
|
#define C_MODE_START
|
||||||
|
#define C_MODE_END
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef MYSQL_ABI_CHECK
|
#ifndef MYSQL_ABI_CHECK
|
||||||
@ -60,11 +61,12 @@
|
|||||||
#define MYSQL_CLIENT_MAX_PLUGINS 3
|
#define MYSQL_CLIENT_MAX_PLUGINS 3
|
||||||
|
|
||||||
#define mysql_declare_client_plugin(X) \
|
#define mysql_declare_client_plugin(X) \
|
||||||
MYSQL_PLUGIN_EXPORT struct st_mysql_client_plugin_ ## X \
|
C_MODE_START MYSQL_PLUGIN_EXPORT_C \
|
||||||
|
struct st_mysql_client_plugin_ ## X \
|
||||||
_mysql_client_plugin_declaration_ = { \
|
_mysql_client_plugin_declaration_ = { \
|
||||||
MYSQL_CLIENT_ ## X ## _PLUGIN, \
|
MYSQL_CLIENT_ ## X ## _PLUGIN, \
|
||||||
MYSQL_CLIENT_ ## X ## _PLUGIN_INTERFACE_VERSION,
|
MYSQL_CLIENT_ ## X ## _PLUGIN_INTERFACE_VERSION,
|
||||||
#define mysql_end_client_plugin }
|
#define mysql_end_client_plugin }; C_MODE_END
|
||||||
|
|
||||||
/* generic plugin header structure */
|
/* generic plugin header structure */
|
||||||
#define MYSQL_CLIENT_PLUGIN_HEADER \
|
#define MYSQL_CLIENT_PLUGIN_HEADER \
|
||||||
|
@ -1153,7 +1153,7 @@ checksum table t1, t2, t3, t4, t5, t6, t7 extended;
|
|||||||
drop table t1,t2,t3, t4, t5, t6;
|
drop table t1,t2,t3, t4, t5, t6;
|
||||||
|
|
||||||
#
|
#
|
||||||
# Test problem with refering to different fields in same table in UNION
|
# Test problem with referring to different fields in same table in UNION
|
||||||
# (Bug#2552: UNION returns NULL instead of expected value (innoDB only tables))
|
# (Bug#2552: UNION returns NULL instead of expected value (innoDB only tables))
|
||||||
#
|
#
|
||||||
eval create table t1 (id int, name char(10) not null, name2 char(10) not null) engine=$engine_type;
|
eval create table t1 (id int, name char(10) not null, name2 char(10) not null) engine=$engine_type;
|
||||||
|
@ -2172,7 +2172,7 @@ CREATE DATABASE mysqltest1 DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_unico
|
|||||||
CREATE DATABASE mysqltest2 DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_unicode_ci|
|
CREATE DATABASE mysqltest2 DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_unicode_ci|
|
||||||
use mysqltest1|
|
use mysqltest1|
|
||||||
|
|
||||||
CREATE EVENT ev1 ON SCHEDULE AT '2030-01-01 00:00:00' DO
|
CREATE EVENT ev1 ON SCHEDULE AT '1970-01-02 00:00:00' ON COMPLETION PRESERVE DISABLE DO
|
||||||
BEGIN
|
BEGIN
|
||||||
DECLARE ÐÅÒÅÍ1 CHAR(10);
|
DECLARE ÐÅÒÅÍ1 CHAR(10);
|
||||||
SELECT
|
SELECT
|
||||||
@ -2184,7 +2184,7 @@ COLLATION(_utf8 'текст') AS c4,
|
|||||||
@@character_set_client AS c6;
|
@@character_set_client AS c6;
|
||||||
END|
|
END|
|
||||||
|
|
||||||
CREATE EVENT ev2 ON SCHEDULE AT '2030-01-01 00:00:00' DO
|
CREATE EVENT ev2 ON SCHEDULE AT '1970-01-02 00:00:00' ON COMPLETION PRESERVE DISABLE DO
|
||||||
BEGIN
|
BEGIN
|
||||||
DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
|
DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
|
||||||
SELECT
|
SELECT
|
||||||
@ -2196,7 +2196,7 @@ COLLATION(_utf8 'текст') AS c4,
|
|||||||
@@character_set_client AS c6;
|
@@character_set_client AS c6;
|
||||||
END|
|
END|
|
||||||
|
|
||||||
CREATE EVENT mysqltest2.ev3 ON SCHEDULE AT '2030-01-01 00:00:00' DO
|
CREATE EVENT mysqltest2.ev3 ON SCHEDULE AT '1970-01-02 00:00:00' ON COMPLETION PRESERVE DISABLE DO
|
||||||
BEGIN
|
BEGIN
|
||||||
DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
|
DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
|
||||||
SELECT
|
SELECT
|
||||||
@ -2208,7 +2208,7 @@ COLLATION(_utf8 'текст') AS c4,
|
|||||||
@@character_set_client AS c6;
|
@@character_set_client AS c6;
|
||||||
END|
|
END|
|
||||||
|
|
||||||
CREATE EVENT mysqltest2.ev4 ON SCHEDULE AT '2030-01-01 00:00:00' DO
|
CREATE EVENT mysqltest2.ev4 ON SCHEDULE AT '1970-01-02 00:00:00' ON COMPLETION PRESERVE DISABLE DO
|
||||||
BEGIN
|
BEGIN
|
||||||
DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
|
DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
|
||||||
SELECT
|
SELECT
|
||||||
@ -2224,7 +2224,7 @@ END|
|
|||||||
|
|
||||||
SHOW CREATE EVENT ev1|
|
SHOW CREATE EVENT ev1|
|
||||||
Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
|
Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
|
||||||
ev1 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev1` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
|
ev1 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev1` ON SCHEDULE AT '1970-01-02 00:00:00' ON COMPLETION PRESERVE DISABLE DO BEGIN
|
||||||
DECLARE ÐÅÒÅÍ1 CHAR(10);
|
DECLARE ÐÅÒÅÍ1 CHAR(10);
|
||||||
SELECT
|
SELECT
|
||||||
COLLATION(ÐÅÒÅÍ1) AS c1,
|
COLLATION(ÐÅÒÅÍ1) AS c1,
|
||||||
@ -2237,7 +2237,7 @@ END koi8r koi8r_general_ci utf8_unicode_ci
|
|||||||
|
|
||||||
SHOW CREATE EVENT ev2|
|
SHOW CREATE EVENT ev2|
|
||||||
Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
|
Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
|
||||||
ev2 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev2` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
|
ev2 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev2` ON SCHEDULE AT '1970-01-02 00:00:00' ON COMPLETION PRESERVE DISABLE DO BEGIN
|
||||||
DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
|
DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
|
||||||
SELECT
|
SELECT
|
||||||
COLLATION(ÐÅÒÅÍ1) AS c1,
|
COLLATION(ÐÅÒÅÍ1) AS c1,
|
||||||
@ -2250,7 +2250,7 @@ END koi8r koi8r_general_ci utf8_unicode_ci
|
|||||||
|
|
||||||
SHOW CREATE EVENT mysqltest2.ev3|
|
SHOW CREATE EVENT mysqltest2.ev3|
|
||||||
Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
|
Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
|
||||||
ev3 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev3` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
|
ev3 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev3` ON SCHEDULE AT '1970-01-02 00:00:00' ON COMPLETION PRESERVE DISABLE DO BEGIN
|
||||||
DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
|
DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
|
||||||
SELECT
|
SELECT
|
||||||
COLLATION(ÐÅÒÅÍ1) AS c1,
|
COLLATION(ÐÅÒÅÍ1) AS c1,
|
||||||
@ -2263,7 +2263,7 @@ END koi8r koi8r_general_ci utf8_unicode_ci
|
|||||||
|
|
||||||
SHOW CREATE EVENT mysqltest2.ev3|
|
SHOW CREATE EVENT mysqltest2.ev3|
|
||||||
Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
|
Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
|
||||||
ev3 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev3` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
|
ev3 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev3` ON SCHEDULE AT '1970-01-02 00:00:00' ON COMPLETION PRESERVE DISABLE DO BEGIN
|
||||||
DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
|
DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
|
||||||
SELECT
|
SELECT
|
||||||
COLLATION(ÐÅÒÅÍ1) AS c1,
|
COLLATION(ÐÅÒÅÍ1) AS c1,
|
||||||
@ -2277,11 +2277,11 @@ END koi8r koi8r_general_ci utf8_unicode_ci
|
|||||||
|
|
||||||
SHOW EVENTS LIKE 'ev1'|
|
SHOW EVENTS LIKE 'ev1'|
|
||||||
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
|
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
|
||||||
mysqltest1 ev1 root@localhost SYSTEM ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED 1 koi8r koi8r_general_ci utf8_unicode_ci
|
mysqltest1 ev1 root@localhost SYSTEM ONE TIME 1970-01-02 00:00:00 NULL NULL NULL NULL DISABLED 1 koi8r koi8r_general_ci utf8_unicode_ci
|
||||||
|
|
||||||
SHOW EVENTS LIKE 'ev2'|
|
SHOW EVENTS LIKE 'ev2'|
|
||||||
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
|
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
|
||||||
mysqltest1 ev2 root@localhost SYSTEM ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED 1 koi8r koi8r_general_ci utf8_unicode_ci
|
mysqltest1 ev2 root@localhost SYSTEM ONE TIME 1970-01-02 00:00:00 NULL NULL NULL NULL DISABLED 1 koi8r koi8r_general_ci utf8_unicode_ci
|
||||||
|
|
||||||
SHOW EVENTS LIKE 'ev3'|
|
SHOW EVENTS LIKE 'ev3'|
|
||||||
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
|
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
|
||||||
@ -2301,7 +2301,7 @@ COLLATION( '
|
|||||||
COLLATION( 'ÔÅËÓÔ') AS c4,
|
COLLATION( 'ÔÅËÓÔ') AS c4,
|
||||||
@@collation_connection AS c5,
|
@@collation_connection AS c5,
|
||||||
@@character_set_client AS c6;
|
@@character_set_client AS c6;
|
||||||
END ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED NOT PRESERVE CREATED LAST_ALTERED NULL 1 koi8r koi8r_general_ci utf8_unicode_ci
|
END ONE TIME 1970-01-02 00:00:00 NULL NULL NULL NULL DISABLED PRESERVE CREATED LAST_ALTERED NULL 1 koi8r koi8r_general_ci utf8_unicode_ci
|
||||||
|
|
||||||
SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev2'|
|
SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev2'|
|
||||||
EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
|
EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
|
||||||
@ -2314,7 +2314,7 @@ COLLATION( '
|
|||||||
COLLATION( 'ÔÅËÓÔ') AS c4,
|
COLLATION( 'ÔÅËÓÔ') AS c4,
|
||||||
@@collation_connection AS c5,
|
@@collation_connection AS c5,
|
||||||
@@character_set_client AS c6;
|
@@character_set_client AS c6;
|
||||||
END ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED NOT PRESERVE CREATED LAST_ALTERED NULL 1 koi8r koi8r_general_ci utf8_unicode_ci
|
END ONE TIME 1970-01-02 00:00:00 NULL NULL NULL NULL DISABLED PRESERVE CREATED LAST_ALTERED NULL 1 koi8r koi8r_general_ci utf8_unicode_ci
|
||||||
|
|
||||||
SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev3'|
|
SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev3'|
|
||||||
EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
|
EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
|
||||||
@ -2327,7 +2327,7 @@ COLLATION( '
|
|||||||
COLLATION( 'ÔÅËÓÔ') AS c4,
|
COLLATION( 'ÔÅËÓÔ') AS c4,
|
||||||
@@collation_connection AS c5,
|
@@collation_connection AS c5,
|
||||||
@@character_set_client AS c6;
|
@@character_set_client AS c6;
|
||||||
END ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED NOT PRESERVE CREATED LAST_ALTERED NULL 1 koi8r koi8r_general_ci utf8_unicode_ci
|
END ONE TIME 1970-01-02 00:00:00 NULL NULL NULL NULL DISABLED PRESERVE CREATED LAST_ALTERED NULL 1 koi8r koi8r_general_ci utf8_unicode_ci
|
||||||
|
|
||||||
SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev4'|
|
SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev4'|
|
||||||
EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
|
EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
|
||||||
@ -2340,7 +2340,7 @@ COLLATION( '
|
|||||||
COLLATION( 'ÔÅËÓÔ') AS c4,
|
COLLATION( 'ÔÅËÓÔ') AS c4,
|
||||||
@@collation_connection AS c5,
|
@@collation_connection AS c5,
|
||||||
@@character_set_client AS c6;
|
@@character_set_client AS c6;
|
||||||
END ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED NOT PRESERVE CREATED LAST_ALTERED NULL 1 koi8r koi8r_general_ci utf8_unicode_ci
|
END ONE TIME 1970-01-02 00:00:00 NULL NULL NULL NULL DISABLED PRESERVE CREATED LAST_ALTERED NULL 1 koi8r koi8r_general_ci utf8_unicode_ci
|
||||||
|
|
||||||
|
|
||||||
ALTER DATABASE mysqltest1 COLLATE cp866_general_ci|
|
ALTER DATABASE mysqltest1 COLLATE cp866_general_ci|
|
||||||
@ -2358,7 +2358,7 @@ set names koi8r|
|
|||||||
|
|
||||||
SHOW CREATE EVENT ev1|
|
SHOW CREATE EVENT ev1|
|
||||||
Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
|
Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
|
||||||
ev1 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev1` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
|
ev1 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev1` ON SCHEDULE AT '1970-01-02 00:00:00' ON COMPLETION PRESERVE DISABLE DO BEGIN
|
||||||
DECLARE ÐÅÒÅÍ1 CHAR(10);
|
DECLARE ÐÅÒÅÍ1 CHAR(10);
|
||||||
SELECT
|
SELECT
|
||||||
COLLATION(ÐÅÒÅÍ1) AS c1,
|
COLLATION(ÐÅÒÅÍ1) AS c1,
|
||||||
@ -2371,7 +2371,7 @@ END koi8r koi8r_general_ci utf8_unicode_ci
|
|||||||
|
|
||||||
SHOW CREATE EVENT ev2|
|
SHOW CREATE EVENT ev2|
|
||||||
Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
|
Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
|
||||||
ev2 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev2` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
|
ev2 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev2` ON SCHEDULE AT '1970-01-02 00:00:00' ON COMPLETION PRESERVE DISABLE DO BEGIN
|
||||||
DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
|
DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
|
||||||
SELECT
|
SELECT
|
||||||
COLLATION(ÐÅÒÅÍ1) AS c1,
|
COLLATION(ÐÅÒÅÍ1) AS c1,
|
||||||
@ -2384,7 +2384,7 @@ END koi8r koi8r_general_ci utf8_unicode_ci
|
|||||||
|
|
||||||
SHOW CREATE EVENT mysqltest2.ev3|
|
SHOW CREATE EVENT mysqltest2.ev3|
|
||||||
Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
|
Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
|
||||||
ev3 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev3` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
|
ev3 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev3` ON SCHEDULE AT '1970-01-02 00:00:00' ON COMPLETION PRESERVE DISABLE DO BEGIN
|
||||||
DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
|
DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
|
||||||
SELECT
|
SELECT
|
||||||
COLLATION(ÐÅÒÅÍ1) AS c1,
|
COLLATION(ÐÅÒÅÍ1) AS c1,
|
||||||
@ -2397,7 +2397,7 @@ END koi8r koi8r_general_ci utf8_unicode_ci
|
|||||||
|
|
||||||
SHOW CREATE EVENT mysqltest2.ev3|
|
SHOW CREATE EVENT mysqltest2.ev3|
|
||||||
Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
|
Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
|
||||||
ev3 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev3` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
|
ev3 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev3` ON SCHEDULE AT '1970-01-02 00:00:00' ON COMPLETION PRESERVE DISABLE DO BEGIN
|
||||||
DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
|
DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
|
||||||
SELECT
|
SELECT
|
||||||
COLLATION(ÐÅÒÅÍ1) AS c1,
|
COLLATION(ÐÅÒÅÍ1) AS c1,
|
||||||
@ -2411,11 +2411,11 @@ END koi8r koi8r_general_ci utf8_unicode_ci
|
|||||||
|
|
||||||
SHOW EVENTS LIKE 'ev1'|
|
SHOW EVENTS LIKE 'ev1'|
|
||||||
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
|
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
|
||||||
mysqltest1 ev1 root@localhost SYSTEM ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED 1 koi8r koi8r_general_ci utf8_unicode_ci
|
mysqltest1 ev1 root@localhost SYSTEM ONE TIME 1970-01-02 00:00:00 NULL NULL NULL NULL DISABLED 1 koi8r koi8r_general_ci utf8_unicode_ci
|
||||||
|
|
||||||
SHOW EVENTS LIKE 'ev2'|
|
SHOW EVENTS LIKE 'ev2'|
|
||||||
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
|
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
|
||||||
mysqltest1 ev2 root@localhost SYSTEM ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED 1 koi8r koi8r_general_ci utf8_unicode_ci
|
mysqltest1 ev2 root@localhost SYSTEM ONE TIME 1970-01-02 00:00:00 NULL NULL NULL NULL DISABLED 1 koi8r koi8r_general_ci utf8_unicode_ci
|
||||||
|
|
||||||
SHOW EVENTS LIKE 'ev3'|
|
SHOW EVENTS LIKE 'ev3'|
|
||||||
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
|
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
|
||||||
@ -2435,7 +2435,7 @@ COLLATION( '
|
|||||||
COLLATION( 'ÔÅËÓÔ') AS c4,
|
COLLATION( 'ÔÅËÓÔ') AS c4,
|
||||||
@@collation_connection AS c5,
|
@@collation_connection AS c5,
|
||||||
@@character_set_client AS c6;
|
@@character_set_client AS c6;
|
||||||
END ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED NOT PRESERVE CREATED LAST_ALTERED NULL 1 koi8r koi8r_general_ci utf8_unicode_ci
|
END ONE TIME 1970-01-02 00:00:00 NULL NULL NULL NULL DISABLED PRESERVE CREATED LAST_ALTERED NULL 1 koi8r koi8r_general_ci utf8_unicode_ci
|
||||||
|
|
||||||
SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev2'|
|
SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev2'|
|
||||||
EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
|
EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
|
||||||
@ -2448,7 +2448,7 @@ COLLATION( '
|
|||||||
COLLATION( 'ÔÅËÓÔ') AS c4,
|
COLLATION( 'ÔÅËÓÔ') AS c4,
|
||||||
@@collation_connection AS c5,
|
@@collation_connection AS c5,
|
||||||
@@character_set_client AS c6;
|
@@character_set_client AS c6;
|
||||||
END ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED NOT PRESERVE CREATED LAST_ALTERED NULL 1 koi8r koi8r_general_ci utf8_unicode_ci
|
END ONE TIME 1970-01-02 00:00:00 NULL NULL NULL NULL DISABLED PRESERVE CREATED LAST_ALTERED NULL 1 koi8r koi8r_general_ci utf8_unicode_ci
|
||||||
|
|
||||||
SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev3'|
|
SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev3'|
|
||||||
EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
|
EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
|
||||||
@ -2461,7 +2461,7 @@ COLLATION( '
|
|||||||
COLLATION( 'ÔÅËÓÔ') AS c4,
|
COLLATION( 'ÔÅËÓÔ') AS c4,
|
||||||
@@collation_connection AS c5,
|
@@collation_connection AS c5,
|
||||||
@@character_set_client AS c6;
|
@@character_set_client AS c6;
|
||||||
END ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED NOT PRESERVE CREATED LAST_ALTERED NULL 1 koi8r koi8r_general_ci utf8_unicode_ci
|
END ONE TIME 1970-01-02 00:00:00 NULL NULL NULL NULL DISABLED PRESERVE CREATED LAST_ALTERED NULL 1 koi8r koi8r_general_ci utf8_unicode_ci
|
||||||
|
|
||||||
SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev4'|
|
SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev4'|
|
||||||
EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
|
EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
|
||||||
@ -2474,7 +2474,7 @@ COLLATION( '
|
|||||||
COLLATION( 'ÔÅËÓÔ') AS c4,
|
COLLATION( 'ÔÅËÓÔ') AS c4,
|
||||||
@@collation_connection AS c5,
|
@@collation_connection AS c5,
|
||||||
@@character_set_client AS c6;
|
@@character_set_client AS c6;
|
||||||
END ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED NOT PRESERVE CREATED LAST_ALTERED NULL 1 koi8r koi8r_general_ci utf8_unicode_ci
|
END ONE TIME 1970-01-02 00:00:00 NULL NULL NULL NULL DISABLED PRESERVE CREATED LAST_ALTERED NULL 1 koi8r koi8r_general_ci utf8_unicode_ci
|
||||||
|
|
||||||
---> Dump of mysqltest1
|
---> Dump of mysqltest1
|
||||||
|
|
||||||
@ -2494,7 +2494,7 @@ ALTER DATABASE `mysqltest1` CHARACTER SET utf8 COLLATE utf8_unicode_ci ;;
|
|||||||
/*!50003 SET sql_mode = '' */ ;;
|
/*!50003 SET sql_mode = '' */ ;;
|
||||||
/*!50003 SET @saved_time_zone = @@time_zone */ ;;
|
/*!50003 SET @saved_time_zone = @@time_zone */ ;;
|
||||||
/*!50003 SET time_zone = 'SYSTEM' */ ;;
|
/*!50003 SET time_zone = 'SYSTEM' */ ;;
|
||||||
/*!50106 CREATE*/ /*!50117 DEFINER=`root`@`localhost`*/ /*!50106 EVENT `ev1` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
|
/*!50106 CREATE*/ /*!50117 DEFINER=`root`@`localhost`*/ /*!50106 EVENT `ev1` ON SCHEDULE AT '1970-01-02 00:00:00' ON COMPLETION PRESERVE DISABLE DO BEGIN
|
||||||
DECLARE ÐÅÒÅÍ1 CHAR(10);
|
DECLARE ÐÅÒÅÍ1 CHAR(10);
|
||||||
SELECT
|
SELECT
|
||||||
COLLATION(ÐÅÒÅÍ1) AS c1,
|
COLLATION(ÐÅÒÅÍ1) AS c1,
|
||||||
@ -2522,7 +2522,7 @@ ALTER DATABASE `mysqltest1` CHARACTER SET utf8 COLLATE utf8_unicode_ci ;;
|
|||||||
/*!50003 SET sql_mode = '' */ ;;
|
/*!50003 SET sql_mode = '' */ ;;
|
||||||
/*!50003 SET @saved_time_zone = @@time_zone */ ;;
|
/*!50003 SET @saved_time_zone = @@time_zone */ ;;
|
||||||
/*!50003 SET time_zone = 'SYSTEM' */ ;;
|
/*!50003 SET time_zone = 'SYSTEM' */ ;;
|
||||||
/*!50106 CREATE*/ /*!50117 DEFINER=`root`@`localhost`*/ /*!50106 EVENT `ev2` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
|
/*!50106 CREATE*/ /*!50117 DEFINER=`root`@`localhost`*/ /*!50106 EVENT `ev2` ON SCHEDULE AT '1970-01-02 00:00:00' ON COMPLETION PRESERVE DISABLE DO BEGIN
|
||||||
DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
|
DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
|
||||||
SELECT
|
SELECT
|
||||||
COLLATION(ÐÅÒÅÍ1) AS c1,
|
COLLATION(ÐÅÒÅÍ1) AS c1,
|
||||||
@ -2561,7 +2561,7 @@ ALTER DATABASE `mysqltest2` CHARACTER SET utf8 COLLATE utf8_unicode_ci ;;
|
|||||||
/*!50003 SET sql_mode = '' */ ;;
|
/*!50003 SET sql_mode = '' */ ;;
|
||||||
/*!50003 SET @saved_time_zone = @@time_zone */ ;;
|
/*!50003 SET @saved_time_zone = @@time_zone */ ;;
|
||||||
/*!50003 SET time_zone = 'SYSTEM' */ ;;
|
/*!50003 SET time_zone = 'SYSTEM' */ ;;
|
||||||
/*!50106 CREATE*/ /*!50117 DEFINER=`root`@`localhost`*/ /*!50106 EVENT `ev3` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
|
/*!50106 CREATE*/ /*!50117 DEFINER=`root`@`localhost`*/ /*!50106 EVENT `ev3` ON SCHEDULE AT '1970-01-02 00:00:00' ON COMPLETION PRESERVE DISABLE DO BEGIN
|
||||||
DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
|
DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
|
||||||
SELECT
|
SELECT
|
||||||
COLLATION(ÐÅÒÅÍ1) AS c1,
|
COLLATION(ÐÅÒÅÍ1) AS c1,
|
||||||
@ -2589,7 +2589,7 @@ ALTER DATABASE `mysqltest2` CHARACTER SET utf8 COLLATE utf8_unicode_ci ;;
|
|||||||
/*!50003 SET sql_mode = '' */ ;;
|
/*!50003 SET sql_mode = '' */ ;;
|
||||||
/*!50003 SET @saved_time_zone = @@time_zone */ ;;
|
/*!50003 SET @saved_time_zone = @@time_zone */ ;;
|
||||||
/*!50003 SET time_zone = 'SYSTEM' */ ;;
|
/*!50003 SET time_zone = 'SYSTEM' */ ;;
|
||||||
/*!50106 CREATE*/ /*!50117 DEFINER=`root`@`localhost`*/ /*!50106 EVENT `ev4` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
|
/*!50106 CREATE*/ /*!50117 DEFINER=`root`@`localhost`*/ /*!50106 EVENT `ev4` ON SCHEDULE AT '1970-01-02 00:00:00' ON COMPLETION PRESERVE DISABLE DO BEGIN
|
||||||
DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
|
DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
|
||||||
SELECT
|
SELECT
|
||||||
COLLATION(ÐÅÒÅÍ1) AS c1,
|
COLLATION(ÐÅÒÅÍ1) AS c1,
|
||||||
@ -2630,7 +2630,7 @@ set names koi8r|
|
|||||||
|
|
||||||
SHOW CREATE EVENT ev1|
|
SHOW CREATE EVENT ev1|
|
||||||
Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
|
Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
|
||||||
ev1 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev1` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
|
ev1 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev1` ON SCHEDULE AT '1970-01-02 00:00:00' ON COMPLETION PRESERVE DISABLE DO BEGIN
|
||||||
DECLARE ÐÅÒÅÍ1 CHAR(10);
|
DECLARE ÐÅÒÅÍ1 CHAR(10);
|
||||||
SELECT
|
SELECT
|
||||||
COLLATION(ÐÅÒÅÍ1) AS c1,
|
COLLATION(ÐÅÒÅÍ1) AS c1,
|
||||||
@ -2643,7 +2643,7 @@ END koi8r koi8r_general_ci utf8_unicode_ci
|
|||||||
|
|
||||||
SHOW CREATE EVENT ev2|
|
SHOW CREATE EVENT ev2|
|
||||||
Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
|
Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
|
||||||
ev2 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev2` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
|
ev2 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev2` ON SCHEDULE AT '1970-01-02 00:00:00' ON COMPLETION PRESERVE DISABLE DO BEGIN
|
||||||
DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
|
DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
|
||||||
SELECT
|
SELECT
|
||||||
COLLATION(ÐÅÒÅÍ1) AS c1,
|
COLLATION(ÐÅÒÅÍ1) AS c1,
|
||||||
@ -2656,7 +2656,7 @@ END koi8r koi8r_general_ci utf8_unicode_ci
|
|||||||
|
|
||||||
SHOW CREATE EVENT mysqltest2.ev3|
|
SHOW CREATE EVENT mysqltest2.ev3|
|
||||||
Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
|
Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
|
||||||
ev3 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev3` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
|
ev3 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev3` ON SCHEDULE AT '1970-01-02 00:00:00' ON COMPLETION PRESERVE DISABLE DO BEGIN
|
||||||
DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
|
DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
|
||||||
SELECT
|
SELECT
|
||||||
COLLATION(ÐÅÒÅÍ1) AS c1,
|
COLLATION(ÐÅÒÅÍ1) AS c1,
|
||||||
@ -2669,7 +2669,7 @@ END koi8r koi8r_general_ci utf8_unicode_ci
|
|||||||
|
|
||||||
SHOW CREATE EVENT mysqltest2.ev3|
|
SHOW CREATE EVENT mysqltest2.ev3|
|
||||||
Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
|
Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
|
||||||
ev3 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev3` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
|
ev3 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev3` ON SCHEDULE AT '1970-01-02 00:00:00' ON COMPLETION PRESERVE DISABLE DO BEGIN
|
||||||
DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
|
DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
|
||||||
SELECT
|
SELECT
|
||||||
COLLATION(ÐÅÒÅÍ1) AS c1,
|
COLLATION(ÐÅÒÅÍ1) AS c1,
|
||||||
@ -2683,11 +2683,11 @@ END koi8r koi8r_general_ci utf8_unicode_ci
|
|||||||
|
|
||||||
SHOW EVENTS LIKE 'ev1'|
|
SHOW EVENTS LIKE 'ev1'|
|
||||||
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
|
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
|
||||||
mysqltest1 ev1 root@localhost SYSTEM ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED 1 koi8r koi8r_general_ci utf8_unicode_ci
|
mysqltest1 ev1 root@localhost SYSTEM ONE TIME 1970-01-02 00:00:00 NULL NULL NULL NULL DISABLED 1 koi8r koi8r_general_ci utf8_unicode_ci
|
||||||
|
|
||||||
SHOW EVENTS LIKE 'ev2'|
|
SHOW EVENTS LIKE 'ev2'|
|
||||||
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
|
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
|
||||||
mysqltest1 ev2 root@localhost SYSTEM ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED 1 koi8r koi8r_general_ci utf8_unicode_ci
|
mysqltest1 ev2 root@localhost SYSTEM ONE TIME 1970-01-02 00:00:00 NULL NULL NULL NULL DISABLED 1 koi8r koi8r_general_ci utf8_unicode_ci
|
||||||
|
|
||||||
SHOW EVENTS LIKE 'ev3'|
|
SHOW EVENTS LIKE 'ev3'|
|
||||||
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
|
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
|
||||||
@ -2707,7 +2707,7 @@ COLLATION( '
|
|||||||
COLLATION( 'ÔÅËÓÔ') AS c4,
|
COLLATION( 'ÔÅËÓÔ') AS c4,
|
||||||
@@collation_connection AS c5,
|
@@collation_connection AS c5,
|
||||||
@@character_set_client AS c6;
|
@@character_set_client AS c6;
|
||||||
END ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED NOT PRESERVE CREATED LAST_ALTERED NULL 1 koi8r koi8r_general_ci utf8_unicode_ci
|
END ONE TIME 1970-01-02 00:00:00 NULL NULL NULL NULL DISABLED PRESERVE CREATED LAST_ALTERED NULL 1 koi8r koi8r_general_ci utf8_unicode_ci
|
||||||
|
|
||||||
SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev2'|
|
SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev2'|
|
||||||
EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
|
EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
|
||||||
@ -2720,7 +2720,7 @@ COLLATION( '
|
|||||||
COLLATION( 'ÔÅËÓÔ') AS c4,
|
COLLATION( 'ÔÅËÓÔ') AS c4,
|
||||||
@@collation_connection AS c5,
|
@@collation_connection AS c5,
|
||||||
@@character_set_client AS c6;
|
@@character_set_client AS c6;
|
||||||
END ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED NOT PRESERVE CREATED LAST_ALTERED NULL 1 koi8r koi8r_general_ci utf8_unicode_ci
|
END ONE TIME 1970-01-02 00:00:00 NULL NULL NULL NULL DISABLED PRESERVE CREATED LAST_ALTERED NULL 1 koi8r koi8r_general_ci utf8_unicode_ci
|
||||||
|
|
||||||
SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev3'|
|
SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev3'|
|
||||||
EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
|
EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
|
||||||
@ -2733,7 +2733,7 @@ COLLATION( '
|
|||||||
COLLATION( 'ÔÅËÓÔ') AS c4,
|
COLLATION( 'ÔÅËÓÔ') AS c4,
|
||||||
@@collation_connection AS c5,
|
@@collation_connection AS c5,
|
||||||
@@character_set_client AS c6;
|
@@character_set_client AS c6;
|
||||||
END ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED NOT PRESERVE CREATED LAST_ALTERED NULL 1 koi8r koi8r_general_ci utf8_unicode_ci
|
END ONE TIME 1970-01-02 00:00:00 NULL NULL NULL NULL DISABLED PRESERVE CREATED LAST_ALTERED NULL 1 koi8r koi8r_general_ci utf8_unicode_ci
|
||||||
|
|
||||||
SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev4'|
|
SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev4'|
|
||||||
EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
|
EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
|
||||||
@ -2746,7 +2746,7 @@ COLLATION( '
|
|||||||
COLLATION( 'ÔÅËÓÔ') AS c4,
|
COLLATION( 'ÔÅËÓÔ') AS c4,
|
||||||
@@collation_connection AS c5,
|
@@collation_connection AS c5,
|
||||||
@@character_set_client AS c6;
|
@@character_set_client AS c6;
|
||||||
END ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED NOT PRESERVE CREATED LAST_ALTERED NULL 1 koi8r koi8r_general_ci utf8_unicode_ci
|
END ONE TIME 1970-01-02 00:00:00 NULL NULL NULL NULL DISABLED PRESERVE CREATED LAST_ALTERED NULL 1 koi8r koi8r_general_ci utf8_unicode_ci
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
DDL statements within stored routine.
|
DDL statements within stored routine.
|
||||||
|
@ -802,7 +802,7 @@ use mysqltest1|
|
|||||||
|
|
||||||
# - Event ev1
|
# - Event ev1
|
||||||
|
|
||||||
CREATE EVENT ev1 ON SCHEDULE AT '2030-01-01 00:00:00' DO
|
CREATE EVENT ev1 ON SCHEDULE AT '1970-01-02 00:00:00' ON COMPLETION PRESERVE DISABLE DO
|
||||||
BEGIN
|
BEGIN
|
||||||
DECLARE ÐÅÒÅÍ1 CHAR(10);
|
DECLARE ÐÅÒÅÍ1 CHAR(10);
|
||||||
|
|
||||||
@ -819,7 +819,7 @@ END|
|
|||||||
|
|
||||||
# - Event ev2
|
# - Event ev2
|
||||||
|
|
||||||
CREATE EVENT ev2 ON SCHEDULE AT '2030-01-01 00:00:00' DO
|
CREATE EVENT ev2 ON SCHEDULE AT '1970-01-02 00:00:00' ON COMPLETION PRESERVE DISABLE DO
|
||||||
BEGIN
|
BEGIN
|
||||||
DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
|
DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
|
||||||
|
|
||||||
@ -836,7 +836,7 @@ END|
|
|||||||
|
|
||||||
# - Event ev3
|
# - Event ev3
|
||||||
|
|
||||||
CREATE EVENT mysqltest2.ev3 ON SCHEDULE AT '2030-01-01 00:00:00' DO
|
CREATE EVENT mysqltest2.ev3 ON SCHEDULE AT '1970-01-02 00:00:00' ON COMPLETION PRESERVE DISABLE DO
|
||||||
BEGIN
|
BEGIN
|
||||||
DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
|
DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
|
||||||
|
|
||||||
@ -853,7 +853,7 @@ END|
|
|||||||
|
|
||||||
# - Event ev4
|
# - Event ev4
|
||||||
|
|
||||||
CREATE EVENT mysqltest2.ev4 ON SCHEDULE AT '2030-01-01 00:00:00' DO
|
CREATE EVENT mysqltest2.ev4 ON SCHEDULE AT '1970-01-02 00:00:00' ON COMPLETION PRESERVE DISABLE DO
|
||||||
BEGIN
|
BEGIN
|
||||||
DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
|
DECLARE ÐÅÒÅÍ1 CHAR(10) CHARACTER SET utf8;
|
||||||
|
|
||||||
|
@ -2172,7 +2172,7 @@ CREATE DATABASE mysqltest1 DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_unico
|
|||||||
CREATE DATABASE mysqltest2 DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_unicode_ci|
|
CREATE DATABASE mysqltest2 DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_unicode_ci|
|
||||||
use mysqltest1|
|
use mysqltest1|
|
||||||
|
|
||||||
CREATE EVENT ev1 ON SCHEDULE AT '2030-01-01 00:00:00' DO
|
CREATE EVENT ev1 ON SCHEDULE AT '1970-01-02 00:00:00' ON COMPLETION PRESERVE DISABLE DO
|
||||||
BEGIN
|
BEGIN
|
||||||
DECLARE перем1 CHAR(10);
|
DECLARE перем1 CHAR(10);
|
||||||
SELECT
|
SELECT
|
||||||
@ -2184,7 +2184,7 @@ COLLATION(_koi8r '
|
|||||||
@@character_set_client AS c6;
|
@@character_set_client AS c6;
|
||||||
END|
|
END|
|
||||||
|
|
||||||
CREATE EVENT ev2 ON SCHEDULE AT '2030-01-01 00:00:00' DO
|
CREATE EVENT ev2 ON SCHEDULE AT '1970-01-02 00:00:00' ON COMPLETION PRESERVE DISABLE DO
|
||||||
BEGIN
|
BEGIN
|
||||||
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
|
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
|
||||||
SELECT
|
SELECT
|
||||||
@ -2196,7 +2196,7 @@ COLLATION(_koi8r '
|
|||||||
@@character_set_client AS c6;
|
@@character_set_client AS c6;
|
||||||
END|
|
END|
|
||||||
|
|
||||||
CREATE EVENT mysqltest2.ev3 ON SCHEDULE AT '2030-01-01 00:00:00' DO
|
CREATE EVENT mysqltest2.ev3 ON SCHEDULE AT '1970-01-02 00:00:00' ON COMPLETION PRESERVE DISABLE DO
|
||||||
BEGIN
|
BEGIN
|
||||||
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
|
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
|
||||||
SELECT
|
SELECT
|
||||||
@ -2208,7 +2208,7 @@ COLLATION(_koi8r '
|
|||||||
@@character_set_client AS c6;
|
@@character_set_client AS c6;
|
||||||
END|
|
END|
|
||||||
|
|
||||||
CREATE EVENT mysqltest2.ev4 ON SCHEDULE AT '2030-01-01 00:00:00' DO
|
CREATE EVENT mysqltest2.ev4 ON SCHEDULE AT '1970-01-02 00:00:00' ON COMPLETION PRESERVE DISABLE DO
|
||||||
BEGIN
|
BEGIN
|
||||||
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
|
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
|
||||||
SELECT
|
SELECT
|
||||||
@ -2224,7 +2224,7 @@ END|
|
|||||||
|
|
||||||
SHOW CREATE EVENT ev1|
|
SHOW CREATE EVENT ev1|
|
||||||
Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
|
Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
|
||||||
ev1 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev1` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
|
ev1 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev1` ON SCHEDULE AT '1970-01-02 00:00:00' ON COMPLETION PRESERVE DISABLE DO BEGIN
|
||||||
DECLARE перем1 CHAR(10);
|
DECLARE перем1 CHAR(10);
|
||||||
SELECT
|
SELECT
|
||||||
COLLATION(перем1) AS c1,
|
COLLATION(перем1) AS c1,
|
||||||
@ -2237,7 +2237,7 @@ END utf8 utf8_general_ci utf8_unicode_ci
|
|||||||
|
|
||||||
SHOW CREATE EVENT ev2|
|
SHOW CREATE EVENT ev2|
|
||||||
Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
|
Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
|
||||||
ev2 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev2` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
|
ev2 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev2` ON SCHEDULE AT '1970-01-02 00:00:00' ON COMPLETION PRESERVE DISABLE DO BEGIN
|
||||||
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
|
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
|
||||||
SELECT
|
SELECT
|
||||||
COLLATION(перем1) AS c1,
|
COLLATION(перем1) AS c1,
|
||||||
@ -2250,7 +2250,7 @@ END utf8 utf8_general_ci utf8_unicode_ci
|
|||||||
|
|
||||||
SHOW CREATE EVENT mysqltest2.ev3|
|
SHOW CREATE EVENT mysqltest2.ev3|
|
||||||
Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
|
Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
|
||||||
ev3 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev3` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
|
ev3 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev3` ON SCHEDULE AT '1970-01-02 00:00:00' ON COMPLETION PRESERVE DISABLE DO BEGIN
|
||||||
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
|
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
|
||||||
SELECT
|
SELECT
|
||||||
COLLATION(перем1) AS c1,
|
COLLATION(перем1) AS c1,
|
||||||
@ -2263,7 +2263,7 @@ END utf8 utf8_general_ci utf8_unicode_ci
|
|||||||
|
|
||||||
SHOW CREATE EVENT mysqltest2.ev3|
|
SHOW CREATE EVENT mysqltest2.ev3|
|
||||||
Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
|
Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
|
||||||
ev3 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev3` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
|
ev3 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev3` ON SCHEDULE AT '1970-01-02 00:00:00' ON COMPLETION PRESERVE DISABLE DO BEGIN
|
||||||
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
|
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
|
||||||
SELECT
|
SELECT
|
||||||
COLLATION(перем1) AS c1,
|
COLLATION(перем1) AS c1,
|
||||||
@ -2277,11 +2277,11 @@ END utf8 utf8_general_ci utf8_unicode_ci
|
|||||||
|
|
||||||
SHOW EVENTS LIKE 'ev1'|
|
SHOW EVENTS LIKE 'ev1'|
|
||||||
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
|
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
|
||||||
mysqltest1 ev1 root@localhost SYSTEM ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED 1 utf8 utf8_general_ci utf8_unicode_ci
|
mysqltest1 ev1 root@localhost SYSTEM ONE TIME 1970-01-02 00:00:00 NULL NULL NULL NULL DISABLED 1 utf8 utf8_general_ci utf8_unicode_ci
|
||||||
|
|
||||||
SHOW EVENTS LIKE 'ev2'|
|
SHOW EVENTS LIKE 'ev2'|
|
||||||
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
|
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
|
||||||
mysqltest1 ev2 root@localhost SYSTEM ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED 1 utf8 utf8_general_ci utf8_unicode_ci
|
mysqltest1 ev2 root@localhost SYSTEM ONE TIME 1970-01-02 00:00:00 NULL NULL NULL NULL DISABLED 1 utf8 utf8_general_ci utf8_unicode_ci
|
||||||
|
|
||||||
SHOW EVENTS LIKE 'ev3'|
|
SHOW EVENTS LIKE 'ev3'|
|
||||||
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
|
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
|
||||||
@ -2301,7 +2301,7 @@ COLLATION( 'текст') AS c3,
|
|||||||
COLLATION( 'текст') AS c4,
|
COLLATION( 'текст') AS c4,
|
||||||
@@collation_connection AS c5,
|
@@collation_connection AS c5,
|
||||||
@@character_set_client AS c6;
|
@@character_set_client AS c6;
|
||||||
END ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED NOT PRESERVE CREATED LAST_ALTERED NULL 1 utf8 utf8_general_ci utf8_unicode_ci
|
END ONE TIME 1970-01-02 00:00:00 NULL NULL NULL NULL DISABLED PRESERVE CREATED LAST_ALTERED NULL 1 utf8 utf8_general_ci utf8_unicode_ci
|
||||||
|
|
||||||
SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev2'|
|
SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev2'|
|
||||||
EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
|
EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
|
||||||
@ -2314,7 +2314,7 @@ COLLATION( 'текст') AS c3,
|
|||||||
COLLATION( 'текст') AS c4,
|
COLLATION( 'текст') AS c4,
|
||||||
@@collation_connection AS c5,
|
@@collation_connection AS c5,
|
||||||
@@character_set_client AS c6;
|
@@character_set_client AS c6;
|
||||||
END ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED NOT PRESERVE CREATED LAST_ALTERED NULL 1 utf8 utf8_general_ci utf8_unicode_ci
|
END ONE TIME 1970-01-02 00:00:00 NULL NULL NULL NULL DISABLED PRESERVE CREATED LAST_ALTERED NULL 1 utf8 utf8_general_ci utf8_unicode_ci
|
||||||
|
|
||||||
SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev3'|
|
SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev3'|
|
||||||
EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
|
EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
|
||||||
@ -2327,7 +2327,7 @@ COLLATION( 'текст') AS c3,
|
|||||||
COLLATION( 'текст') AS c4,
|
COLLATION( 'текст') AS c4,
|
||||||
@@collation_connection AS c5,
|
@@collation_connection AS c5,
|
||||||
@@character_set_client AS c6;
|
@@character_set_client AS c6;
|
||||||
END ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED NOT PRESERVE CREATED LAST_ALTERED NULL 1 utf8 utf8_general_ci utf8_unicode_ci
|
END ONE TIME 1970-01-02 00:00:00 NULL NULL NULL NULL DISABLED PRESERVE CREATED LAST_ALTERED NULL 1 utf8 utf8_general_ci utf8_unicode_ci
|
||||||
|
|
||||||
SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev4'|
|
SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev4'|
|
||||||
EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
|
EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
|
||||||
@ -2340,7 +2340,7 @@ COLLATION( 'текст') AS c3,
|
|||||||
COLLATION( 'текст') AS c4,
|
COLLATION( 'текст') AS c4,
|
||||||
@@collation_connection AS c5,
|
@@collation_connection AS c5,
|
||||||
@@character_set_client AS c6;
|
@@character_set_client AS c6;
|
||||||
END ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED NOT PRESERVE CREATED LAST_ALTERED NULL 1 utf8 utf8_general_ci utf8_unicode_ci
|
END ONE TIME 1970-01-02 00:00:00 NULL NULL NULL NULL DISABLED PRESERVE CREATED LAST_ALTERED NULL 1 utf8 utf8_general_ci utf8_unicode_ci
|
||||||
|
|
||||||
|
|
||||||
ALTER DATABASE mysqltest1 COLLATE cp866_general_ci|
|
ALTER DATABASE mysqltest1 COLLATE cp866_general_ci|
|
||||||
@ -2358,7 +2358,7 @@ set names utf8|
|
|||||||
|
|
||||||
SHOW CREATE EVENT ev1|
|
SHOW CREATE EVENT ev1|
|
||||||
Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
|
Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
|
||||||
ev1 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev1` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
|
ev1 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev1` ON SCHEDULE AT '1970-01-02 00:00:00' ON COMPLETION PRESERVE DISABLE DO BEGIN
|
||||||
DECLARE перем1 CHAR(10);
|
DECLARE перем1 CHAR(10);
|
||||||
SELECT
|
SELECT
|
||||||
COLLATION(перем1) AS c1,
|
COLLATION(перем1) AS c1,
|
||||||
@ -2371,7 +2371,7 @@ END utf8 utf8_general_ci utf8_unicode_ci
|
|||||||
|
|
||||||
SHOW CREATE EVENT ev2|
|
SHOW CREATE EVENT ev2|
|
||||||
Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
|
Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
|
||||||
ev2 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev2` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
|
ev2 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev2` ON SCHEDULE AT '1970-01-02 00:00:00' ON COMPLETION PRESERVE DISABLE DO BEGIN
|
||||||
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
|
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
|
||||||
SELECT
|
SELECT
|
||||||
COLLATION(перем1) AS c1,
|
COLLATION(перем1) AS c1,
|
||||||
@ -2384,7 +2384,7 @@ END utf8 utf8_general_ci utf8_unicode_ci
|
|||||||
|
|
||||||
SHOW CREATE EVENT mysqltest2.ev3|
|
SHOW CREATE EVENT mysqltest2.ev3|
|
||||||
Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
|
Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
|
||||||
ev3 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev3` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
|
ev3 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev3` ON SCHEDULE AT '1970-01-02 00:00:00' ON COMPLETION PRESERVE DISABLE DO BEGIN
|
||||||
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
|
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
|
||||||
SELECT
|
SELECT
|
||||||
COLLATION(перем1) AS c1,
|
COLLATION(перем1) AS c1,
|
||||||
@ -2397,7 +2397,7 @@ END utf8 utf8_general_ci utf8_unicode_ci
|
|||||||
|
|
||||||
SHOW CREATE EVENT mysqltest2.ev3|
|
SHOW CREATE EVENT mysqltest2.ev3|
|
||||||
Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
|
Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
|
||||||
ev3 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev3` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
|
ev3 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev3` ON SCHEDULE AT '1970-01-02 00:00:00' ON COMPLETION PRESERVE DISABLE DO BEGIN
|
||||||
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
|
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
|
||||||
SELECT
|
SELECT
|
||||||
COLLATION(перем1) AS c1,
|
COLLATION(перем1) AS c1,
|
||||||
@ -2411,11 +2411,11 @@ END utf8 utf8_general_ci utf8_unicode_ci
|
|||||||
|
|
||||||
SHOW EVENTS LIKE 'ev1'|
|
SHOW EVENTS LIKE 'ev1'|
|
||||||
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
|
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
|
||||||
mysqltest1 ev1 root@localhost SYSTEM ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED 1 utf8 utf8_general_ci utf8_unicode_ci
|
mysqltest1 ev1 root@localhost SYSTEM ONE TIME 1970-01-02 00:00:00 NULL NULL NULL NULL DISABLED 1 utf8 utf8_general_ci utf8_unicode_ci
|
||||||
|
|
||||||
SHOW EVENTS LIKE 'ev2'|
|
SHOW EVENTS LIKE 'ev2'|
|
||||||
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
|
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
|
||||||
mysqltest1 ev2 root@localhost SYSTEM ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED 1 utf8 utf8_general_ci utf8_unicode_ci
|
mysqltest1 ev2 root@localhost SYSTEM ONE TIME 1970-01-02 00:00:00 NULL NULL NULL NULL DISABLED 1 utf8 utf8_general_ci utf8_unicode_ci
|
||||||
|
|
||||||
SHOW EVENTS LIKE 'ev3'|
|
SHOW EVENTS LIKE 'ev3'|
|
||||||
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
|
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
|
||||||
@ -2435,7 +2435,7 @@ COLLATION( 'текст') AS c3,
|
|||||||
COLLATION( 'текст') AS c4,
|
COLLATION( 'текст') AS c4,
|
||||||
@@collation_connection AS c5,
|
@@collation_connection AS c5,
|
||||||
@@character_set_client AS c6;
|
@@character_set_client AS c6;
|
||||||
END ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED NOT PRESERVE CREATED LAST_ALTERED NULL 1 utf8 utf8_general_ci utf8_unicode_ci
|
END ONE TIME 1970-01-02 00:00:00 NULL NULL NULL NULL DISABLED PRESERVE CREATED LAST_ALTERED NULL 1 utf8 utf8_general_ci utf8_unicode_ci
|
||||||
|
|
||||||
SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev2'|
|
SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev2'|
|
||||||
EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
|
EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
|
||||||
@ -2448,7 +2448,7 @@ COLLATION( 'текст') AS c3,
|
|||||||
COLLATION( 'текст') AS c4,
|
COLLATION( 'текст') AS c4,
|
||||||
@@collation_connection AS c5,
|
@@collation_connection AS c5,
|
||||||
@@character_set_client AS c6;
|
@@character_set_client AS c6;
|
||||||
END ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED NOT PRESERVE CREATED LAST_ALTERED NULL 1 utf8 utf8_general_ci utf8_unicode_ci
|
END ONE TIME 1970-01-02 00:00:00 NULL NULL NULL NULL DISABLED PRESERVE CREATED LAST_ALTERED NULL 1 utf8 utf8_general_ci utf8_unicode_ci
|
||||||
|
|
||||||
SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev3'|
|
SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev3'|
|
||||||
EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
|
EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
|
||||||
@ -2461,7 +2461,7 @@ COLLATION( 'текст') AS c3,
|
|||||||
COLLATION( 'текст') AS c4,
|
COLLATION( 'текст') AS c4,
|
||||||
@@collation_connection AS c5,
|
@@collation_connection AS c5,
|
||||||
@@character_set_client AS c6;
|
@@character_set_client AS c6;
|
||||||
END ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED NOT PRESERVE CREATED LAST_ALTERED NULL 1 utf8 utf8_general_ci utf8_unicode_ci
|
END ONE TIME 1970-01-02 00:00:00 NULL NULL NULL NULL DISABLED PRESERVE CREATED LAST_ALTERED NULL 1 utf8 utf8_general_ci utf8_unicode_ci
|
||||||
|
|
||||||
SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev4'|
|
SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev4'|
|
||||||
EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
|
EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
|
||||||
@ -2474,7 +2474,7 @@ COLLATION( 'текст') AS c3,
|
|||||||
COLLATION( 'текст') AS c4,
|
COLLATION( 'текст') AS c4,
|
||||||
@@collation_connection AS c5,
|
@@collation_connection AS c5,
|
||||||
@@character_set_client AS c6;
|
@@character_set_client AS c6;
|
||||||
END ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED NOT PRESERVE CREATED LAST_ALTERED NULL 1 utf8 utf8_general_ci utf8_unicode_ci
|
END ONE TIME 1970-01-02 00:00:00 NULL NULL NULL NULL DISABLED PRESERVE CREATED LAST_ALTERED NULL 1 utf8 utf8_general_ci utf8_unicode_ci
|
||||||
|
|
||||||
---> Dump of mysqltest1
|
---> Dump of mysqltest1
|
||||||
|
|
||||||
@ -2494,7 +2494,7 @@ ALTER DATABASE `mysqltest1` CHARACTER SET utf8 COLLATE utf8_unicode_ci ;;
|
|||||||
/*!50003 SET sql_mode = '' */ ;;
|
/*!50003 SET sql_mode = '' */ ;;
|
||||||
/*!50003 SET @saved_time_zone = @@time_zone */ ;;
|
/*!50003 SET @saved_time_zone = @@time_zone */ ;;
|
||||||
/*!50003 SET time_zone = 'SYSTEM' */ ;;
|
/*!50003 SET time_zone = 'SYSTEM' */ ;;
|
||||||
/*!50106 CREATE*/ /*!50117 DEFINER=`root`@`localhost`*/ /*!50106 EVENT `ev1` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
|
/*!50106 CREATE*/ /*!50117 DEFINER=`root`@`localhost`*/ /*!50106 EVENT `ev1` ON SCHEDULE AT '1970-01-02 00:00:00' ON COMPLETION PRESERVE DISABLE DO BEGIN
|
||||||
DECLARE перем1 CHAR(10);
|
DECLARE перем1 CHAR(10);
|
||||||
SELECT
|
SELECT
|
||||||
COLLATION(перем1) AS c1,
|
COLLATION(перем1) AS c1,
|
||||||
@ -2522,7 +2522,7 @@ ALTER DATABASE `mysqltest1` CHARACTER SET utf8 COLLATE utf8_unicode_ci ;;
|
|||||||
/*!50003 SET sql_mode = '' */ ;;
|
/*!50003 SET sql_mode = '' */ ;;
|
||||||
/*!50003 SET @saved_time_zone = @@time_zone */ ;;
|
/*!50003 SET @saved_time_zone = @@time_zone */ ;;
|
||||||
/*!50003 SET time_zone = 'SYSTEM' */ ;;
|
/*!50003 SET time_zone = 'SYSTEM' */ ;;
|
||||||
/*!50106 CREATE*/ /*!50117 DEFINER=`root`@`localhost`*/ /*!50106 EVENT `ev2` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
|
/*!50106 CREATE*/ /*!50117 DEFINER=`root`@`localhost`*/ /*!50106 EVENT `ev2` ON SCHEDULE AT '1970-01-02 00:00:00' ON COMPLETION PRESERVE DISABLE DO BEGIN
|
||||||
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
|
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
|
||||||
SELECT
|
SELECT
|
||||||
COLLATION(перем1) AS c1,
|
COLLATION(перем1) AS c1,
|
||||||
@ -2561,7 +2561,7 @@ ALTER DATABASE `mysqltest2` CHARACTER SET utf8 COLLATE utf8_unicode_ci ;;
|
|||||||
/*!50003 SET sql_mode = '' */ ;;
|
/*!50003 SET sql_mode = '' */ ;;
|
||||||
/*!50003 SET @saved_time_zone = @@time_zone */ ;;
|
/*!50003 SET @saved_time_zone = @@time_zone */ ;;
|
||||||
/*!50003 SET time_zone = 'SYSTEM' */ ;;
|
/*!50003 SET time_zone = 'SYSTEM' */ ;;
|
||||||
/*!50106 CREATE*/ /*!50117 DEFINER=`root`@`localhost`*/ /*!50106 EVENT `ev3` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
|
/*!50106 CREATE*/ /*!50117 DEFINER=`root`@`localhost`*/ /*!50106 EVENT `ev3` ON SCHEDULE AT '1970-01-02 00:00:00' ON COMPLETION PRESERVE DISABLE DO BEGIN
|
||||||
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
|
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
|
||||||
SELECT
|
SELECT
|
||||||
COLLATION(перем1) AS c1,
|
COLLATION(перем1) AS c1,
|
||||||
@ -2589,7 +2589,7 @@ ALTER DATABASE `mysqltest2` CHARACTER SET utf8 COLLATE utf8_unicode_ci ;;
|
|||||||
/*!50003 SET sql_mode = '' */ ;;
|
/*!50003 SET sql_mode = '' */ ;;
|
||||||
/*!50003 SET @saved_time_zone = @@time_zone */ ;;
|
/*!50003 SET @saved_time_zone = @@time_zone */ ;;
|
||||||
/*!50003 SET time_zone = 'SYSTEM' */ ;;
|
/*!50003 SET time_zone = 'SYSTEM' */ ;;
|
||||||
/*!50106 CREATE*/ /*!50117 DEFINER=`root`@`localhost`*/ /*!50106 EVENT `ev4` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
|
/*!50106 CREATE*/ /*!50117 DEFINER=`root`@`localhost`*/ /*!50106 EVENT `ev4` ON SCHEDULE AT '1970-01-02 00:00:00' ON COMPLETION PRESERVE DISABLE DO BEGIN
|
||||||
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
|
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
|
||||||
SELECT
|
SELECT
|
||||||
COLLATION(перем1) AS c1,
|
COLLATION(перем1) AS c1,
|
||||||
@ -2630,7 +2630,7 @@ set names utf8|
|
|||||||
|
|
||||||
SHOW CREATE EVENT ev1|
|
SHOW CREATE EVENT ev1|
|
||||||
Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
|
Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
|
||||||
ev1 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev1` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
|
ev1 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev1` ON SCHEDULE AT '1970-01-02 00:00:00' ON COMPLETION PRESERVE DISABLE DO BEGIN
|
||||||
DECLARE перем1 CHAR(10);
|
DECLARE перем1 CHAR(10);
|
||||||
SELECT
|
SELECT
|
||||||
COLLATION(перем1) AS c1,
|
COLLATION(перем1) AS c1,
|
||||||
@ -2643,7 +2643,7 @@ END utf8 utf8_general_ci utf8_unicode_ci
|
|||||||
|
|
||||||
SHOW CREATE EVENT ev2|
|
SHOW CREATE EVENT ev2|
|
||||||
Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
|
Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
|
||||||
ev2 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev2` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
|
ev2 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev2` ON SCHEDULE AT '1970-01-02 00:00:00' ON COMPLETION PRESERVE DISABLE DO BEGIN
|
||||||
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
|
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
|
||||||
SELECT
|
SELECT
|
||||||
COLLATION(перем1) AS c1,
|
COLLATION(перем1) AS c1,
|
||||||
@ -2656,7 +2656,7 @@ END utf8 utf8_general_ci utf8_unicode_ci
|
|||||||
|
|
||||||
SHOW CREATE EVENT mysqltest2.ev3|
|
SHOW CREATE EVENT mysqltest2.ev3|
|
||||||
Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
|
Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
|
||||||
ev3 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev3` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
|
ev3 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev3` ON SCHEDULE AT '1970-01-02 00:00:00' ON COMPLETION PRESERVE DISABLE DO BEGIN
|
||||||
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
|
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
|
||||||
SELECT
|
SELECT
|
||||||
COLLATION(перем1) AS c1,
|
COLLATION(перем1) AS c1,
|
||||||
@ -2669,7 +2669,7 @@ END utf8 utf8_general_ci utf8_unicode_ci
|
|||||||
|
|
||||||
SHOW CREATE EVENT mysqltest2.ev3|
|
SHOW CREATE EVENT mysqltest2.ev3|
|
||||||
Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
|
Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
|
||||||
ev3 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev3` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO BEGIN
|
ev3 SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev3` ON SCHEDULE AT '1970-01-02 00:00:00' ON COMPLETION PRESERVE DISABLE DO BEGIN
|
||||||
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
|
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
|
||||||
SELECT
|
SELECT
|
||||||
COLLATION(перем1) AS c1,
|
COLLATION(перем1) AS c1,
|
||||||
@ -2683,11 +2683,11 @@ END utf8 utf8_general_ci utf8_unicode_ci
|
|||||||
|
|
||||||
SHOW EVENTS LIKE 'ev1'|
|
SHOW EVENTS LIKE 'ev1'|
|
||||||
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
|
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
|
||||||
mysqltest1 ev1 root@localhost SYSTEM ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED 1 utf8 utf8_general_ci utf8_unicode_ci
|
mysqltest1 ev1 root@localhost SYSTEM ONE TIME 1970-01-02 00:00:00 NULL NULL NULL NULL DISABLED 1 utf8 utf8_general_ci utf8_unicode_ci
|
||||||
|
|
||||||
SHOW EVENTS LIKE 'ev2'|
|
SHOW EVENTS LIKE 'ev2'|
|
||||||
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
|
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
|
||||||
mysqltest1 ev2 root@localhost SYSTEM ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED 1 utf8 utf8_general_ci utf8_unicode_ci
|
mysqltest1 ev2 root@localhost SYSTEM ONE TIME 1970-01-02 00:00:00 NULL NULL NULL NULL DISABLED 1 utf8 utf8_general_ci utf8_unicode_ci
|
||||||
|
|
||||||
SHOW EVENTS LIKE 'ev3'|
|
SHOW EVENTS LIKE 'ev3'|
|
||||||
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
|
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
|
||||||
@ -2707,7 +2707,7 @@ COLLATION( 'текст') AS c3,
|
|||||||
COLLATION( 'текст') AS c4,
|
COLLATION( 'текст') AS c4,
|
||||||
@@collation_connection AS c5,
|
@@collation_connection AS c5,
|
||||||
@@character_set_client AS c6;
|
@@character_set_client AS c6;
|
||||||
END ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED NOT PRESERVE CREATED LAST_ALTERED NULL 1 utf8 utf8_general_ci utf8_unicode_ci
|
END ONE TIME 1970-01-02 00:00:00 NULL NULL NULL NULL DISABLED PRESERVE CREATED LAST_ALTERED NULL 1 utf8 utf8_general_ci utf8_unicode_ci
|
||||||
|
|
||||||
SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev2'|
|
SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev2'|
|
||||||
EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
|
EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
|
||||||
@ -2720,7 +2720,7 @@ COLLATION( 'текст') AS c3,
|
|||||||
COLLATION( 'текст') AS c4,
|
COLLATION( 'текст') AS c4,
|
||||||
@@collation_connection AS c5,
|
@@collation_connection AS c5,
|
||||||
@@character_set_client AS c6;
|
@@character_set_client AS c6;
|
||||||
END ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED NOT PRESERVE CREATED LAST_ALTERED NULL 1 utf8 utf8_general_ci utf8_unicode_ci
|
END ONE TIME 1970-01-02 00:00:00 NULL NULL NULL NULL DISABLED PRESERVE CREATED LAST_ALTERED NULL 1 utf8 utf8_general_ci utf8_unicode_ci
|
||||||
|
|
||||||
SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev3'|
|
SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev3'|
|
||||||
EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
|
EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
|
||||||
@ -2733,7 +2733,7 @@ COLLATION( 'текст') AS c3,
|
|||||||
COLLATION( 'текст') AS c4,
|
COLLATION( 'текст') AS c4,
|
||||||
@@collation_connection AS c5,
|
@@collation_connection AS c5,
|
||||||
@@character_set_client AS c6;
|
@@character_set_client AS c6;
|
||||||
END ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED NOT PRESERVE CREATED LAST_ALTERED NULL 1 utf8 utf8_general_ci utf8_unicode_ci
|
END ONE TIME 1970-01-02 00:00:00 NULL NULL NULL NULL DISABLED PRESERVE CREATED LAST_ALTERED NULL 1 utf8 utf8_general_ci utf8_unicode_ci
|
||||||
|
|
||||||
SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev4'|
|
SELECT * FROM INFORMATION_SCHEMA.EVENTS WHERE event_name = 'ev4'|
|
||||||
EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
|
EVENT_CATALOG EVENT_SCHEMA EVENT_NAME DEFINER TIME_ZONE EVENT_BODY EVENT_DEFINITION EVENT_TYPE EXECUTE_AT INTERVAL_VALUE INTERVAL_FIELD SQL_MODE STARTS ENDS STATUS ON_COMPLETION CREATED LAST_ALTERED LAST_EXECUTED EVENT_COMMENT ORIGINATOR CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
|
||||||
@ -2746,7 +2746,7 @@ COLLATION( 'текст') AS c3,
|
|||||||
COLLATION( 'текст') AS c4,
|
COLLATION( 'текст') AS c4,
|
||||||
@@collation_connection AS c5,
|
@@collation_connection AS c5,
|
||||||
@@character_set_client AS c6;
|
@@character_set_client AS c6;
|
||||||
END ONE TIME 2030-01-01 00:00:00 NULL NULL NULL NULL ENABLED NOT PRESERVE CREATED LAST_ALTERED NULL 1 utf8 utf8_general_ci utf8_unicode_ci
|
END ONE TIME 1970-01-02 00:00:00 NULL NULL NULL NULL DISABLED PRESERVE CREATED LAST_ALTERED NULL 1 utf8 utf8_general_ci utf8_unicode_ci
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
DDL statements within stored routine.
|
DDL statements within stored routine.
|
||||||
|
@ -805,7 +805,7 @@ use mysqltest1|
|
|||||||
|
|
||||||
# - Event ev1
|
# - Event ev1
|
||||||
|
|
||||||
CREATE EVENT ev1 ON SCHEDULE AT '2030-01-01 00:00:00' DO
|
CREATE EVENT ev1 ON SCHEDULE AT '1970-01-02 00:00:00' ON COMPLETION PRESERVE DISABLE DO
|
||||||
BEGIN
|
BEGIN
|
||||||
DECLARE перем1 CHAR(10);
|
DECLARE перем1 CHAR(10);
|
||||||
|
|
||||||
@ -822,7 +822,7 @@ END|
|
|||||||
|
|
||||||
# - Event ev2
|
# - Event ev2
|
||||||
|
|
||||||
CREATE EVENT ev2 ON SCHEDULE AT '2030-01-01 00:00:00' DO
|
CREATE EVENT ev2 ON SCHEDULE AT '1970-01-02 00:00:00' ON COMPLETION PRESERVE DISABLE DO
|
||||||
BEGIN
|
BEGIN
|
||||||
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
|
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
|
||||||
|
|
||||||
@ -839,7 +839,7 @@ END|
|
|||||||
|
|
||||||
# - Event ev3
|
# - Event ev3
|
||||||
|
|
||||||
CREATE EVENT mysqltest2.ev3 ON SCHEDULE AT '2030-01-01 00:00:00' DO
|
CREATE EVENT mysqltest2.ev3 ON SCHEDULE AT '1970-01-02 00:00:00' ON COMPLETION PRESERVE DISABLE DO
|
||||||
BEGIN
|
BEGIN
|
||||||
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
|
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
|
||||||
|
|
||||||
@ -856,7 +856,7 @@ END|
|
|||||||
|
|
||||||
# - Event ev4
|
# - Event ev4
|
||||||
|
|
||||||
CREATE EVENT mysqltest2.ev4 ON SCHEDULE AT '2030-01-01 00:00:00' DO
|
CREATE EVENT mysqltest2.ev4 ON SCHEDULE AT '1970-01-02 00:00:00' ON COMPLETION PRESERVE DISABLE DO
|
||||||
BEGIN
|
BEGIN
|
||||||
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
|
DECLARE перем1 CHAR(10) CHARACTER SET utf8;
|
||||||
|
|
||||||
|
@ -55,7 +55,7 @@ SECOND 10 SELECT 1
|
|||||||
SELECT execute_at IS NULL, starts IS NULL, ends IS NULL, comment FROM mysql.event WHERE db='events_test' AND name='event_starts_test';
|
SELECT execute_at IS NULL, starts IS NULL, ends IS NULL, comment FROM mysql.event WHERE db='events_test' AND name='event_starts_test';
|
||||||
execute_at IS NULL starts IS NULL ends IS NULL comment
|
execute_at IS NULL starts IS NULL ends IS NULL comment
|
||||||
1 0 1
|
1 0 1
|
||||||
ALTER EVENT event_starts_test ON SCHEDULE AT '2020-02-02 20:00:02';
|
ALTER EVENT event_starts_test ON SCHEDULE AT '1970-01-02 00:00:00' ON COMPLETION PRESERVE DISABLE;
|
||||||
SELECT execute_at IS NULL, starts IS NULL, ends IS NULL, comment FROM mysql.event WHERE db='events_test' AND name='event_starts_test';
|
SELECT execute_at IS NULL, starts IS NULL, ends IS NULL, comment FROM mysql.event WHERE db='events_test' AND name='event_starts_test';
|
||||||
execute_at IS NULL starts IS NULL ends IS NULL comment
|
execute_at IS NULL starts IS NULL ends IS NULL comment
|
||||||
0 1 1
|
0 1 1
|
||||||
@ -68,7 +68,7 @@ SELECT execute_at IS NULL, starts IS NULL, ends IS NULL, comment FROM mysql.even
|
|||||||
execute_at IS NULL starts IS NULL ends IS NULL comment
|
execute_at IS NULL starts IS NULL ends IS NULL comment
|
||||||
0 1 1
|
0 1 1
|
||||||
DROP EVENT event_starts_test;
|
DROP EVENT event_starts_test;
|
||||||
CREATE EVENT event_starts_test ON SCHEDULE EVERY 20 SECOND STARTS '2020-02-02 20:00:02' ENDS '2022-02-02 20:00:02' DO SELECT 2;
|
CREATE EVENT event_starts_test ON SCHEDULE EVERY 20 SECOND STARTS '1970-01-02 00:00:00' ENDS '1970-01-03 00:00:00' ON COMPLETION PRESERVE DISABLE DO SELECT 2;
|
||||||
SELECT execute_at IS NULL, starts IS NULL, ends IS NULL, comment FROM mysql.event WHERE db='events_test' AND name='event_starts_test';
|
SELECT execute_at IS NULL, starts IS NULL, ends IS NULL, comment FROM mysql.event WHERE db='events_test' AND name='event_starts_test';
|
||||||
execute_at IS NULL starts IS NULL ends IS NULL comment
|
execute_at IS NULL starts IS NULL ends IS NULL comment
|
||||||
1 0 0
|
1 0 0
|
||||||
|
@ -69,7 +69,7 @@ drop event event2;
|
|||||||
CREATE EVENT event_starts_test ON SCHEDULE EVERY 10 SECOND COMMENT "" DO SELECT 1;
|
CREATE EVENT event_starts_test ON SCHEDULE EVERY 10 SECOND COMMENT "" DO SELECT 1;
|
||||||
SELECT interval_field, interval_value, body FROM mysql.event WHERE db='events_test' AND name='event_starts_test';
|
SELECT interval_field, interval_value, body FROM mysql.event WHERE db='events_test' AND name='event_starts_test';
|
||||||
SELECT execute_at IS NULL, starts IS NULL, ends IS NULL, comment FROM mysql.event WHERE db='events_test' AND name='event_starts_test';
|
SELECT execute_at IS NULL, starts IS NULL, ends IS NULL, comment FROM mysql.event WHERE db='events_test' AND name='event_starts_test';
|
||||||
ALTER EVENT event_starts_test ON SCHEDULE AT '2020-02-02 20:00:02';
|
ALTER EVENT event_starts_test ON SCHEDULE AT '1970-01-02 00:00:00' ON COMPLETION PRESERVE DISABLE;
|
||||||
SELECT execute_at IS NULL, starts IS NULL, ends IS NULL, comment FROM mysql.event WHERE db='events_test' AND name='event_starts_test';
|
SELECT execute_at IS NULL, starts IS NULL, ends IS NULL, comment FROM mysql.event WHERE db='events_test' AND name='event_starts_test';
|
||||||
ALTER EVENT event_starts_test COMMENT "non-empty comment";
|
ALTER EVENT event_starts_test COMMENT "non-empty comment";
|
||||||
SELECT execute_at IS NULL, starts IS NULL, ends IS NULL, comment FROM mysql.event WHERE db='events_test' AND name='event_starts_test';
|
SELECT execute_at IS NULL, starts IS NULL, ends IS NULL, comment FROM mysql.event WHERE db='events_test' AND name='event_starts_test';
|
||||||
@ -77,7 +77,7 @@ ALTER EVENT event_starts_test COMMENT "";
|
|||||||
SELECT execute_at IS NULL, starts IS NULL, ends IS NULL, comment FROM mysql.event WHERE db='events_test' AND name='event_starts_test';
|
SELECT execute_at IS NULL, starts IS NULL, ends IS NULL, comment FROM mysql.event WHERE db='events_test' AND name='event_starts_test';
|
||||||
DROP EVENT event_starts_test;
|
DROP EVENT event_starts_test;
|
||||||
|
|
||||||
CREATE EVENT event_starts_test ON SCHEDULE EVERY 20 SECOND STARTS '2020-02-02 20:00:02' ENDS '2022-02-02 20:00:02' DO SELECT 2;
|
CREATE EVENT event_starts_test ON SCHEDULE EVERY 20 SECOND STARTS '1970-01-02 00:00:00' ENDS '1970-01-03 00:00:00' ON COMPLETION PRESERVE DISABLE DO SELECT 2;
|
||||||
SELECT execute_at IS NULL, starts IS NULL, ends IS NULL, comment FROM mysql.event WHERE db='events_test' AND name='event_starts_test';
|
SELECT execute_at IS NULL, starts IS NULL, ends IS NULL, comment FROM mysql.event WHERE db='events_test' AND name='event_starts_test';
|
||||||
ALTER EVENT event_starts_test COMMENT "non-empty comment";
|
ALTER EVENT event_starts_test COMMENT "non-empty comment";
|
||||||
SELECT execute_at IS NULL, starts IS NULL, ends IS NULL, comment FROM mysql.event WHERE db='events_test' AND name='event_starts_test';
|
SELECT execute_at IS NULL, starts IS NULL, ends IS NULL, comment FROM mysql.event WHERE db='events_test' AND name='event_starts_test';
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Test of refering to old values
|
# Test of referring to old values
|
||||||
#
|
#
|
||||||
|
|
||||||
--disable_warnings
|
--disable_warnings
|
||||||
|
@ -626,3 +626,7 @@ count(*)
|
|||||||
0
|
0
|
||||||
truncate table t1;
|
truncate table t1;
|
||||||
drop table t1;
|
drop table t1;
|
||||||
|
#
|
||||||
|
# MDEV-15538 '-N' Produce html output wrong
|
||||||
|
#
|
||||||
|
<TABLE BORDER=1><TR><TD>1</TD></TR></TABLE>
|
@ -702,3 +702,9 @@ select count(*) from t1; truncate table t1;
|
|||||||
--exec $MYSQL --disable-local-infile -e "/*q*/$ldli"
|
--exec $MYSQL --disable-local-infile -e "/*q*/$ldli"
|
||||||
select count(*) from t1; truncate table t1;
|
select count(*) from t1; truncate table t1;
|
||||||
drop table t1;
|
drop table t1;
|
||||||
|
|
||||||
|
|
||||||
|
--echo #
|
||||||
|
--echo # MDEV-15538 '-N' Produce html output wrong
|
||||||
|
--echo #
|
||||||
|
--exec $MYSQL -NHe "select 1 as a"
|
||||||
|
@ -1873,5 +1873,5 @@ v CHAR(4) AS (c) VIRTUAL
|
|||||||
) WITH SYSTEM VERSIONING PARTITION BY HASH(pk);
|
) WITH SYSTEM VERSIONING PARTITION BY HASH(pk);
|
||||||
INSERT INTO t1 (pk,c) VALUES (1,'foo'),(2,'bar');
|
INSERT INTO t1 (pk,c) VALUES (1,'foo'),(2,'bar');
|
||||||
UPDATE t1 SET v = 'qux' WHERE pk = 2;
|
UPDATE t1 SET v = 'qux' WHERE pk = 2;
|
||||||
ERROR HY000: The value specified for generated column 'v' in table 't1' ignored
|
ERROR HY000: The value specified for generated column 'v' in table 't1' has been ignored
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
|
@ -1434,7 +1434,7 @@ CREATE TABLE t1(c1 CHAR(10));
|
|||||||
CREATE TRIGGER t1_bi BEFORE INSERT ON t1
|
CREATE TRIGGER t1_bi BEFORE INSERT ON t1
|
||||||
FOR EACH ROW
|
FOR EACH ROW
|
||||||
SET NEW.c1 = 'ÔÅÓÔ';
|
SET NEW.c1 = 'ÔÅÓÔ';
|
||||||
CREATE EVENT ev1 ON SCHEDULE AT '2030-01-01 00:00:00' DO SELECT 'ÔÅÓÔ' AS test;
|
CREATE EVENT ev1 ON SCHEDULE AT '1970-01-02 00:00:00' ON COMPLETION PRESERVE DISABLE DO SELECT 'ÔÅÓÔ' AS test;
|
||||||
set names utf8;
|
set names utf8;
|
||||||
SHOW CREATE VIEW v1;
|
SHOW CREATE VIEW v1;
|
||||||
View Create View character_set_client collation_connection
|
View Create View character_set_client collation_connection
|
||||||
@ -1454,7 +1454,7 @@ FOR EACH ROW
|
|||||||
SET NEW.c1 = 'теÑ<C2B5>Ñ‚' koi8r koi8r_general_ci latin1_swedish_ci #
|
SET NEW.c1 = 'теÑ<C2B5>Ñ‚' koi8r koi8r_general_ci latin1_swedish_ci #
|
||||||
SHOW CREATE EVENT ev1;
|
SHOW CREATE EVENT ev1;
|
||||||
Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
|
Event sql_mode time_zone Create Event character_set_client collation_connection Database Collation
|
||||||
ev1 STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev1` ON SCHEDULE AT '2030-01-01 00:00:00' ON COMPLETION NOT PRESERVE ENABLE DO SELECT 'теÑ<C2B5>Ñ‚' AS test koi8r koi8r_general_ci latin1_swedish_ci
|
ev1 STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION SYSTEM CREATE DEFINER=`root`@`localhost` EVENT `ev1` ON SCHEDULE AT '1970-01-02 00:00:00' ON COMPLETION PRESERVE DISABLE DO SELECT 'теÑ<C2B5>Ñ‚' AS test koi8r koi8r_general_ci latin1_swedish_ci
|
||||||
DROP VIEW v1;
|
DROP VIEW v1;
|
||||||
DROP PROCEDURE p1;
|
DROP PROCEDURE p1;
|
||||||
DROP FUNCTION f1;
|
DROP FUNCTION f1;
|
||||||
|
@ -1209,7 +1209,7 @@ CREATE TRIGGER t1_bi BEFORE INSERT ON t1
|
|||||||
FOR EACH ROW
|
FOR EACH ROW
|
||||||
SET NEW.c1 = 'ÔÅÓÔ';
|
SET NEW.c1 = 'ÔÅÓÔ';
|
||||||
|
|
||||||
CREATE EVENT ev1 ON SCHEDULE AT '2030-01-01 00:00:00' DO SELECT 'ÔĹÓÔ' AS test;
|
CREATE EVENT ev1 ON SCHEDULE AT '1970-01-02 00:00:00' ON COMPLETION PRESERVE DISABLE DO SELECT 'ÔÅÓÔ' AS test;
|
||||||
|
|
||||||
# Test: switch the character set and show that SHOW CREATE output is
|
# Test: switch the character set and show that SHOW CREATE output is
|
||||||
# automatically converted to the new character_set_client.
|
# automatically converted to the new character_set_client.
|
||||||
|
@ -628,6 +628,64 @@ NULL
|
|||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
set use_stat_tables=@save_use_stat_tables;
|
set use_stat_tables=@save_use_stat_tables;
|
||||||
#
|
#
|
||||||
|
# MDEV-18899: Server crashes in Field::set_warning_truncated_wrong_value
|
||||||
|
#
|
||||||
|
set names utf8;
|
||||||
|
set @save_optimizer_use_condition_selectivity=@@optimizer_use_condition_selectivity;
|
||||||
|
set optimizer_use_condition_selectivity=4;
|
||||||
|
set use_stat_tables=preferably;
|
||||||
|
set @save_histogram_size= @@histogram_size;
|
||||||
|
set histogram_size=255;
|
||||||
|
create table t1 ( a varchar(255) character set utf8);
|
||||||
|
insert into t1 values (REPEAT('ӥ',255)), (REPEAT('ç',255));
|
||||||
|
analyze table t1;
|
||||||
|
Table Op Msg_type Msg_text
|
||||||
|
test.t1 analyze status Engine-independent statistics collected
|
||||||
|
test.t1 analyze status OK
|
||||||
|
select HEX(RIGHT(min_value, 1)), length(min_value) from mysql.column_stats where db_name='test' and table_name='t1';
|
||||||
|
HEX(RIGHT(min_value, 1)) length(min_value)
|
||||||
|
A7 254
|
||||||
|
select HEX(RIGHT(max_value, 1)), length(max_value) from mysql.column_stats where db_name='test' and table_name='t1';
|
||||||
|
HEX(RIGHT(max_value, 1)) length(max_value)
|
||||||
|
A5 254
|
||||||
|
analyze select * from t1 where a >= 'ӥ';
|
||||||
|
id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
|
||||||
|
1 SIMPLE t1 ALL NULL NULL NULL NULL 2 2.00 50.00 50.00 Using where
|
||||||
|
set @save_sql_mode= @@sql_mode;
|
||||||
|
set sql_mode='ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION';
|
||||||
|
update mysql.column_stats set min_value= REPEAT('ӥ',255) where db_name='test' and table_name='t1';
|
||||||
|
Warnings:
|
||||||
|
Warning 1265 Data truncated for column 'min_value' at row 1
|
||||||
|
select HEX(RIGHT(min_value, 1)), length(min_value) from mysql.column_stats where db_name='test' and table_name='t1';
|
||||||
|
HEX(RIGHT(min_value, 1)) length(min_value)
|
||||||
|
D3 255
|
||||||
|
analyze select * from t1 where a >= 'ӥ';
|
||||||
|
id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
|
||||||
|
1 SIMPLE t1 ALL NULL NULL NULL NULL 2 2.00 50.00 50.00 Using where
|
||||||
|
set names latin1;
|
||||||
|
drop table t1;
|
||||||
|
CREATE TABLE t1 (col1 date);
|
||||||
|
INSERT INTO t1 VALUES('2004-01-01'),('2004-02-29');
|
||||||
|
INSERT INTO t1 VALUES('0000-10-31');
|
||||||
|
analyze table t1;
|
||||||
|
Table Op Msg_type Msg_text
|
||||||
|
test.t1 analyze status Engine-independent statistics collected
|
||||||
|
test.t1 analyze status OK
|
||||||
|
update mysql.column_stats set min_value='2004-0-31123' where db_name='test' and table_name='t1';
|
||||||
|
select min_value from mysql.column_stats where db_name='test' and table_name='t1';
|
||||||
|
min_value
|
||||||
|
2004-0-31123
|
||||||
|
select * from t1;
|
||||||
|
col1
|
||||||
|
2004-01-01
|
||||||
|
2004-02-29
|
||||||
|
0000-10-31
|
||||||
|
drop table t1;
|
||||||
|
set @@sql_mode= @save_sql_mode;
|
||||||
|
set use_stat_tables=@save_use_stat_tables;
|
||||||
|
set @@histogram_size= @save_histogram_size;
|
||||||
|
set @@optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity;
|
||||||
|
#
|
||||||
# MDEV-17255: New optimizer defaults and ANALYZE TABLE
|
# MDEV-17255: New optimizer defaults and ANALYZE TABLE
|
||||||
#
|
#
|
||||||
create table t1 (a int, b int);
|
create table t1 (a int, b int);
|
||||||
@ -683,4 +741,3 @@ id select_type table type possible_keys key key_len ref rows r_rows filtered r_f
|
|||||||
1 SIMPLE t1 ALL NULL NULL NULL NULL 10 10.00 2.78 10.00 Using where
|
1 SIMPLE t1 ALL NULL NULL NULL NULL 10 10.00 2.78 10.00 Using where
|
||||||
drop table t1;
|
drop table t1;
|
||||||
set histogram_size=@tmp_stt_hs, histogram_type=@tmp_stt_ht;
|
set histogram_size=@tmp_stt_hs, histogram_type=@tmp_stt_ht;
|
||||||
set use_stat_tables=@save_use_stat_tables;
|
|
||||||
|
@ -404,6 +404,49 @@ SELECT MAX(pk) FROM t1;
|
|||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
set use_stat_tables=@save_use_stat_tables;
|
set use_stat_tables=@save_use_stat_tables;
|
||||||
|
|
||||||
|
|
||||||
|
--echo #
|
||||||
|
--echo # MDEV-18899: Server crashes in Field::set_warning_truncated_wrong_value
|
||||||
|
--echo #
|
||||||
|
|
||||||
|
set names utf8;
|
||||||
|
set @save_optimizer_use_condition_selectivity=@@optimizer_use_condition_selectivity;
|
||||||
|
set optimizer_use_condition_selectivity=4;
|
||||||
|
set use_stat_tables=preferably;
|
||||||
|
set @save_histogram_size= @@histogram_size;
|
||||||
|
set histogram_size=255;
|
||||||
|
|
||||||
|
create table t1 ( a varchar(255) character set utf8);
|
||||||
|
insert into t1 values (REPEAT('ӥ',255)), (REPEAT('ç',255));
|
||||||
|
|
||||||
|
analyze table t1;
|
||||||
|
select HEX(RIGHT(min_value, 1)), length(min_value) from mysql.column_stats where db_name='test' and table_name='t1';
|
||||||
|
select HEX(RIGHT(max_value, 1)), length(max_value) from mysql.column_stats where db_name='test' and table_name='t1';
|
||||||
|
analyze select * from t1 where a >= 'ӥ';
|
||||||
|
|
||||||
|
set @save_sql_mode= @@sql_mode;
|
||||||
|
set sql_mode='ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION';
|
||||||
|
update mysql.column_stats set min_value= REPEAT('ӥ',255) where db_name='test' and table_name='t1';
|
||||||
|
select HEX(RIGHT(min_value, 1)), length(min_value) from mysql.column_stats where db_name='test' and table_name='t1';
|
||||||
|
analyze select * from t1 where a >= 'ӥ';
|
||||||
|
|
||||||
|
set names latin1;
|
||||||
|
drop table t1;
|
||||||
|
|
||||||
|
CREATE TABLE t1 (col1 date);
|
||||||
|
INSERT INTO t1 VALUES('2004-01-01'),('2004-02-29');
|
||||||
|
INSERT INTO t1 VALUES('0000-10-31');
|
||||||
|
analyze table t1;
|
||||||
|
update mysql.column_stats set min_value='2004-0-31123' where db_name='test' and table_name='t1';
|
||||||
|
select min_value from mysql.column_stats where db_name='test' and table_name='t1';
|
||||||
|
select * from t1;
|
||||||
|
drop table t1;
|
||||||
|
|
||||||
|
set @@sql_mode= @save_sql_mode;
|
||||||
|
set use_stat_tables=@save_use_stat_tables;
|
||||||
|
set @@histogram_size= @save_histogram_size;
|
||||||
|
set @@optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity;
|
||||||
|
|
||||||
--echo #
|
--echo #
|
||||||
--echo # MDEV-17255: New optimizer defaults and ANALYZE TABLE
|
--echo # MDEV-17255: New optimizer defaults and ANALYZE TABLE
|
||||||
--echo #
|
--echo #
|
||||||
@ -446,4 +489,3 @@ analyze
|
|||||||
select * from t1 where a=1 and b=3;
|
select * from t1 where a=1 and b=3;
|
||||||
drop table t1;
|
drop table t1;
|
||||||
set histogram_size=@tmp_stt_hs, histogram_type=@tmp_stt_ht;
|
set histogram_size=@tmp_stt_hs, histogram_type=@tmp_stt_ht;
|
||||||
set use_stat_tables=@save_use_stat_tables;
|
|
||||||
|
@ -660,6 +660,64 @@ NULL
|
|||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
set use_stat_tables=@save_use_stat_tables;
|
set use_stat_tables=@save_use_stat_tables;
|
||||||
#
|
#
|
||||||
|
# MDEV-18899: Server crashes in Field::set_warning_truncated_wrong_value
|
||||||
|
#
|
||||||
|
set names utf8;
|
||||||
|
set @save_optimizer_use_condition_selectivity=@@optimizer_use_condition_selectivity;
|
||||||
|
set optimizer_use_condition_selectivity=4;
|
||||||
|
set use_stat_tables=preferably;
|
||||||
|
set @save_histogram_size= @@histogram_size;
|
||||||
|
set histogram_size=255;
|
||||||
|
create table t1 ( a varchar(255) character set utf8);
|
||||||
|
insert into t1 values (REPEAT('ӥ',255)), (REPEAT('ç',255));
|
||||||
|
analyze table t1;
|
||||||
|
Table Op Msg_type Msg_text
|
||||||
|
test.t1 analyze status Engine-independent statistics collected
|
||||||
|
test.t1 analyze status OK
|
||||||
|
select HEX(RIGHT(min_value, 1)), length(min_value) from mysql.column_stats where db_name='test' and table_name='t1';
|
||||||
|
HEX(RIGHT(min_value, 1)) length(min_value)
|
||||||
|
A7 254
|
||||||
|
select HEX(RIGHT(max_value, 1)), length(max_value) from mysql.column_stats where db_name='test' and table_name='t1';
|
||||||
|
HEX(RIGHT(max_value, 1)) length(max_value)
|
||||||
|
A5 254
|
||||||
|
analyze select * from t1 where a >= 'ӥ';
|
||||||
|
id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
|
||||||
|
1 SIMPLE t1 ALL NULL NULL NULL NULL 2 2.00 50.00 50.00 Using where
|
||||||
|
set @save_sql_mode= @@sql_mode;
|
||||||
|
set sql_mode='ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION';
|
||||||
|
update mysql.column_stats set min_value= REPEAT('ӥ',255) where db_name='test' and table_name='t1';
|
||||||
|
Warnings:
|
||||||
|
Warning 1265 Data truncated for column 'min_value' at row 1
|
||||||
|
select HEX(RIGHT(min_value, 1)), length(min_value) from mysql.column_stats where db_name='test' and table_name='t1';
|
||||||
|
HEX(RIGHT(min_value, 1)) length(min_value)
|
||||||
|
D3 255
|
||||||
|
analyze select * from t1 where a >= 'ӥ';
|
||||||
|
id select_type table type possible_keys key key_len ref rows r_rows filtered r_filtered Extra
|
||||||
|
1 SIMPLE t1 ALL NULL NULL NULL NULL 2 2.00 50.00 50.00 Using where
|
||||||
|
set names latin1;
|
||||||
|
drop table t1;
|
||||||
|
CREATE TABLE t1 (col1 date);
|
||||||
|
INSERT INTO t1 VALUES('2004-01-01'),('2004-02-29');
|
||||||
|
INSERT INTO t1 VALUES('0000-10-31');
|
||||||
|
analyze table t1;
|
||||||
|
Table Op Msg_type Msg_text
|
||||||
|
test.t1 analyze status Engine-independent statistics collected
|
||||||
|
test.t1 analyze status OK
|
||||||
|
update mysql.column_stats set min_value='2004-0-31123' where db_name='test' and table_name='t1';
|
||||||
|
select min_value from mysql.column_stats where db_name='test' and table_name='t1';
|
||||||
|
min_value
|
||||||
|
2004-0-31123
|
||||||
|
select * from t1;
|
||||||
|
col1
|
||||||
|
2004-01-01
|
||||||
|
2004-02-29
|
||||||
|
0000-10-31
|
||||||
|
drop table t1;
|
||||||
|
set @@sql_mode= @save_sql_mode;
|
||||||
|
set use_stat_tables=@save_use_stat_tables;
|
||||||
|
set @@histogram_size= @save_histogram_size;
|
||||||
|
set @@optimizer_use_condition_selectivity=@save_optimizer_use_condition_selectivity;
|
||||||
|
#
|
||||||
# MDEV-17255: New optimizer defaults and ANALYZE TABLE
|
# MDEV-17255: New optimizer defaults and ANALYZE TABLE
|
||||||
#
|
#
|
||||||
create table t1 (a int, b int);
|
create table t1 (a int, b int);
|
||||||
@ -715,7 +773,6 @@ id select_type table type possible_keys key key_len ref rows r_rows filtered r_f
|
|||||||
1 SIMPLE t1 ALL NULL NULL NULL NULL 10 10.00 2.78 10.00 Using where
|
1 SIMPLE t1 ALL NULL NULL NULL NULL 10 10.00 2.78 10.00 Using where
|
||||||
drop table t1;
|
drop table t1;
|
||||||
set histogram_size=@tmp_stt_hs, histogram_type=@tmp_stt_ht;
|
set histogram_size=@tmp_stt_hs, histogram_type=@tmp_stt_ht;
|
||||||
set use_stat_tables=@save_use_stat_tables;
|
|
||||||
set global innodb_stats_persistent= @innodb_stats_persistent_save;
|
set global innodb_stats_persistent= @innodb_stats_persistent_save;
|
||||||
set global innodb_stats_persistent_sample_pages=
|
set global innodb_stats_persistent_sample_pages=
|
||||||
@innodb_stats_persistent_sample_pages_save;
|
@innodb_stats_persistent_sample_pages_save;
|
||||||
|
@ -1081,6 +1081,15 @@ t1 CREATE TABLE `t1` (
|
|||||||
`a` longtext CHARACTER SET utf8 DEFAULT NULL
|
`a` longtext CHARACTER SET utf8 DEFAULT NULL
|
||||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
|
create table t1 (a int);
|
||||||
|
alter table t1 add column b blob, alter column b set default "foo";
|
||||||
|
show create table t1;
|
||||||
|
Table Create Table
|
||||||
|
t1 CREATE TABLE `t1` (
|
||||||
|
`a` int(11) DEFAULT NULL,
|
||||||
|
`b` blob DEFAULT 'foo'
|
||||||
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||||
|
drop table t1;
|
||||||
#
|
#
|
||||||
# End of 10.2 test
|
# End of 10.2 test
|
||||||
#
|
#
|
||||||
|
@ -693,6 +693,11 @@ CREATE TABLE t1 (a TEXT(1431655798) CHARACTER SET utf8);
|
|||||||
SHOW CREATE TABLE t1;
|
SHOW CREATE TABLE t1;
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
|
|
||||||
|
# ALTER SET DEFAULT
|
||||||
|
create table t1 (a int);
|
||||||
|
alter table t1 add column b blob, alter column b set default "foo";
|
||||||
|
show create table t1;
|
||||||
|
drop table t1;
|
||||||
|
|
||||||
--echo #
|
--echo #
|
||||||
--echo # End of 10.2 test
|
--echo # End of 10.2 test
|
||||||
|
17
mysql-test/suite/binlog/r/binlog_innodb_stm.result
Normal file
17
mysql-test/suite/binlog/r/binlog_innodb_stm.result
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
create table categories(
|
||||||
|
cat_id int not null primary key,
|
||||||
|
cat_name varchar(255) not null,
|
||||||
|
cat_description text
|
||||||
|
) engine=innodb;
|
||||||
|
create table products(
|
||||||
|
prd_id int not null auto_increment primary key,
|
||||||
|
prd_name varchar(355) not null,
|
||||||
|
prd_price decimal,
|
||||||
|
cat_id int not null,
|
||||||
|
foreign key fk_cat(cat_id)
|
||||||
|
references categories(cat_id)
|
||||||
|
on update cascade
|
||||||
|
) engine=innodb;
|
||||||
|
insert into categories values (1, 'drinks', 'drinks');
|
||||||
|
update categories set cat_description=2 where cat_id=1;
|
||||||
|
drop table products, categories;
|
File diff suppressed because it is too large
Load Diff
26
mysql-test/suite/binlog/t/binlog_innodb_stm.test
Normal file
26
mysql-test/suite/binlog/t/binlog_innodb_stm.test
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
source include/have_innodb.inc;
|
||||||
|
source include/have_binlog_format_statement.inc;
|
||||||
|
|
||||||
|
#
|
||||||
|
# MDEV-18466 Unsafe to log updates on tables referenced by foreign keys with triggers in statement format
|
||||||
|
#
|
||||||
|
|
||||||
|
create table categories(
|
||||||
|
cat_id int not null primary key,
|
||||||
|
cat_name varchar(255) not null,
|
||||||
|
cat_description text
|
||||||
|
) engine=innodb;
|
||||||
|
|
||||||
|
create table products(
|
||||||
|
prd_id int not null auto_increment primary key,
|
||||||
|
prd_name varchar(355) not null,
|
||||||
|
prd_price decimal,
|
||||||
|
cat_id int not null,
|
||||||
|
foreign key fk_cat(cat_id)
|
||||||
|
references categories(cat_id)
|
||||||
|
on update cascade
|
||||||
|
) engine=innodb;
|
||||||
|
|
||||||
|
insert into categories values (1, 'drinks', 'drinks');
|
||||||
|
update categories set cat_description=2 where cat_id=1;
|
||||||
|
drop table products, categories;
|
@ -10,15 +10,15 @@ set global binlog_checksum=NONE;
|
|||||||
--disable_warnings
|
--disable_warnings
|
||||||
drop table if exists t1;
|
drop table if exists t1;
|
||||||
--enable_warnings
|
--enable_warnings
|
||||||
reset master;
|
|
||||||
|
|
||||||
# We need this for getting fixed timestamps inside of this test.
|
# We need this for getting fixed timestamps inside of this test.
|
||||||
# I use a date in the future to keep a growing timestamp along the
|
# I use a date in the past to keep a growing timestamp along the
|
||||||
# binlog (including the Start_log_event). This test will work
|
# binlog (including the Start_log_event). This test will work
|
||||||
# unchanged everywhere, because mysql-test-run has fixed TZ, which it
|
# unchanged everywhere, because mysql-test-run has fixed TZ, which it
|
||||||
# exports (so mysqlbinlog has same fixed TZ).
|
# exports (so mysqlbinlog has same fixed TZ).
|
||||||
set @a=UNIX_TIMESTAMP("2020-01-21 15:32:22");
|
set @a=UNIX_TIMESTAMP("1970-01-21 15:32:22");
|
||||||
set timestamp=@a;
|
set timestamp=@a;
|
||||||
|
reset master;
|
||||||
create table t1 (a int auto_increment not null primary key, b char(3));
|
create table t1 (a int auto_increment not null primary key, b char(3));
|
||||||
insert into t1 values(null, "a");
|
insert into t1 values(null, "a");
|
||||||
insert into t1 values(null, "b");
|
insert into t1 values(null, "b");
|
||||||
@ -72,11 +72,11 @@ let $stop_pos= `select @binlog_start_pos + 857`;
|
|||||||
--disable_query_log
|
--disable_query_log
|
||||||
select "--- start-datetime --" as "";
|
select "--- start-datetime --" as "";
|
||||||
--enable_query_log
|
--enable_query_log
|
||||||
--exec $MYSQL_BINLOG --short-form "--start-datetime=2020-01-21 15:32:24" $MYSQLD_DATADIR/master-bin.000001
|
--exec $MYSQL_BINLOG --short-form "--start-datetime=1970-01-21 15:32:24" $MYSQLD_DATADIR/master-bin.000001
|
||||||
--disable_query_log
|
--disable_query_log
|
||||||
select "--- stop-datetime --" as "";
|
select "--- stop-datetime --" as "";
|
||||||
--enable_query_log
|
--enable_query_log
|
||||||
--exec $MYSQL_BINLOG --short-form "--stop-datetime=2020-01-21 15:32:24" $MYSQLD_DATADIR/master-bin.000001
|
--exec $MYSQL_BINLOG --short-form "--stop-datetime=1970-01-21 15:32:24" $MYSQLD_DATADIR/master-bin.000001
|
||||||
|
|
||||||
--disable_query_log
|
--disable_query_log
|
||||||
select "--- Local with 2 binlogs on command line --" as "";
|
select "--- Local with 2 binlogs on command line --" as "";
|
||||||
@ -104,11 +104,11 @@ let $stop_pos= `select @binlog_start_pos + 134`;
|
|||||||
--disable_query_log
|
--disable_query_log
|
||||||
select "--- start-datetime --" as "";
|
select "--- start-datetime --" as "";
|
||||||
--enable_query_log
|
--enable_query_log
|
||||||
--exec $MYSQL_BINLOG --short-form "--start-datetime=2020-01-21 15:32:24" $MYSQLD_DATADIR/master-bin.000001 $MYSQLD_DATADIR/master-bin.000002
|
--exec $MYSQL_BINLOG --short-form "--start-datetime=1970-01-21 15:32:24" $MYSQLD_DATADIR/master-bin.000001 $MYSQLD_DATADIR/master-bin.000002
|
||||||
--disable_query_log
|
--disable_query_log
|
||||||
select "--- stop-datetime --" as "";
|
select "--- stop-datetime --" as "";
|
||||||
--enable_query_log
|
--enable_query_log
|
||||||
--exec $MYSQL_BINLOG --short-form "--stop-datetime=2020-01-21 15:32:24" $MYSQLD_DATADIR/master-bin.000001 $MYSQLD_DATADIR/master-bin.000002
|
--exec $MYSQL_BINLOG --short-form "--stop-datetime=1970-01-21 15:32:24" $MYSQLD_DATADIR/master-bin.000001 $MYSQLD_DATADIR/master-bin.000002
|
||||||
|
|
||||||
--disable_query_log
|
--disable_query_log
|
||||||
select "--- Remote --" as "";
|
select "--- Remote --" as "";
|
||||||
@ -139,11 +139,11 @@ let $stop_pos= `select @binlog_start_pos + 812`;
|
|||||||
--disable_query_log
|
--disable_query_log
|
||||||
select "--- start-datetime --" as "";
|
select "--- start-datetime --" as "";
|
||||||
--enable_query_log
|
--enable_query_log
|
||||||
--exec $MYSQL_BINLOG --short-form "--start-datetime=2020-01-21 15:32:24" --read-from-remote-server --user=root --host=127.0.0.1 --port=$MASTER_MYPORT master-bin.000001
|
--exec $MYSQL_BINLOG --short-form "--start-datetime=1970-01-21 15:32:24" --read-from-remote-server --user=root --host=127.0.0.1 --port=$MASTER_MYPORT master-bin.000001
|
||||||
--disable_query_log
|
--disable_query_log
|
||||||
select "--- stop-datetime --" as "";
|
select "--- stop-datetime --" as "";
|
||||||
--enable_query_log
|
--enable_query_log
|
||||||
--exec $MYSQL_BINLOG --short-form "--stop-datetime=2020-01-21 15:32:24" --read-from-remote-server --user=root --host=127.0.0.1 --port=$MASTER_MYPORT master-bin.000001
|
--exec $MYSQL_BINLOG --short-form "--stop-datetime=1970-01-21 15:32:24" --read-from-remote-server --user=root --host=127.0.0.1 --port=$MASTER_MYPORT master-bin.000001
|
||||||
|
|
||||||
--disable_query_log
|
--disable_query_log
|
||||||
select "--- Remote with 2 binlogs on command line --" as "";
|
select "--- Remote with 2 binlogs on command line --" as "";
|
||||||
@ -168,11 +168,11 @@ let $stop_pos= `select @binlog_start_pos + 109`;
|
|||||||
--disable_query_log
|
--disable_query_log
|
||||||
select "--- start-datetime --" as "";
|
select "--- start-datetime --" as "";
|
||||||
--enable_query_log
|
--enable_query_log
|
||||||
--exec $MYSQL_BINLOG --short-form "--start-datetime=20200121153224" --read-from-remote-server --user=root --host=127.0.0.1 --port=$MASTER_MYPORT master-bin.000001 master-bin.000002
|
--exec $MYSQL_BINLOG --short-form "--start-datetime=19700121153224" --read-from-remote-server --user=root --host=127.0.0.1 --port=$MASTER_MYPORT master-bin.000001 master-bin.000002
|
||||||
--disable_query_log
|
--disable_query_log
|
||||||
select "--- stop-datetime --" as "";
|
select "--- stop-datetime --" as "";
|
||||||
--enable_query_log
|
--enable_query_log
|
||||||
--exec $MYSQL_BINLOG --short-form "--stop-datetime=2020/01/21 15@32@24" --read-from-remote-server --user=root --host=127.0.0.1 --port=$MASTER_MYPORT master-bin.000001 master-bin.000002
|
--exec $MYSQL_BINLOG --short-form "--stop-datetime=1970/01/21 15@32@24" --read-from-remote-server --user=root --host=127.0.0.1 --port=$MASTER_MYPORT master-bin.000001 master-bin.000002
|
||||||
|
|
||||||
--disable_query_log
|
--disable_query_log
|
||||||
select "--- to-last-log --" as "";
|
select "--- to-last-log --" as "";
|
||||||
|
@ -357,14 +357,14 @@ DROP TABLE t1;
|
|||||||
SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
|
SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
|
||||||
CREATE TABLE t1 (c1 INT, c2 INT AS (c1 * 2)) SELECT 1 AS c1, 5 AS c2;
|
CREATE TABLE t1 (c1 INT, c2 INT AS (c1 * 2)) SELECT 1 AS c1, 5 AS c2;
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1906 The value specified for generated column 'c2' in table 't1' ignored
|
Warning 1906 The value specified for generated column 'c2' in table 't1' has been ignored
|
||||||
CREATE TABLE t2 (a int);
|
CREATE TABLE t2 (a int);
|
||||||
INSERT INTO t2 values(1);
|
INSERT INTO t2 values(1);
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
|
SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
|
||||||
CREATE TABLE t1 (c1 INT, c2 INT AS (c1 * 2)) SELECT 1 AS c1, a AS c2 from t2;
|
CREATE TABLE t1 (c1 INT, c2 INT AS (c1 * 2)) SELECT 1 AS c1, a AS c2 from t2;
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1906 The value specified for generated column 'c2' in table 't1' ignored
|
Warning 1906 The value specified for generated column 'c2' in table 't1' has been ignored
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
CREATE TABLE t1 (c1 INT, c2 INT AS (c1 * 2)) SELECT 1 AS c1, 5;
|
CREATE TABLE t1 (c1 INT, c2 INT AS (c1 * 2)) SELECT 1 AS c1, 5;
|
||||||
SELECT * FROM t1;
|
SELECT * FROM t1;
|
||||||
|
@ -357,14 +357,14 @@ DROP TABLE t1;
|
|||||||
SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
|
SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
|
||||||
CREATE TABLE t1 (c1 INT, c2 INT AS (c1 * 2)) SELECT 1 AS c1, 5 AS c2;
|
CREATE TABLE t1 (c1 INT, c2 INT AS (c1 * 2)) SELECT 1 AS c1, 5 AS c2;
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1906 The value specified for generated column 'c2' in table 't1' ignored
|
Warning 1906 The value specified for generated column 'c2' in table 't1' has been ignored
|
||||||
CREATE TABLE t2 (a int);
|
CREATE TABLE t2 (a int);
|
||||||
INSERT INTO t2 values(1);
|
INSERT INTO t2 values(1);
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
|
SET STATEMENT sql_mode = 'NO_ENGINE_SUBSTITUTION' FOR
|
||||||
CREATE TABLE t1 (c1 INT, c2 INT AS (c1 * 2)) SELECT 1 AS c1, a AS c2 from t2;
|
CREATE TABLE t1 (c1 INT, c2 INT AS (c1 * 2)) SELECT 1 AS c1, a AS c2 from t2;
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1906 The value specified for generated column 'c2' in table 't1' ignored
|
Warning 1906 The value specified for generated column 'c2' in table 't1' has been ignored
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
CREATE TABLE t1 (c1 INT, c2 INT AS (c1 * 2)) SELECT 1 AS c1, 5;
|
CREATE TABLE t1 (c1 INT, c2 INT AS (c1 * 2)) SELECT 1 AS c1, 5;
|
||||||
SELECT * FROM t1;
|
SELECT * FROM t1;
|
||||||
|
@ -25,8 +25,8 @@ a b c
|
|||||||
# INSERT INTO tbl_name VALUES... a non-NULL value is specified against gcols
|
# INSERT INTO tbl_name VALUES... a non-NULL value is specified against gcols
|
||||||
insert ignore into t1 values (1,2,3);
|
insert ignore into t1 values (1,2,3);
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1906 The value specified for generated column 'b' in table 't1' ignored
|
Warning 1906 The value specified for generated column 'b' in table 't1' has been ignored
|
||||||
Warning 1906 The value specified for generated column 'c' in table 't1' ignored
|
Warning 1906 The value specified for generated column 'c' in table 't1' has been ignored
|
||||||
select * from t1;
|
select * from t1;
|
||||||
a b c
|
a b c
|
||||||
1 -1 -1
|
1 -1 -1
|
||||||
@ -65,8 +65,8 @@ a b c
|
|||||||
# against gcols
|
# against gcols
|
||||||
insert ignore into t1 (a,b) values (1,3), (2,4);
|
insert ignore into t1 (a,b) values (1,3), (2,4);
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1906 The value specified for generated column 'b' in table 't1' ignored
|
Warning 1906 The value specified for generated column 'b' in table 't1' has been ignored
|
||||||
Warning 1906 The value specified for generated column 'b' in table 't1' ignored
|
Warning 1906 The value specified for generated column 'b' in table 't1' has been ignored
|
||||||
select * from t1;
|
select * from t1;
|
||||||
a b c
|
a b c
|
||||||
1 -1 -1
|
1 -1 -1
|
||||||
@ -153,7 +153,7 @@ a b c
|
|||||||
2 -2 -2
|
2 -2 -2
|
||||||
update ignore t1 set c=3 where a=2;
|
update ignore t1 set c=3 where a=2;
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1906 The value specified for generated column 'c' in table 't1' ignored
|
Warning 1906 The value specified for generated column 'c' in table 't1' has been ignored
|
||||||
select * from t1 order by a;
|
select * from t1 order by a;
|
||||||
a b c
|
a b c
|
||||||
1 -1 -1
|
1 -1 -1
|
||||||
@ -183,7 +183,7 @@ a b c
|
|||||||
2 -2 -2
|
2 -2 -2
|
||||||
update ignore t1 set c=3 where b=-2;
|
update ignore t1 set c=3 where b=-2;
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1906 The value specified for generated column 'c' in table 't1' ignored
|
Warning 1906 The value specified for generated column 'c' in table 't1' has been ignored
|
||||||
select * from t1 order by a;
|
select * from t1 order by a;
|
||||||
a b c
|
a b c
|
||||||
1 -1 -1
|
1 -1 -1
|
||||||
|
@ -25,8 +25,8 @@ a b c
|
|||||||
# INSERT INTO tbl_name VALUES... a non-NULL value is specified against gcols
|
# INSERT INTO tbl_name VALUES... a non-NULL value is specified against gcols
|
||||||
insert ignore into t1 values (1,2,3);
|
insert ignore into t1 values (1,2,3);
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1906 The value specified for generated column 'b' in table 't1' ignored
|
Warning 1906 The value specified for generated column 'b' in table 't1' has been ignored
|
||||||
Warning 1906 The value specified for generated column 'c' in table 't1' ignored
|
Warning 1906 The value specified for generated column 'c' in table 't1' has been ignored
|
||||||
select * from t1;
|
select * from t1;
|
||||||
a b c
|
a b c
|
||||||
1 -1 -1
|
1 -1 -1
|
||||||
@ -65,8 +65,8 @@ a b c
|
|||||||
# against gcols
|
# against gcols
|
||||||
insert ignore into t1 (a,b) values (1,3), (2,4);
|
insert ignore into t1 (a,b) values (1,3), (2,4);
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1906 The value specified for generated column 'b' in table 't1' ignored
|
Warning 1906 The value specified for generated column 'b' in table 't1' has been ignored
|
||||||
Warning 1906 The value specified for generated column 'b' in table 't1' ignored
|
Warning 1906 The value specified for generated column 'b' in table 't1' has been ignored
|
||||||
select * from t1;
|
select * from t1;
|
||||||
a b c
|
a b c
|
||||||
1 -1 -1
|
1 -1 -1
|
||||||
@ -153,7 +153,7 @@ a b c
|
|||||||
2 -2 -2
|
2 -2 -2
|
||||||
update ignore t1 set c=3 where a=2;
|
update ignore t1 set c=3 where a=2;
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1906 The value specified for generated column 'c' in table 't1' ignored
|
Warning 1906 The value specified for generated column 'c' in table 't1' has been ignored
|
||||||
select * from t1 order by a;
|
select * from t1 order by a;
|
||||||
a b c
|
a b c
|
||||||
1 -1 -1
|
1 -1 -1
|
||||||
@ -183,7 +183,7 @@ a b c
|
|||||||
2 -2 -2
|
2 -2 -2
|
||||||
update ignore t1 set c=3 where b=-2;
|
update ignore t1 set c=3 where b=-2;
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1906 The value specified for generated column 'c' in table 't1' ignored
|
Warning 1906 The value specified for generated column 'c' in table 't1' has been ignored
|
||||||
select * from t1 order by a;
|
select * from t1 order by a;
|
||||||
a b c
|
a b c
|
||||||
1 -1 -1
|
1 -1 -1
|
||||||
|
@ -99,7 +99,7 @@ INSERT IGNORE INTO t1 (d) VALUES ('2015-04-14');
|
|||||||
SET sql_mode= '';
|
SET sql_mode= '';
|
||||||
REPLACE INTO t1 SELECT * FROM t1;
|
REPLACE INTO t1 SELECT * FROM t1;
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1906 The value specified for generated column 'vd' in table 't1' ignored
|
Warning 1906 The value specified for generated column 'vd' in table 't1' has been ignored
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
InnoDB 0 transactions not purged
|
InnoDB 0 transactions not purged
|
||||||
DROP VIEW IF EXISTS v1,v2;
|
DROP VIEW IF EXISTS v1,v2;
|
||||||
|
@ -1132,7 +1132,7 @@ checksum table t1, t2, t3, t4 extended;
|
|||||||
drop table t1,t2,t3;
|
drop table t1,t2,t3;
|
||||||
|
|
||||||
#
|
#
|
||||||
# Test problem with refering to different fields in same table in UNION
|
# Test problem with referring to different fields in same table in UNION
|
||||||
# (Bug #2552)
|
# (Bug #2552)
|
||||||
#
|
#
|
||||||
create table t1 (id int, name char(10) not null, name2 char(10) not null) engine=innodb;
|
create table t1 (id int, name char(10) not null, name2 char(10) not null) engine=innodb;
|
||||||
|
@ -42,8 +42,10 @@ select 1,
|
|||||||
3;
|
3;
|
||||||
insert into t2 values (1), (2);
|
insert into t2 values (1), (2);
|
||||||
select * from t2;
|
select * from t2;
|
||||||
|
--disable_ps_protocol
|
||||||
--error ER_NO_SUCH_TABLE
|
--error ER_NO_SUCH_TABLE
|
||||||
select * from t_doesnt_exist;
|
select * from t_doesnt_exist;
|
||||||
|
--enable_ps_protocol
|
||||||
--error 1064
|
--error 1064
|
||||||
syntax_error_query;
|
syntax_error_query;
|
||||||
drop table renamed_t1, t2;
|
drop table renamed_t1, t2;
|
||||||
|
23
mysql-test/suite/rpl/r/rpl_gtid_excess_initial_delay.result
Normal file
23
mysql-test/suite/rpl/r/rpl_gtid_excess_initial_delay.result
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
include/master-slave.inc
|
||||||
|
[connection master]
|
||||||
|
CREATE TABLE t1 (i INT);
|
||||||
|
connection slave;
|
||||||
|
include/stop_slave.inc
|
||||||
|
CHANGE MASTER TO MASTER_USE_GTID= current_pos, MASTER_DELAY= 10;
|
||||||
|
include/start_slave.inc
|
||||||
|
connection master;
|
||||||
|
INSERT INTO t1 VALUES (1);
|
||||||
|
include/sync_slave_io_with_master.inc
|
||||||
|
connection slave;
|
||||||
|
"Sleeping for 15"
|
||||||
|
# Asserted this: Seconds_Behind_Master should be less than MASTER_DELAY
|
||||||
|
# Asserted this: One row shoule be found in table t1.
|
||||||
|
"======= Clean up ========"
|
||||||
|
STOP SLAVE;
|
||||||
|
CHANGE MASTER TO MASTER_USE_GTID=no, MASTER_DELAY=0;
|
||||||
|
START SLAVE;
|
||||||
|
connection master;
|
||||||
|
DROP TABLE t1;
|
||||||
|
connection slave;
|
||||||
|
connection master;
|
||||||
|
include/rpl_end.inc
|
@ -1,13 +1,28 @@
|
|||||||
include/master-slave.inc
|
include/master-slave.inc
|
||||||
[connection master]
|
[connection master]
|
||||||
|
connection slave;
|
||||||
|
set sql_log_bin=0;
|
||||||
|
create database y;
|
||||||
|
set sql_log_bin=1;
|
||||||
|
connection master;
|
||||||
drop database if exists mysqltest1;
|
drop database if exists mysqltest1;
|
||||||
|
drop database if exists x;
|
||||||
create database mysqltest1;
|
create database mysqltest1;
|
||||||
|
set sql_log_bin=0;
|
||||||
|
create database x;
|
||||||
|
set sql_log_bin=1;
|
||||||
use mysqltest1;
|
use mysqltest1;
|
||||||
create table t1 (a int);
|
create table t1 (a int);
|
||||||
insert into t1 values(9);
|
insert into t1 values(9);
|
||||||
|
use x;
|
||||||
|
create table t1 (a int);
|
||||||
|
insert into t1 values(9);
|
||||||
select * from mysqltest1.t1;
|
select * from mysqltest1.t1;
|
||||||
a
|
a
|
||||||
9
|
9
|
||||||
|
select * from x.t1;
|
||||||
|
a
|
||||||
|
9
|
||||||
connection slave;
|
connection slave;
|
||||||
show databases like 'mysqltest1';
|
show databases like 'mysqltest1';
|
||||||
Database (mysqltest1)
|
Database (mysqltest1)
|
||||||
@ -15,7 +30,11 @@ mysqltest1
|
|||||||
select * from test.t1;
|
select * from test.t1;
|
||||||
a
|
a
|
||||||
9
|
9
|
||||||
|
select * from y.t1;
|
||||||
|
a
|
||||||
|
9
|
||||||
connection master;
|
connection master;
|
||||||
|
use mysqltest1;
|
||||||
drop table t1;
|
drop table t1;
|
||||||
drop database mysqltest1;
|
drop database mysqltest1;
|
||||||
connection slave;
|
connection slave;
|
||||||
@ -259,12 +278,14 @@ SET sql_log_bin= 0;
|
|||||||
DROP DATABASE database_master_temp_01;
|
DROP DATABASE database_master_temp_01;
|
||||||
DROP DATABASE database_master_temp_02;
|
DROP DATABASE database_master_temp_02;
|
||||||
DROP DATABASE database_master_temp_03;
|
DROP DATABASE database_master_temp_03;
|
||||||
|
DROP DATABASE x;
|
||||||
SET sql_log_bin= 1;
|
SET sql_log_bin= 1;
|
||||||
connection slave;
|
connection slave;
|
||||||
SET sql_log_bin= 0;
|
SET sql_log_bin= 0;
|
||||||
DROP DATABASE database_slave_temp_01;
|
DROP DATABASE database_slave_temp_01;
|
||||||
DROP DATABASE database_slave_temp_02;
|
DROP DATABASE database_slave_temp_02;
|
||||||
DROP DATABASE database_slave_temp_03;
|
DROP DATABASE database_slave_temp_03;
|
||||||
|
DROP DATABASE y;
|
||||||
SET sql_log_bin= 1;
|
SET sql_log_bin= 1;
|
||||||
connection master;
|
connection master;
|
||||||
connection slave;
|
connection slave;
|
||||||
|
@ -0,0 +1,15 @@
|
|||||||
|
include/master-slave.inc
|
||||||
|
[connection master]
|
||||||
|
CREATE USER test_user@localhost;
|
||||||
|
SET PASSWORD FOR test_user@localhost = password('PWD');
|
||||||
|
GRANT ALL ON *.* TO test_user@localhost WITH GRANT OPTION;
|
||||||
|
connect conn_test,localhost,test_user,PWD,test,$MASTER_MYPORT,$MASTER_MYSOCK;
|
||||||
|
connection conn_test;
|
||||||
|
CREATE TABLE t1 (f1 INT);
|
||||||
|
CREATE TABLE t2 (f2 VARCHAR(64));
|
||||||
|
CREATE TRIGGER tr_before BEFORE INSERT ON t1 FOR EACH ROW INSERT INTO t2 SELECT variable_name FROM INFORMATION_SCHEMA.SESSION_VARIABLES;
|
||||||
|
CREATE DEFINER='root'@'localhost' TRIGGER tr_after AFTER INSERT ON t1 FOR EACH ROW INSERT INTO t2 SELECT variable_name FROM INFORMATION_SCHEMA.SESSION_VARIABLES;
|
||||||
|
INSERT INTO t1 VALUES (1);
|
||||||
|
DROP USER 'test_user'@'localhost';
|
||||||
|
DROP TABLE t1, t2;
|
||||||
|
include/rpl_end.inc
|
58
mysql-test/suite/rpl/t/rpl_gtid_excess_initial_delay.test
Normal file
58
mysql-test/suite/rpl/t/rpl_gtid_excess_initial_delay.test
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
# ==== Purpose ====
|
||||||
|
#
|
||||||
|
# Test verifies that when "Master_Delay" is specified on slave with GTIDS there
|
||||||
|
# will not be any extra delay initially.
|
||||||
|
#
|
||||||
|
# ==== Implementation ====
|
||||||
|
#
|
||||||
|
# Steps:
|
||||||
|
# 0 - Stop the slave and execute CHANGE MASTER command with
|
||||||
|
# master_use_gtid= curren_pos and master_delay= 10
|
||||||
|
# 1 - On slave introduce a sleep of 15 seconds and check that the
|
||||||
|
# Seconds_Behind_Master is within specified master_delay limit. It should
|
||||||
|
# not be more that "10" seconds.
|
||||||
|
#
|
||||||
|
# ==== References ====
|
||||||
|
#
|
||||||
|
# MDEV-13895: GTID and Master_Delay causes excessive initial delay
|
||||||
|
|
||||||
|
--source include/have_binlog_format_mixed.inc
|
||||||
|
--source include/master-slave.inc
|
||||||
|
|
||||||
|
CREATE TABLE t1 (i INT);
|
||||||
|
--sync_slave_with_master
|
||||||
|
|
||||||
|
--source include/stop_slave.inc
|
||||||
|
CHANGE MASTER TO MASTER_USE_GTID= current_pos, MASTER_DELAY= 10;
|
||||||
|
--source include/start_slave.inc
|
||||||
|
|
||||||
|
--connection master
|
||||||
|
INSERT INTO t1 VALUES (1);
|
||||||
|
--source include/sync_slave_io_with_master.inc
|
||||||
|
|
||||||
|
--connection slave
|
||||||
|
--let $actual_delay= query_get_value(SHOW SLAVE STATUS, SQL_Delay, 1)
|
||||||
|
--let $sleep_time= `SELECT 5 + $actual_delay`
|
||||||
|
--echo "Sleeping for $sleep_time"
|
||||||
|
--sleep $sleep_time
|
||||||
|
|
||||||
|
--let $assert_cond= [SHOW SLAVE STATUS, Seconds_Behind_Master, 1] <= 10
|
||||||
|
--let $assert_text= Seconds_Behind_Master should be less than MASTER_DELAY
|
||||||
|
--source include/rpl_assert.inc
|
||||||
|
|
||||||
|
# The row should be available in table after master_delay=20 seconds.
|
||||||
|
--let $assert_text= One row shoule be found in table t1.
|
||||||
|
--let $assert_cond= COUNT(*) = 1 FROM t1
|
||||||
|
--source include/rpl_assert.inc
|
||||||
|
|
||||||
|
--echo "======= Clean up ========"
|
||||||
|
STOP SLAVE;
|
||||||
|
CHANGE MASTER TO MASTER_USE_GTID=no, MASTER_DELAY=0;
|
||||||
|
START SLAVE;
|
||||||
|
|
||||||
|
--connection master
|
||||||
|
DROP TABLE t1;
|
||||||
|
--sync_slave_with_master
|
||||||
|
|
||||||
|
--connection master
|
||||||
|
--source include/rpl_end.inc
|
@ -1 +1 @@
|
|||||||
"--replicate-rewrite-db=test->rewrite" "--replicate-rewrite-db=mysqltest1->test" "--replicate-rewrite-db=database_master_temp_01->database_slave_temp_01" "--replicate-rewrite-db=database_master_temp_02->database_slave_temp_02" "--replicate-rewrite-db=database_master_temp_03->database_slave_temp_03"
|
"--replicate-rewrite-db=test->rewrite" "--replicate-rewrite-db=mysqltest1 -> test" "--replicate-rewrite-db=x -> y" "--replicate-rewrite-db=database_master_temp_01->database_slave_temp_01" "--replicate-rewrite-db=database_master_temp_02->database_slave_temp_02" "--replicate-rewrite-db=database_master_temp_03->database_slave_temp_03"
|
||||||
|
@ -2,20 +2,37 @@
|
|||||||
-- source include/have_binlog_format_mixed_or_statement.inc
|
-- source include/have_binlog_format_mixed_or_statement.inc
|
||||||
-- source include/master-slave.inc
|
-- source include/master-slave.inc
|
||||||
|
|
||||||
|
--connection slave
|
||||||
|
set sql_log_bin=0;
|
||||||
|
create database y;
|
||||||
|
set sql_log_bin=1;
|
||||||
|
|
||||||
|
--connection master
|
||||||
--disable_warnings
|
--disable_warnings
|
||||||
drop database if exists mysqltest1;
|
drop database if exists mysqltest1;
|
||||||
|
drop database if exists x;
|
||||||
--enable_warnings
|
--enable_warnings
|
||||||
create database mysqltest1;
|
create database mysqltest1;
|
||||||
|
set sql_log_bin=0;
|
||||||
|
create database x;
|
||||||
|
set sql_log_bin=1;
|
||||||
|
|
||||||
use mysqltest1;
|
use mysqltest1;
|
||||||
create table t1 (a int);
|
create table t1 (a int);
|
||||||
insert into t1 values(9);
|
insert into t1 values(9);
|
||||||
|
use x;
|
||||||
|
create table t1 (a int);
|
||||||
|
insert into t1 values(9);
|
||||||
select * from mysqltest1.t1;
|
select * from mysqltest1.t1;
|
||||||
|
select * from x.t1;
|
||||||
sync_slave_with_master;
|
sync_slave_with_master;
|
||||||
|
#TODO no it is no empty
|
||||||
show databases like 'mysqltest1'; # should be empty
|
show databases like 'mysqltest1'; # should be empty
|
||||||
select * from test.t1;
|
select * from test.t1;
|
||||||
|
select * from y.t1;
|
||||||
# cleanup
|
# cleanup
|
||||||
connection master;
|
connection master;
|
||||||
|
use mysqltest1;
|
||||||
drop table t1;
|
drop table t1;
|
||||||
drop database mysqltest1;
|
drop database mysqltest1;
|
||||||
sync_slave_with_master;
|
sync_slave_with_master;
|
||||||
@ -215,6 +232,7 @@ SET sql_log_bin= 0;
|
|||||||
DROP DATABASE database_master_temp_01;
|
DROP DATABASE database_master_temp_01;
|
||||||
DROP DATABASE database_master_temp_02;
|
DROP DATABASE database_master_temp_02;
|
||||||
DROP DATABASE database_master_temp_03;
|
DROP DATABASE database_master_temp_03;
|
||||||
|
DROP DATABASE x;
|
||||||
SET sql_log_bin= 1;
|
SET sql_log_bin= 1;
|
||||||
|
|
||||||
connection slave;
|
connection slave;
|
||||||
@ -222,6 +240,7 @@ SET sql_log_bin= 0;
|
|||||||
DROP DATABASE database_slave_temp_01;
|
DROP DATABASE database_slave_temp_01;
|
||||||
DROP DATABASE database_slave_temp_02;
|
DROP DATABASE database_slave_temp_02;
|
||||||
DROP DATABASE database_slave_temp_03;
|
DROP DATABASE database_slave_temp_03;
|
||||||
|
DROP DATABASE y;
|
||||||
SET sql_log_bin= 1;
|
SET sql_log_bin= 1;
|
||||||
|
|
||||||
connection master;
|
connection master;
|
||||||
|
42
mysql-test/suite/rpl/t/rpl_slave_invalid_external_user.test
Normal file
42
mysql-test/suite/rpl/t/rpl_slave_invalid_external_user.test
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
# ==== Purpose ====
|
||||||
|
#
|
||||||
|
# Test verifies that when applier thread tries to access 'variable_name' of
|
||||||
|
# INFORMATION_SCHEMA.SESSION_VARIABLES table through triggers it successfully
|
||||||
|
# retrieves all the session variables.
|
||||||
|
#
|
||||||
|
# ==== Implementation ====
|
||||||
|
#
|
||||||
|
# Steps:
|
||||||
|
# 0 - Create two tables t1 and t2.
|
||||||
|
# 1 - Create a trigger such that it reads the names of all session variables
|
||||||
|
# from INFORMATION_SCHEMA.SESSION_VARIABLES table and populates one of the
|
||||||
|
# tables.
|
||||||
|
# 2 - Do a DML on master and wait for it to be replicated and ensure that
|
||||||
|
# slave is in sync with master and it is up and running.
|
||||||
|
#
|
||||||
|
# ==== References ====
|
||||||
|
#
|
||||||
|
# MDEV-14784: Slave crashes in show_status_array upon running a trigger with
|
||||||
|
# select from I_S
|
||||||
|
|
||||||
|
--source include/master-slave.inc
|
||||||
|
--source include/have_binlog_format_mixed.inc
|
||||||
|
--enable_connect_log
|
||||||
|
CREATE USER test_user@localhost;
|
||||||
|
SET PASSWORD FOR test_user@localhost = password('PWD');
|
||||||
|
GRANT ALL ON *.* TO test_user@localhost WITH GRANT OPTION;
|
||||||
|
connect(conn_test,localhost,test_user,PWD,test,$MASTER_MYPORT,$MASTER_MYSOCK);
|
||||||
|
|
||||||
|
--connection conn_test
|
||||||
|
CREATE TABLE t1 (f1 INT);
|
||||||
|
CREATE TABLE t2 (f2 VARCHAR(64));
|
||||||
|
CREATE TRIGGER tr_before BEFORE INSERT ON t1 FOR EACH ROW INSERT INTO t2 SELECT variable_name FROM INFORMATION_SCHEMA.SESSION_VARIABLES;
|
||||||
|
CREATE DEFINER='root'@'localhost' TRIGGER tr_after AFTER INSERT ON t1 FOR EACH ROW INSERT INTO t2 SELECT variable_name FROM INFORMATION_SCHEMA.SESSION_VARIABLES;
|
||||||
|
|
||||||
|
INSERT INTO t1 VALUES (1);
|
||||||
|
--disable_connect_log
|
||||||
|
# Cleanup
|
||||||
|
--connection master
|
||||||
|
DROP USER 'test_user'@'localhost';
|
||||||
|
DROP TABLE t1, t2;
|
||||||
|
--source include/rpl_end.inc
|
@ -7,8 +7,8 @@ b int(11) # # VIRTUAL GENERATED
|
|||||||
INSERT INTO t1 (a) VALUES (1),(2);
|
INSERT INTO t1 (a) VALUES (1),(2);
|
||||||
INSERT INTO t1 (a,b) VALUES (3,3),(4,4);
|
INSERT INTO t1 (a,b) VALUES (3,3),(4,4);
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1906 The value specified for generated column 'b' in table 't1' ignored
|
Warning 1906 The value specified for generated column 'b' in table 't1' has been ignored
|
||||||
Warning 1906 The value specified for generated column 'b' in table 't1' ignored
|
Warning 1906 The value specified for generated column 'b' in table 't1' has been ignored
|
||||||
SELECT a,b FROM t1;
|
SELECT a,b FROM t1;
|
||||||
a b
|
a b
|
||||||
1 2
|
1 2
|
||||||
@ -24,8 +24,8 @@ b int(11) # # STORED GENERATED
|
|||||||
INSERT INTO t1 (a) VALUES (1),(2);
|
INSERT INTO t1 (a) VALUES (1),(2);
|
||||||
INSERT INTO t1 (a,b) VALUES (3,3),(4,4);
|
INSERT INTO t1 (a,b) VALUES (3,3),(4,4);
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1906 The value specified for generated column 'b' in table 't1' ignored
|
Warning 1906 The value specified for generated column 'b' in table 't1' has been ignored
|
||||||
Warning 1906 The value specified for generated column 'b' in table 't1' ignored
|
Warning 1906 The value specified for generated column 'b' in table 't1' has been ignored
|
||||||
SELECT a,b FROM t1;
|
SELECT a,b FROM t1;
|
||||||
a b
|
a b
|
||||||
1 2
|
1 2
|
||||||
@ -41,8 +41,8 @@ b int(11) # # VIRTUAL GENERATED
|
|||||||
INSERT INTO t1 (a) VALUES (1),(2);
|
INSERT INTO t1 (a) VALUES (1),(2);
|
||||||
INSERT INTO t1 (a,b) VALUES (3,3),(4,4);
|
INSERT INTO t1 (a,b) VALUES (3,3),(4,4);
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1906 The value specified for generated column 'b' in table 't1' ignored
|
Warning 1906 The value specified for generated column 'b' in table 't1' has been ignored
|
||||||
Warning 1906 The value specified for generated column 'b' in table 't1' ignored
|
Warning 1906 The value specified for generated column 'b' in table 't1' has been ignored
|
||||||
SELECT a,b FROM t1;
|
SELECT a,b FROM t1;
|
||||||
a b
|
a b
|
||||||
1 2
|
1 2
|
||||||
@ -58,8 +58,8 @@ b int(11) # # STORED GENERATED
|
|||||||
INSERT INTO t1 (a) VALUES (1),(2);
|
INSERT INTO t1 (a) VALUES (1),(2);
|
||||||
INSERT INTO t1 (a,b) VALUES (3,3),(4,4);
|
INSERT INTO t1 (a,b) VALUES (3,3),(4,4);
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1906 The value specified for generated column 'b' in table 't1' ignored
|
Warning 1906 The value specified for generated column 'b' in table 't1' has been ignored
|
||||||
Warning 1906 The value specified for generated column 'b' in table 't1' ignored
|
Warning 1906 The value specified for generated column 'b' in table 't1' has been ignored
|
||||||
SELECT a,b FROM t1;
|
SELECT a,b FROM t1;
|
||||||
a b
|
a b
|
||||||
1 2
|
1 2
|
||||||
|
@ -18,10 +18,10 @@ set binlog_row_image="FULL";
|
|||||||
CREATE VIEW v1 AS SELECT * FROM t1;
|
CREATE VIEW v1 AS SELECT * FROM t1;
|
||||||
REPLACE INTO v1 SELECT pk, vcol_date, vcol_int, vcol_year, vcol_blob, col_date, col_int, col_blob, 1982 FROM t1;
|
REPLACE INTO v1 SELECT pk, vcol_date, vcol_int, vcol_year, vcol_blob, col_date, col_int, col_blob, 1982 FROM t1;
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1906 The value specified for generated column 'vcol_date' in table 't1' ignored
|
Warning 1906 The value specified for generated column 'vcol_date' in table 't1' has been ignored
|
||||||
Warning 1906 The value specified for generated column 'vcol_int' in table 't1' ignored
|
Warning 1906 The value specified for generated column 'vcol_int' in table 't1' has been ignored
|
||||||
Warning 1906 The value specified for generated column 'vcol_year' in table 't1' ignored
|
Warning 1906 The value specified for generated column 'vcol_year' in table 't1' has been ignored
|
||||||
Warning 1906 The value specified for generated column 'vcol_blob' in table 't1' ignored
|
Warning 1906 The value specified for generated column 'vcol_blob' in table 't1' has been ignored
|
||||||
select col_date,col_int,col_blob,col_year from v1;
|
select col_date,col_int,col_blob,col_year from v1;
|
||||||
col_date col_int col_blob col_year
|
col_date col_int col_blob col_year
|
||||||
2010-04-24 5 foo 1982
|
2010-04-24 5 foo 1982
|
||||||
@ -35,10 +35,10 @@ set binlog_row_image="MINIMAL";
|
|||||||
CREATE VIEW v1 AS SELECT * FROM t1;
|
CREATE VIEW v1 AS SELECT * FROM t1;
|
||||||
REPLACE INTO v1 SELECT pk, vcol_date, vcol_int, vcol_year, vcol_blob, col_date, col_int, col_blob, 1983 FROM t1;
|
REPLACE INTO v1 SELECT pk, vcol_date, vcol_int, vcol_year, vcol_blob, col_date, col_int, col_blob, 1983 FROM t1;
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1906 The value specified for generated column 'vcol_date' in table 't1' ignored
|
Warning 1906 The value specified for generated column 'vcol_date' in table 't1' has been ignored
|
||||||
Warning 1906 The value specified for generated column 'vcol_int' in table 't1' ignored
|
Warning 1906 The value specified for generated column 'vcol_int' in table 't1' has been ignored
|
||||||
Warning 1906 The value specified for generated column 'vcol_year' in table 't1' ignored
|
Warning 1906 The value specified for generated column 'vcol_year' in table 't1' has been ignored
|
||||||
Warning 1906 The value specified for generated column 'vcol_blob' in table 't1' ignored
|
Warning 1906 The value specified for generated column 'vcol_blob' in table 't1' has been ignored
|
||||||
select col_date,col_int,col_blob,col_year from v1;
|
select col_date,col_int,col_blob,col_year from v1;
|
||||||
col_date col_int col_blob col_year
|
col_date col_int col_blob col_year
|
||||||
2010-04-24 5 foo 1983
|
2010-04-24 5 foo 1983
|
||||||
@ -52,10 +52,10 @@ set @@binlog_row_image="NOBLOB";
|
|||||||
CREATE VIEW v1 AS SELECT * FROM t1;
|
CREATE VIEW v1 AS SELECT * FROM t1;
|
||||||
REPLACE INTO v1 SELECT pk, vcol_date, vcol_int, vcol_year, vcol_blob, col_date, col_int, col_blob, 1984 FROM t1;
|
REPLACE INTO v1 SELECT pk, vcol_date, vcol_int, vcol_year, vcol_blob, col_date, col_int, col_blob, 1984 FROM t1;
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1906 The value specified for generated column 'vcol_date' in table 't1' ignored
|
Warning 1906 The value specified for generated column 'vcol_date' in table 't1' has been ignored
|
||||||
Warning 1906 The value specified for generated column 'vcol_int' in table 't1' ignored
|
Warning 1906 The value specified for generated column 'vcol_int' in table 't1' has been ignored
|
||||||
Warning 1906 The value specified for generated column 'vcol_year' in table 't1' ignored
|
Warning 1906 The value specified for generated column 'vcol_year' in table 't1' has been ignored
|
||||||
Warning 1906 The value specified for generated column 'vcol_blob' in table 't1' ignored
|
Warning 1906 The value specified for generated column 'vcol_blob' in table 't1' has been ignored
|
||||||
select col_date,col_int,col_blob,col_year from v1;
|
select col_date,col_int,col_blob,col_year from v1;
|
||||||
col_date col_int col_blob col_year
|
col_date col_int col_blob col_year
|
||||||
2010-04-24 5 foo 1984
|
2010-04-24 5 foo 1984
|
||||||
|
@ -26,5 +26,5 @@ partition pn values less than (maxvalue));
|
|||||||
insert t1 set i= 0;
|
insert t1 set i= 0;
|
||||||
set statement sql_mode= '' for update t1 set i= 1, v= 2;
|
set statement sql_mode= '' for update t1 set i= 1, v= 2;
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1906 The value specified for generated column 'v' in table 't1' ignored
|
Warning 1906 The value specified for generated column 'v' in table 't1' has been ignored
|
||||||
drop table t1;
|
drop table t1;
|
||||||
|
@ -74,10 +74,10 @@ b int, c blob as (b), index (c(57)),
|
|||||||
d blob, e blob as (d), index (e(57)))
|
d blob, e blob as (d), index (e(57)))
|
||||||
replace select * from t1;
|
replace select * from t1;
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1906 The value specified for generated column 'c' in table 't' ignored
|
Warning 1906 The value specified for generated column 'c' in table 't' has been ignored
|
||||||
Warning 1906 The value specified for generated column 'e' in table 't' ignored
|
Warning 1906 The value specified for generated column 'e' in table 't' has been ignored
|
||||||
Warning 1906 The value specified for generated column 'c' in table 't' ignored
|
Warning 1906 The value specified for generated column 'c' in table 't' has been ignored
|
||||||
Warning 1906 The value specified for generated column 'e' in table 't' ignored
|
Warning 1906 The value specified for generated column 'e' in table 't' has been ignored
|
||||||
check table t;
|
check table t;
|
||||||
Table Op Msg_type Msg_text
|
Table Op Msg_type Msg_text
|
||||||
test.t check status OK
|
test.t check status OK
|
||||||
|
@ -76,10 +76,10 @@ b int, c blob as (b), index (c(57)),
|
|||||||
d blob, e blob as (d), index (e(57)))
|
d blob, e blob as (d), index (e(57)))
|
||||||
replace select * from t1;
|
replace select * from t1;
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1906 The value specified for generated column 'c' in table 't' ignored
|
Warning 1906 The value specified for generated column 'c' in table 't' has been ignored
|
||||||
Warning 1906 The value specified for generated column 'e' in table 't' ignored
|
Warning 1906 The value specified for generated column 'e' in table 't' has been ignored
|
||||||
Warning 1906 The value specified for generated column 'c' in table 't' ignored
|
Warning 1906 The value specified for generated column 'c' in table 't' has been ignored
|
||||||
Warning 1906 The value specified for generated column 'e' in table 't' ignored
|
Warning 1906 The value specified for generated column 'e' in table 't' has been ignored
|
||||||
check table t;
|
check table t;
|
||||||
Table Op Msg_type Msg_text
|
Table Op Msg_type Msg_text
|
||||||
test.t check status OK
|
test.t check status OK
|
||||||
@ -256,10 +256,10 @@ b int, c blob as (b), index (c(57)),
|
|||||||
d blob, e blob as (d), index (e(57)))
|
d blob, e blob as (d), index (e(57)))
|
||||||
replace select * from t1;
|
replace select * from t1;
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1906 The value specified for generated column 'c' in table 't' ignored
|
Warning 1906 The value specified for generated column 'c' in table 't' has been ignored
|
||||||
Warning 1906 The value specified for generated column 'e' in table 't' ignored
|
Warning 1906 The value specified for generated column 'e' in table 't' has been ignored
|
||||||
Warning 1906 The value specified for generated column 'c' in table 't' ignored
|
Warning 1906 The value specified for generated column 'c' in table 't' has been ignored
|
||||||
Warning 1906 The value specified for generated column 'e' in table 't' ignored
|
Warning 1906 The value specified for generated column 'e' in table 't' has been ignored
|
||||||
check table t;
|
check table t;
|
||||||
Table Op Msg_type Msg_text
|
Table Op Msg_type Msg_text
|
||||||
test.t check status OK
|
test.t check status OK
|
||||||
|
@ -25,8 +25,8 @@ a b c
|
|||||||
# INSERT INTO tbl_name VALUES... a non-NULL value is specified against vcols
|
# INSERT INTO tbl_name VALUES... a non-NULL value is specified against vcols
|
||||||
insert ignore into t1 values (1,2,3);
|
insert ignore into t1 values (1,2,3);
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1906 The value specified for generated column 'b' in table 't1' ignored
|
Warning 1906 The value specified for generated column 'b' in table 't1' has been ignored
|
||||||
Warning 1906 The value specified for generated column 'c' in table 't1' ignored
|
Warning 1906 The value specified for generated column 'c' in table 't1' has been ignored
|
||||||
select * from t1;
|
select * from t1;
|
||||||
a b c
|
a b c
|
||||||
1 -1 -1
|
1 -1 -1
|
||||||
@ -65,8 +65,8 @@ a b c
|
|||||||
# against vcols
|
# against vcols
|
||||||
insert ignore into t1 (a,b) values (1,3), (2,4);
|
insert ignore into t1 (a,b) values (1,3), (2,4);
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1906 The value specified for generated column 'b' in table 't1' ignored
|
Warning 1906 The value specified for generated column 'b' in table 't1' has been ignored
|
||||||
Warning 1906 The value specified for generated column 'b' in table 't1' ignored
|
Warning 1906 The value specified for generated column 'b' in table 't1' has been ignored
|
||||||
select * from t1;
|
select * from t1;
|
||||||
a b c
|
a b c
|
||||||
1 -1 -1
|
1 -1 -1
|
||||||
@ -107,8 +107,8 @@ a b c
|
|||||||
create table t2 like t1;
|
create table t2 like t1;
|
||||||
insert ignore into t2 select * from t1;
|
insert ignore into t2 select * from t1;
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1906 The value specified for generated column 'b' in table 't2' ignored
|
Warning 1906 The value specified for generated column 'b' in table 't2' has been ignored
|
||||||
Warning 1906 The value specified for generated column 'c' in table 't2' ignored
|
Warning 1906 The value specified for generated column 'c' in table 't2' has been ignored
|
||||||
select * from t1;
|
select * from t1;
|
||||||
a b c
|
a b c
|
||||||
2 -2 -2
|
2 -2 -2
|
||||||
@ -123,8 +123,8 @@ a b c
|
|||||||
create table t2 like t1;
|
create table t2 like t1;
|
||||||
insert ignore into t2 (a,b) select a,b from t1;
|
insert ignore into t2 (a,b) select a,b from t1;
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1906 The value specified for generated column 'b' in table 't2' ignored
|
Warning 1906 The value specified for generated column 'b' in table 't2' has been ignored
|
||||||
Warning 1906 The value specified for generated column 'b' in table 't2' ignored
|
Warning 1906 The value specified for generated column 'b' in table 't2' has been ignored
|
||||||
select * from t2;
|
select * from t2;
|
||||||
a b c
|
a b c
|
||||||
2 -2 -2
|
2 -2 -2
|
||||||
@ -159,7 +159,7 @@ a b c
|
|||||||
2 -2 -2
|
2 -2 -2
|
||||||
update ignore t1 set c=3 where a=2;
|
update ignore t1 set c=3 where a=2;
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1906 The value specified for generated column 'c' in table 't1' ignored
|
Warning 1906 The value specified for generated column 'c' in table 't1' has been ignored
|
||||||
select * from t1;
|
select * from t1;
|
||||||
a b c
|
a b c
|
||||||
1 -1 -1
|
1 -1 -1
|
||||||
@ -189,7 +189,7 @@ a b c
|
|||||||
2 -2 -2
|
2 -2 -2
|
||||||
update ignore t1 set c=3 where b=-2;
|
update ignore t1 set c=3 where b=-2;
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1906 The value specified for generated column 'c' in table 't1' ignored
|
Warning 1906 The value specified for generated column 'c' in table 't1' has been ignored
|
||||||
select * from t1;
|
select * from t1;
|
||||||
a b c
|
a b c
|
||||||
1 -1 -1
|
1 -1 -1
|
||||||
|
@ -25,8 +25,8 @@ a b c
|
|||||||
# INSERT INTO tbl_name VALUES... a non-NULL value is specified against vcols
|
# INSERT INTO tbl_name VALUES... a non-NULL value is specified against vcols
|
||||||
insert ignore into t1 values (1,2,3);
|
insert ignore into t1 values (1,2,3);
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1906 The value specified for generated column 'b' in table 't1' ignored
|
Warning 1906 The value specified for generated column 'b' in table 't1' has been ignored
|
||||||
Warning 1906 The value specified for generated column 'c' in table 't1' ignored
|
Warning 1906 The value specified for generated column 'c' in table 't1' has been ignored
|
||||||
select * from t1;
|
select * from t1;
|
||||||
a b c
|
a b c
|
||||||
1 -1 -1
|
1 -1 -1
|
||||||
@ -65,8 +65,8 @@ a b c
|
|||||||
# against vcols
|
# against vcols
|
||||||
insert ignore into t1 (a,b) values (1,3), (2,4);
|
insert ignore into t1 (a,b) values (1,3), (2,4);
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1906 The value specified for generated column 'b' in table 't1' ignored
|
Warning 1906 The value specified for generated column 'b' in table 't1' has been ignored
|
||||||
Warning 1906 The value specified for generated column 'b' in table 't1' ignored
|
Warning 1906 The value specified for generated column 'b' in table 't1' has been ignored
|
||||||
select * from t1;
|
select * from t1;
|
||||||
a b c
|
a b c
|
||||||
1 -1 -1
|
1 -1 -1
|
||||||
@ -107,8 +107,8 @@ a b c
|
|||||||
create table t2 like t1;
|
create table t2 like t1;
|
||||||
insert ignore into t2 select * from t1;
|
insert ignore into t2 select * from t1;
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1906 The value specified for generated column 'b' in table 't2' ignored
|
Warning 1906 The value specified for generated column 'b' in table 't2' has been ignored
|
||||||
Warning 1906 The value specified for generated column 'c' in table 't2' ignored
|
Warning 1906 The value specified for generated column 'c' in table 't2' has been ignored
|
||||||
select * from t1;
|
select * from t1;
|
||||||
a b c
|
a b c
|
||||||
2 -2 -2
|
2 -2 -2
|
||||||
@ -123,8 +123,8 @@ a b c
|
|||||||
create table t2 like t1;
|
create table t2 like t1;
|
||||||
insert ignore into t2 (a,b) select a,b from t1;
|
insert ignore into t2 (a,b) select a,b from t1;
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1906 The value specified for generated column 'b' in table 't2' ignored
|
Warning 1906 The value specified for generated column 'b' in table 't2' has been ignored
|
||||||
Warning 1906 The value specified for generated column 'b' in table 't2' ignored
|
Warning 1906 The value specified for generated column 'b' in table 't2' has been ignored
|
||||||
select * from t2;
|
select * from t2;
|
||||||
a b c
|
a b c
|
||||||
2 -2 -2
|
2 -2 -2
|
||||||
@ -159,7 +159,7 @@ a b c
|
|||||||
2 -2 -2
|
2 -2 -2
|
||||||
update ignore t1 set c=3 where a=2;
|
update ignore t1 set c=3 where a=2;
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1906 The value specified for generated column 'c' in table 't1' ignored
|
Warning 1906 The value specified for generated column 'c' in table 't1' has been ignored
|
||||||
select * from t1;
|
select * from t1;
|
||||||
a b c
|
a b c
|
||||||
1 -1 -1
|
1 -1 -1
|
||||||
@ -189,7 +189,7 @@ a b c
|
|||||||
2 -2 -2
|
2 -2 -2
|
||||||
update ignore t1 set c=3 where b=-2;
|
update ignore t1 set c=3 where b=-2;
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1906 The value specified for generated column 'c' in table 't1' ignored
|
Warning 1906 The value specified for generated column 'c' in table 't1' has been ignored
|
||||||
select * from t1;
|
select * from t1;
|
||||||
a b c
|
a b c
|
||||||
1 -1 -1
|
1 -1 -1
|
||||||
|
@ -108,10 +108,10 @@ DROP TABLE t1,t2;
|
|||||||
CREATE TABLE t1 (p int, a double NOT NULL, v double AS (ROUND(a,p)) VIRTUAL);
|
CREATE TABLE t1 (p int, a double NOT NULL, v double AS (ROUND(a,p)) VIRTUAL);
|
||||||
INSERT IGNORE INTO t1 VALUES (0,1,0);
|
INSERT IGNORE INTO t1 VALUES (0,1,0);
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1906 The value specified for generated column 'v' in table 't1' ignored
|
Warning 1906 The value specified for generated column 'v' in table 't1' has been ignored
|
||||||
INSERT IGNORE INTO t1 VALUES (NULL,0,0);
|
INSERT IGNORE INTO t1 VALUES (NULL,0,0);
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1906 The value specified for generated column 'v' in table 't1' ignored
|
Warning 1906 The value specified for generated column 'v' in table 't1' has been ignored
|
||||||
SELECT a, p, v, ROUND(a,p), ROUND(a,p+NULL) FROM t1;
|
SELECT a, p, v, ROUND(a,p), ROUND(a,p+NULL) FROM t1;
|
||||||
a p v ROUND(a,p) ROUND(a,p+NULL)
|
a p v ROUND(a,p) ROUND(a,p+NULL)
|
||||||
1 0 1 1 NULL
|
1 0 1 1 NULL
|
||||||
@ -322,15 +322,15 @@ d varchar(5) latin1_swedish_ci YES NULL STORED GENERATED #
|
|||||||
INSERT INTO `test`.`t1`(`a`,`b`,`c`,`d`) VALUES ( '1','a',NULL,NULL);
|
INSERT INTO `test`.`t1`(`a`,`b`,`c`,`d`) VALUES ( '1','a',NULL,NULL);
|
||||||
UPDATE IGNORE `test`.`t1` SET `d`='b' WHERE `a`='1' AND `b`='a' AND `c`='1' AND `d`='a';
|
UPDATE IGNORE `test`.`t1` SET `d`='b' WHERE `a`='1' AND `b`='a' AND `c`='1' AND `d`='a';
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1906 The value specified for generated column 'd' in table 't1' ignored
|
Warning 1906 The value specified for generated column 'd' in table 't1' has been ignored
|
||||||
INSERT IGNORE INTO `test`.`t1`(`a`,`b`,`c`,`d`) VALUES ( '1','a',NULL,'a');
|
INSERT IGNORE INTO `test`.`t1`(`a`,`b`,`c`,`d`) VALUES ( '1','a',NULL,'a');
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1906 The value specified for generated column 'd' in table 't1' ignored
|
Warning 1906 The value specified for generated column 'd' in table 't1' has been ignored
|
||||||
set sql_mode='strict_all_tables';
|
set sql_mode='strict_all_tables';
|
||||||
UPDATE `test`.`t1` SET `d`='b' WHERE `a`='1' AND `b`='a' AND `c`='1' AND `d`='a';
|
UPDATE `test`.`t1` SET `d`='b' WHERE `a`='1' AND `b`='a' AND `c`='1' AND `d`='a';
|
||||||
ERROR HY000: The value specified for generated column 'd' in table 't1' ignored
|
ERROR HY000: The value specified for generated column 'd' in table 't1' has been ignored
|
||||||
INSERT INTO `test`.`t1`(`a`,`b`,`c`,`d`) VALUES ( '1','a',NULL,'a');
|
INSERT INTO `test`.`t1`(`a`,`b`,`c`,`d`) VALUES ( '1','a',NULL,'a');
|
||||||
ERROR HY000: The value specified for generated column 'd' in table 't1' ignored
|
ERROR HY000: The value specified for generated column 'd' in table 't1' has been ignored
|
||||||
drop table t1;
|
drop table t1;
|
||||||
#
|
#
|
||||||
# MDEV-5611: self-referencing virtual column
|
# MDEV-5611: self-referencing virtual column
|
||||||
|
@ -273,9 +273,9 @@ INSERT INTO t1 VALUES (NULL),( 78), (185), (0), (154);
|
|||||||
CREATE TABLE t2 (a int, b int AS (a) VIRTUAL);
|
CREATE TABLE t2 (a int, b int AS (a) VIRTUAL);
|
||||||
INSERT IGNORE INTO t2 VALUES (187,187), (9,9), (187,187);
|
INSERT IGNORE INTO t2 VALUES (187,187), (9,9), (187,187);
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1906 The value specified for generated column 'b' in table 't2' ignored
|
Warning 1906 The value specified for generated column 'b' in table 't2' has been ignored
|
||||||
Warning 1906 The value specified for generated column 'b' in table 't2' ignored
|
Warning 1906 The value specified for generated column 'b' in table 't2' has been ignored
|
||||||
Warning 1906 The value specified for generated column 'b' in table 't2' ignored
|
Warning 1906 The value specified for generated column 'b' in table 't2' has been ignored
|
||||||
EXPLAIN EXTENDED
|
EXPLAIN EXTENDED
|
||||||
SELECT * FROM t1 JOIN t2 USING (b);
|
SELECT * FROM t1 JOIN t2 USING (b);
|
||||||
id select_type table type possible_keys key key_len ref rows filtered Extra
|
id select_type table type possible_keys key key_len ref rows filtered Extra
|
||||||
|
@ -36,18 +36,18 @@ period for system_time (row_start, row_end)
|
|||||||
) with system versioning;
|
) with system versioning;
|
||||||
insert into t1 values (1), (2);
|
insert into t1 values (1), (2);
|
||||||
insert into t1 (row_start) select row_end from t1;
|
insert into t1 (row_start) select row_end from t1;
|
||||||
ERROR HY000: The value specified for generated column 'row_start' in table 't1' ignored
|
ERROR HY000: The value specified for generated column 'row_start' in table 't1' has been ignored
|
||||||
set sql_mode='';
|
set sql_mode='';
|
||||||
insert into t1 (row_start, row_end) values (DEFAULT, 1);
|
insert into t1 (row_start, row_end) values (DEFAULT, 1);
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1906 The value specified for generated column 'row_end' in table 't1' ignored
|
Warning 1906 The value specified for generated column 'row_end' in table 't1' has been ignored
|
||||||
set sql_mode=default;
|
set sql_mode=default;
|
||||||
select @@sql_mode into @saved_mode;
|
select @@sql_mode into @saved_mode;
|
||||||
set sql_mode= '';
|
set sql_mode= '';
|
||||||
insert into t1 (x, row_start, row_end) values (3, 4, 5);
|
insert into t1 (x, row_start, row_end) values (3, 4, 5);
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1906 The value specified for generated column 'row_start' in table 't1' ignored
|
Warning 1906 The value specified for generated column 'row_start' in table 't1' has been ignored
|
||||||
Warning 1906 The value specified for generated column 'row_end' in table 't1' ignored
|
Warning 1906 The value specified for generated column 'row_end' in table 't1' has been ignored
|
||||||
set sql_mode= @saved_mode;
|
set sql_mode= @saved_mode;
|
||||||
insert into t1 (row_start, row_end) values (DEFAULT, DEFAULT);
|
insert into t1 (row_start, row_end) values (DEFAULT, DEFAULT);
|
||||||
select * from t1;
|
select * from t1;
|
||||||
|
@ -1,6 +1,10 @@
|
|||||||
set system_versioning_alter_history=keep;
|
set system_versioning_alter_history=keep;
|
||||||
# Check conventional partitioning on temporal tables
|
# Check conventional partitioning on temporal tables
|
||||||
create table t1 (x int)
|
create or replace table t1 (
|
||||||
|
x int,
|
||||||
|
row_start SYS_DATATYPE as row start invisible,
|
||||||
|
row_end SYS_DATATYPE as row end invisible,
|
||||||
|
period for system_time(row_start, row_end))
|
||||||
with system versioning
|
with system versioning
|
||||||
partition by range columns (x) (
|
partition by range columns (x) (
|
||||||
partition p0 values less than (100),
|
partition p0 values less than (100),
|
||||||
@ -34,7 +38,13 @@ select * from t1 partition (p1) for system_time all;
|
|||||||
x
|
x
|
||||||
300
|
300
|
||||||
# Engine change native <-> non-native versioning prohibited
|
# Engine change native <-> non-native versioning prohibited
|
||||||
create or replace table t1 (i int) engine=DEFAULT_ENGINE with system versioning partition by hash(i);
|
create or replace table t1 (
|
||||||
|
i int,
|
||||||
|
row_start SYS_DATATYPE as row start invisible,
|
||||||
|
row_end SYS_DATATYPE as row end invisible,
|
||||||
|
period for system_time(row_start, row_end))
|
||||||
|
engine=DEFAULT_ENGINE
|
||||||
|
with system versioning partition by hash(i);
|
||||||
alter table t1 engine=NON_DEFAULT_ENGINE;
|
alter table t1 engine=NON_DEFAULT_ENGINE;
|
||||||
ERROR HY000: Not allowed for system-versioned `test`.`t1`. Change to/from native system versioning engine is not supported.
|
ERROR HY000: Not allowed for system-versioned `test`.`t1`. Change to/from native system versioning engine is not supported.
|
||||||
## CREATE TABLE
|
## CREATE TABLE
|
||||||
@ -334,14 +344,21 @@ select * from t1 partition (p1sp0);
|
|||||||
x
|
x
|
||||||
select * from t1 partition (p1sp1);
|
select * from t1 partition (p1sp1);
|
||||||
x
|
x
|
||||||
create or replace table t1 (a bigint)
|
create or replace table t1 (
|
||||||
|
a bigint,
|
||||||
|
row_start SYS_DATATYPE as row start invisible,
|
||||||
|
row_end SYS_DATATYPE as row end invisible,
|
||||||
|
period for system_time(row_start, row_end))
|
||||||
with system versioning
|
with system versioning
|
||||||
partition by range (a)
|
partition by range (a)
|
||||||
(partition p0 values less than (20) engine innodb,
|
(partition p0 values less than (20) engine innodb,
|
||||||
partition p1 values less than maxvalue engine innodb);
|
partition p1 values less than maxvalue engine innodb);
|
||||||
insert into t1 values (1);
|
insert into t1 values (1);
|
||||||
create or replace table t1 (
|
create or replace table t1 (
|
||||||
f_int1 integer default 0
|
f_int1 integer default 0,
|
||||||
|
row_start SYS_DATATYPE as row start invisible,
|
||||||
|
row_end SYS_DATATYPE as row end invisible,
|
||||||
|
period for system_time(row_start, row_end)
|
||||||
) with system versioning
|
) with system versioning
|
||||||
partition by range(f_int1)
|
partition by range(f_int1)
|
||||||
subpartition by hash(f_int1)
|
subpartition by hash(f_int1)
|
||||||
@ -350,7 +367,11 @@ subpartition by hash(f_int1)
|
|||||||
subpartition subpart12 storage engine = 'innodb'));
|
subpartition subpart12 storage engine = 'innodb'));
|
||||||
insert into t1 values (1);
|
insert into t1 values (1);
|
||||||
create or replace table t1 (i int) engine=innodb partition by key(i);
|
create or replace table t1 (i int) engine=innodb partition by key(i);
|
||||||
alter table t1 add system versioning;
|
alter table t1
|
||||||
|
add column row_start SYS_DATATYPE as row start invisible,
|
||||||
|
add column row_end SYS_DATATYPE as row end invisible,
|
||||||
|
add period for system_time(row_start, row_end),
|
||||||
|
add system versioning;
|
||||||
insert into t1 values();
|
insert into t1 values();
|
||||||
# MDEV-14722 Assertion in ha_commit_trans for sub-statement
|
# MDEV-14722 Assertion in ha_commit_trans for sub-statement
|
||||||
create or replace table t1 (i int) with system versioning
|
create or replace table t1 (i int) with system versioning
|
||||||
|
69
mysql-test/suite/versioning/r/partition_innodb.result
Normal file
69
mysql-test/suite/versioning/r/partition_innodb.result
Normal file
@ -0,0 +1,69 @@
|
|||||||
|
# MDEV-15951 system versioning by trx id doesn't work with partitioning
|
||||||
|
# currently trx_id does not support partitioning by system_time
|
||||||
|
create or replace table t1(
|
||||||
|
i int,
|
||||||
|
row_start bigint unsigned generated always as row start,
|
||||||
|
row_end bigint unsigned generated always as row end,
|
||||||
|
period for system_time(row_start, row_end)
|
||||||
|
) engine=InnoDB with system versioning partition by system_time (
|
||||||
|
partition p0 history,
|
||||||
|
partition pn current
|
||||||
|
);
|
||||||
|
ERROR HY000: `row_start` must be of type TIMESTAMP(6) for system-versioned table `t1`
|
||||||
|
create or replace table t1(
|
||||||
|
i int,
|
||||||
|
row_start bigint unsigned generated always as row start,
|
||||||
|
row_end bigint unsigned generated always as row end,
|
||||||
|
period for system_time(row_start, row_end)
|
||||||
|
) engine=InnoDB with system versioning;
|
||||||
|
alter table t1 partition by system_time (
|
||||||
|
partition p0 history,
|
||||||
|
partition pn current
|
||||||
|
);
|
||||||
|
ERROR HY000: `row_start` must be of type TIMESTAMP(6) for system-versioned table `#sql-temporary`
|
||||||
|
create or replace table t (
|
||||||
|
a int primary key,
|
||||||
|
row_start bigint unsigned as row start invisible,
|
||||||
|
row_end bigint unsigned as row end invisible,
|
||||||
|
period for system_time(row_start, row_end)
|
||||||
|
) engine=innodb with system versioning
|
||||||
|
partition by key() (
|
||||||
|
partition p1,
|
||||||
|
partition p2
|
||||||
|
);
|
||||||
|
ERROR HY000: Transaction-precise system versioned tables do not support partitioning by ROW START or ROW END
|
||||||
|
create or replace table t (
|
||||||
|
a int primary key,
|
||||||
|
row_start bigint unsigned as row start invisible,
|
||||||
|
row_end bigint unsigned as row end invisible,
|
||||||
|
period for system_time(row_start, row_end)
|
||||||
|
) engine=innodb with system versioning
|
||||||
|
partition by key(a, row_start) (
|
||||||
|
partition p1,
|
||||||
|
partition p2
|
||||||
|
);
|
||||||
|
ERROR HY000: Transaction-precise system versioned tables do not support partitioning by ROW START or ROW END
|
||||||
|
create or replace table t (
|
||||||
|
a int primary key,
|
||||||
|
row_start bigint unsigned as row start invisible,
|
||||||
|
row_end bigint unsigned as row end invisible,
|
||||||
|
period for system_time(row_start, row_end)
|
||||||
|
) engine=innodb with system versioning
|
||||||
|
partition by hash(a + row_end * 2) (
|
||||||
|
partition p1,
|
||||||
|
partition p2
|
||||||
|
);
|
||||||
|
ERROR HY000: Transaction-precise system versioned tables do not support partitioning by ROW START or ROW END
|
||||||
|
create or replace table t (
|
||||||
|
a int primary key,
|
||||||
|
row_start bigint unsigned as row start invisible,
|
||||||
|
row_end bigint unsigned as row end invisible,
|
||||||
|
period for system_time(row_start, row_end)
|
||||||
|
) engine=innodb with system versioning
|
||||||
|
partition by range columns (a, row_start) (
|
||||||
|
partition p1 values less than (100, 100)
|
||||||
|
);
|
||||||
|
ERROR HY000: Transaction-precise system versioned tables do not support partitioning by ROW START or ROW END
|
||||||
|
# Test cleanup
|
||||||
|
drop database test;
|
||||||
|
create database test;
|
@ -4,38 +4,38 @@ connection slave;
|
|||||||
connection master;
|
connection master;
|
||||||
CREATE TABLE t1 (x int) with system versioning;
|
CREATE TABLE t1 (x int) with system versioning;
|
||||||
insert into t1 values (1);
|
insert into t1 values (1);
|
||||||
SELECT * FROM t1;
|
select * from t1 order by x;
|
||||||
x
|
x
|
||||||
1
|
1
|
||||||
delete from t1;
|
delete from t1;
|
||||||
select * from t1;
|
select * from t1 order by x;
|
||||||
x
|
x
|
||||||
select * from t1 for system_time all;
|
select * from t1 for system_time all order by row_end, x;
|
||||||
x
|
x
|
||||||
1
|
1
|
||||||
connection slave;
|
connection slave;
|
||||||
select * from t1;
|
select * from t1 order by x;
|
||||||
x
|
x
|
||||||
select * from t1 for system_time all;
|
select * from t1 for system_time all order by row_end, x;
|
||||||
x
|
x
|
||||||
1
|
1
|
||||||
connection master;
|
connection master;
|
||||||
insert into t1 values (2);
|
insert into t1 values (2);
|
||||||
connection slave;
|
connection slave;
|
||||||
select * from t1;
|
select * from t1 order by x;
|
||||||
x
|
x
|
||||||
2
|
2
|
||||||
connection master;
|
connection master;
|
||||||
update t1 set x = 3;
|
update t1 set x = 3;
|
||||||
connection slave;
|
connection slave;
|
||||||
select * from t1;
|
select * from t1 order by x;
|
||||||
x
|
x
|
||||||
3
|
3
|
||||||
select * from t1 for system_time all;
|
select * from t1 for system_time all order by row_end, x;
|
||||||
x
|
x
|
||||||
1
|
1
|
||||||
3
|
|
||||||
2
|
2
|
||||||
|
3
|
||||||
# check unversioned -> versioned replication
|
# check unversioned -> versioned replication
|
||||||
connection master;
|
connection master;
|
||||||
create or replace table t1 (x int primary key);
|
create or replace table t1 (x int primary key);
|
||||||
@ -44,28 +44,28 @@ alter table t1 with system versioning;
|
|||||||
connection master;
|
connection master;
|
||||||
insert into t1 values (1);
|
insert into t1 values (1);
|
||||||
connection slave;
|
connection slave;
|
||||||
select * from t1;
|
select * from t1 order by x;
|
||||||
x
|
x
|
||||||
1
|
1
|
||||||
select * from t1 for system_time all;
|
select * from t1 for system_time all order by row_end, x;
|
||||||
x
|
x
|
||||||
1
|
1
|
||||||
connection master;
|
connection master;
|
||||||
update t1 set x= 2 where x = 1;
|
update t1 set x= 2 where x = 1;
|
||||||
connection slave;
|
connection slave;
|
||||||
select * from t1;
|
select * from t1 order by x;
|
||||||
x
|
x
|
||||||
2
|
2
|
||||||
select * from t1 for system_time all;
|
select * from t1 for system_time all order by row_end, x;
|
||||||
x
|
x
|
||||||
1
|
1
|
||||||
2
|
2
|
||||||
connection master;
|
connection master;
|
||||||
delete from t1;
|
delete from t1;
|
||||||
connection slave;
|
connection slave;
|
||||||
select * from t1;
|
select * from t1 order by x;
|
||||||
x
|
x
|
||||||
select * from t1 for system_time all;
|
select * from t1 for system_time all order by row_end, x;
|
||||||
x
|
x
|
||||||
1
|
1
|
||||||
2
|
2
|
||||||
@ -78,22 +78,22 @@ connection master;
|
|||||||
insert into t1 values (1);
|
insert into t1 values (1);
|
||||||
update t1 set x= 2 where x = 1;
|
update t1 set x= 2 where x = 1;
|
||||||
connection slave;
|
connection slave;
|
||||||
select * from t1;
|
select * from t1 order by x;
|
||||||
x
|
x
|
||||||
2
|
2
|
||||||
select * from t1 for system_time all;
|
select * from t1 for system_time all order by row_end, x;
|
||||||
x
|
x
|
||||||
2
|
|
||||||
1
|
1
|
||||||
|
2
|
||||||
connection master;
|
connection master;
|
||||||
delete from t1;
|
delete from t1;
|
||||||
connection slave;
|
connection slave;
|
||||||
select * from t1;
|
select * from t1 order by x;
|
||||||
x
|
x
|
||||||
select * from t1 for system_time all;
|
select * from t1 for system_time all order by row_end, x;
|
||||||
x
|
x
|
||||||
2
|
|
||||||
1
|
1
|
||||||
|
2
|
||||||
# multi-update
|
# multi-update
|
||||||
connection master;
|
connection master;
|
||||||
create or replace table t1 (x int) with system versioning;
|
create or replace table t1 (x int) with system versioning;
|
||||||
@ -102,20 +102,20 @@ insert into t1 values (1);
|
|||||||
insert into t2 values (2);
|
insert into t2 values (2);
|
||||||
update t1, t2 set t1.x=11, t2.x=22;
|
update t1, t2 set t1.x=11, t2.x=22;
|
||||||
connection slave;
|
connection slave;
|
||||||
select * from t1;
|
select * from t1 order by x;
|
||||||
x
|
x
|
||||||
11
|
11
|
||||||
select * from t2;
|
select * from t2 order by x;
|
||||||
x
|
x
|
||||||
22
|
22
|
||||||
select * from t1 for system_time all;
|
select * from t1 for system_time all order by row_end, x;
|
||||||
x
|
x
|
||||||
11
|
|
||||||
1
|
1
|
||||||
select * from t2 for system_time all;
|
11
|
||||||
|
select * from t2 for system_time all order by row_end, x;
|
||||||
x
|
x
|
||||||
22
|
|
||||||
2
|
2
|
||||||
|
22
|
||||||
# MDEV-14767 system_versioning_alter_history breaks ALTER replication
|
# MDEV-14767 system_versioning_alter_history breaks ALTER replication
|
||||||
## Case 1: KEEP on the master, ALTER will work on the slave
|
## Case 1: KEEP on the master, ALTER will work on the slave
|
||||||
connection master;
|
connection master;
|
||||||
|
14
mysql-test/suite/versioning/r/rpl_row.result
Normal file
14
mysql-test/suite/versioning/r/rpl_row.result
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
include/master-slave.inc
|
||||||
|
[connection master]
|
||||||
|
# MDEV-16252: MINIMAL binlog_row_image does not work for versioned tables
|
||||||
|
set @old_row_image= @@binlog_row_image;
|
||||||
|
set binlog_row_image= minimal;
|
||||||
|
create or replace table t1 (pk int, i int, primary key(pk))
|
||||||
|
with system versioning;
|
||||||
|
insert into t1 values (1,10),(2,20);
|
||||||
|
update t1 set i = 0;
|
||||||
|
connection slave;
|
||||||
|
connection master;
|
||||||
|
drop table t1;
|
||||||
|
set binlog_row_image= @old_row_image;
|
||||||
|
include/rpl_end.inc
|
@ -355,7 +355,7 @@ ERROR HY000: Table `t` is not system-versioned
|
|||||||
# TRANSACTION/TIMESTAMP specifier in SYSTEM_TIME [MDEV-14645, Issue #396]
|
# TRANSACTION/TIMESTAMP specifier in SYSTEM_TIME [MDEV-14645, Issue #396]
|
||||||
create or replace table t1 (x int) with system versioning engine myisam;
|
create or replace table t1 (x int) with system versioning engine myisam;
|
||||||
select * from t1 for system_time as of transaction 1;
|
select * from t1 for system_time as of transaction 1;
|
||||||
ERROR HY000: Transaction system versioning for `t1` is not supported
|
ERROR HY000: Transaction-precise system versioning for `t1` is not supported
|
||||||
create or replace table t1 (
|
create or replace table t1 (
|
||||||
x int,
|
x int,
|
||||||
sys_trx_start bigint unsigned as row start invisible,
|
sys_trx_start bigint unsigned as row start invisible,
|
||||||
|
@ -338,7 +338,7 @@ DECLARE var BIT(10);
|
|||||||
SELECT * FROM t2 FOR SYSTEM_TIME AS OF var;
|
SELECT * FROM t2 FOR SYSTEM_TIME AS OF var;
|
||||||
END;
|
END;
|
||||||
$$
|
$$
|
||||||
ERROR HY000: Transaction system versioning for `t2` is not supported
|
ERROR HY000: Transaction-precise system versioning for `t2` is not supported
|
||||||
#
|
#
|
||||||
# String literals resolve to TIMESTAMP
|
# String literals resolve to TIMESTAMP
|
||||||
#
|
#
|
||||||
@ -350,19 +350,17 @@ x
|
|||||||
#
|
#
|
||||||
# HEX hybrids resolve to TRANSACTION
|
# HEX hybrids resolve to TRANSACTION
|
||||||
#
|
#
|
||||||
SELECT * FROM t1 FOR SYSTEM_TIME AS OF (0x60);
|
SELECT * FROM t1 FOR SYSTEM_TIME AS OF (0xFFFFFFFF);
|
||||||
x
|
ERROR HY000: TRX_ID 4294967295 not found in `mysql.transaction_registry`
|
||||||
1
|
SELECT * FROM t2 FOR SYSTEM_TIME AS OF (0xFFFFFFFF);
|
||||||
SELECT * FROM t2 FOR SYSTEM_TIME AS OF (0x60);
|
ERROR HY000: Transaction-precise system versioning for `t2` is not supported
|
||||||
ERROR HY000: Transaction system versioning for `t2` is not supported
|
|
||||||
#
|
#
|
||||||
# BIT literals resolve to TRANSACTION
|
# BIT literals resolve to TRANSACTION
|
||||||
#
|
#
|
||||||
SELECT * FROM t1 FOR SYSTEM_TIME AS OF (b'1100000');
|
SELECT * FROM t1 FOR SYSTEM_TIME AS OF (b'11111111111111111111111111111111');
|
||||||
x
|
ERROR HY000: TRX_ID 4294967295 not found in `mysql.transaction_registry`
|
||||||
1
|
SELECT * FROM t2 FOR SYSTEM_TIME AS OF (b'11111111111111111111111111111111');
|
||||||
SELECT * FROM t2 FOR SYSTEM_TIME AS OF (b'1100000');
|
ERROR HY000: Transaction-precise system versioning for `t2` is not supported
|
||||||
ERROR HY000: Transaction system versioning for `t2` is not supported
|
|
||||||
DROP TABLE t1, t2;
|
DROP TABLE t1, t2;
|
||||||
#
|
#
|
||||||
# MDEV-16094 Crash when using AS OF with a stored function
|
# MDEV-16094 Crash when using AS OF with a stored function
|
||||||
@ -386,7 +384,7 @@ PERIOD FOR SYSTEM_TIME(start_timestamp, end_timestamp)
|
|||||||
SELECT * FROM tts FOR SYSTEM_TIME AS OF fts();
|
SELECT * FROM tts FOR SYSTEM_TIME AS OF fts();
|
||||||
x start_timestamp end_timestamp
|
x start_timestamp end_timestamp
|
||||||
SELECT * FROM tts FOR SYSTEM_TIME AS OF ftx();
|
SELECT * FROM tts FOR SYSTEM_TIME AS OF ftx();
|
||||||
ERROR HY000: Transaction system versioning for `tts` is not supported
|
ERROR HY000: Transaction-precise system versioning for `tts` is not supported
|
||||||
SELECT * FROM ttx FOR SYSTEM_TIME AS OF fts();
|
SELECT * FROM ttx FOR SYSTEM_TIME AS OF fts();
|
||||||
x start_timestamp end_timestamp
|
x start_timestamp end_timestamp
|
||||||
SELECT * FROM ttx FOR SYSTEM_TIME AS OF ftx();
|
SELECT * FROM ttx FOR SYSTEM_TIME AS OF ftx();
|
||||||
|
@ -1,13 +1,16 @@
|
|||||||
--- suite/versioning/r/update.result
|
--- update.result 2018-12-19 13:55:35.873917389 +0300
|
||||||
+++ suite/versioning/r/update.reject
|
+++ update,trx_id.reject 2018-12-19 13:55:35.533917399 +0300
|
||||||
@@ -88,10 +88,8 @@
|
@@ -81,12 +81,10 @@
|
||||||
5 3 1
|
commit;
|
||||||
3 1 0
|
select x, y, sys_trx_end = MAXVAL as current from t1 for system_time all order by sys_trx_end, x, y;
|
||||||
|
x y current
|
||||||
|
-3 1 0
|
||||||
2 1 0
|
2 1 0
|
||||||
-3 2 0
|
-3 2 0
|
||||||
|
+3 1 0
|
||||||
4 1 0
|
4 1 0
|
||||||
5 1 0
|
5 1 0
|
||||||
-5 2 0
|
-5 2 0
|
||||||
drop table t1;
|
1 1 1
|
||||||
create table t1 (
|
2 2 1
|
||||||
id int primary key auto_increment,
|
3 3 1
|
||||||
|
@ -6,7 +6,7 @@ sys_trx_end SYS_DATATYPE as row end invisible,
|
|||||||
period for system_time (sys_trx_start, sys_trx_end))
|
period for system_time (sys_trx_start, sys_trx_end))
|
||||||
with system versioning;
|
with system versioning;
|
||||||
insert into t1(x, y) values (1, 1000), (2, 2000), (3, 3000), (4, 4000), (5, 5000), (6, 6000), (7, 7000), (8, 8000), (9, 9000);
|
insert into t1(x, y) values (1, 1000), (2, 2000), (3, 3000), (4, 4000), (5, 5000), (6, 6000), (7, 7000), (8, 8000), (9, 9000);
|
||||||
select x, y from t1;
|
select x, y from t1 order by x, y;
|
||||||
x y
|
x y
|
||||||
1 1000
|
1 1000
|
||||||
2 2000
|
2 2000
|
||||||
@ -18,7 +18,7 @@ x y
|
|||||||
8 8000
|
8 8000
|
||||||
9 9000
|
9 9000
|
||||||
update t1 set y = y + 1 where x > 7;
|
update t1 set y = y + 1 where x > 7;
|
||||||
select x, y from t1;
|
select x, y from t1 order by x, y;
|
||||||
x y
|
x y
|
||||||
1 1000
|
1 1000
|
||||||
2 2000
|
2 2000
|
||||||
@ -29,19 +29,19 @@ x y
|
|||||||
7 7000
|
7 7000
|
||||||
8 8001
|
8 8001
|
||||||
9 9001
|
9 9001
|
||||||
select x, y from t1 for system_time all;
|
select x, y from t1 for system_time all order by sys_trx_end, x, y;
|
||||||
x y
|
x y
|
||||||
1 1000
|
|
||||||
2 2000
|
|
||||||
3 3000
|
|
||||||
4 4000
|
|
||||||
5 5000
|
|
||||||
6 6000
|
|
||||||
7 7000
|
|
||||||
8 8001
|
|
||||||
9 9001
|
|
||||||
8 8000
|
8 8000
|
||||||
9 9000
|
9 9000
|
||||||
|
1 1000
|
||||||
|
2 2000
|
||||||
|
3 3000
|
||||||
|
4 4000
|
||||||
|
5 5000
|
||||||
|
6 6000
|
||||||
|
7 7000
|
||||||
|
8 8001
|
||||||
|
9 9001
|
||||||
drop table t1;
|
drop table t1;
|
||||||
create table t1 (
|
create table t1 (
|
||||||
id bigint primary key,
|
id bigint primary key,
|
||||||
@ -79,19 +79,19 @@ update t1 set y= y + 1 where x = 3;
|
|||||||
update t1 set y= y + 1 where x > 3;
|
update t1 set y= y + 1 where x > 3;
|
||||||
update t1 set y= y + 1 where x > 4;
|
update t1 set y= y + 1 where x > 4;
|
||||||
commit;
|
commit;
|
||||||
select x, y, sys_trx_end = MAXVAL as current from t1 for system_time all;
|
select x, y, sys_trx_end = MAXVAL as current from t1 for system_time all order by sys_trx_end, x, y;
|
||||||
x y current
|
x y current
|
||||||
1 1 1
|
|
||||||
2 2 1
|
|
||||||
3 3 1
|
|
||||||
4 2 1
|
|
||||||
5 3 1
|
|
||||||
3 1 0
|
3 1 0
|
||||||
2 1 0
|
2 1 0
|
||||||
3 2 0
|
3 2 0
|
||||||
4 1 0
|
4 1 0
|
||||||
5 1 0
|
5 1 0
|
||||||
5 2 0
|
5 2 0
|
||||||
|
1 1 1
|
||||||
|
2 2 1
|
||||||
|
3 3 1
|
||||||
|
4 2 1
|
||||||
|
5 3 1
|
||||||
drop table t1;
|
drop table t1;
|
||||||
create table t1 (
|
create table t1 (
|
||||||
id int primary key auto_increment,
|
id int primary key auto_increment,
|
||||||
@ -129,15 +129,15 @@ with system versioning;
|
|||||||
insert into t1(x, y) values (1, 1000), (3, 3000), (4, 4000), (5, 5000);
|
insert into t1(x, y) values (1, 1000), (3, 3000), (4, 4000), (5, 5000);
|
||||||
insert into t1(x, y) values(3, 3000) on duplicate key update y = y+1;
|
insert into t1(x, y) values(3, 3000) on duplicate key update y = y+1;
|
||||||
insert into t1(x, y) values(4, 4444) on duplicate key update y = y+1;
|
insert into t1(x, y) values(4, 4444) on duplicate key update y = y+1;
|
||||||
select x, y from t1 for system_time all;
|
select x, y from t1 for system_time all order by sys_trx_end, x, y;
|
||||||
x y
|
x y
|
||||||
1 1000
|
|
||||||
3 3000
|
3 3000
|
||||||
|
1 1000
|
||||||
3 3001
|
3 3001
|
||||||
4 4000
|
4 4000
|
||||||
4 4444
|
4 4444
|
||||||
5 5000
|
5 5000
|
||||||
select x, y from t1;
|
select x, y from t1 order by x, y;
|
||||||
x y
|
x y
|
||||||
1 1000
|
1 1000
|
||||||
3 3001
|
3 3001
|
||||||
@ -156,20 +156,20 @@ create table t2 like t1;
|
|||||||
insert into t1(x, y) values (1, 1000), (2, 2000), (3, 3000), (4, 4000), (5, 5000), (6, 6000), (7, 7000), (8, 8000), (9, 9000);
|
insert into t1(x, y) values (1, 1000), (2, 2000), (3, 3000), (4, 4000), (5, 5000), (6, 6000), (7, 7000), (8, 8000), (9, 9000);
|
||||||
insert into t2(x, y) values (1, 1010), (2, 2010), (3, 3010), (4, 4010), (5, 5010), (6, 6010), (7, 7010), (8, 8010), (9, 9010);
|
insert into t2(x, y) values (1, 1010), (2, 2010), (3, 3010), (4, 4010), (5, 5010), (6, 6010), (7, 7010), (8, 8010), (9, 9010);
|
||||||
update t1, t2 set t1.y = t1.x + t1.y, t2.y = t2.x + t2.y where t1.x > 7 and t2.x < 7;
|
update t1, t2 set t1.y = t1.x + t1.y, t2.y = t2.x + t2.y where t1.x > 7 and t2.x < 7;
|
||||||
select x, y from t1 for system_time all;
|
select x, y from t1 for system_time all order by sys_trx_end, x, y;
|
||||||
x y
|
x y
|
||||||
1 1000
|
|
||||||
2 2000
|
|
||||||
3 3000
|
|
||||||
4 4000
|
|
||||||
5 5000
|
|
||||||
6 6000
|
|
||||||
7 7000
|
|
||||||
8 8008
|
|
||||||
9 9009
|
|
||||||
8 8000
|
8 8000
|
||||||
9 9000
|
9 9000
|
||||||
select x, y from t1;
|
1 1000
|
||||||
|
2 2000
|
||||||
|
3 3000
|
||||||
|
4 4000
|
||||||
|
5 5000
|
||||||
|
6 6000
|
||||||
|
7 7000
|
||||||
|
8 8008
|
||||||
|
9 9009
|
||||||
|
select x, y from t1 order by x, y;
|
||||||
x y
|
x y
|
||||||
1 1000
|
1 1000
|
||||||
2 2000
|
2 2000
|
||||||
@ -180,8 +180,14 @@ x y
|
|||||||
7 7000
|
7 7000
|
||||||
8 8008
|
8 8008
|
||||||
9 9009
|
9 9009
|
||||||
select x, y from t2 for system_time all;
|
select x, y from t2 for system_time all order by sys_trx_end, x, y;
|
||||||
x y
|
x y
|
||||||
|
1 1010
|
||||||
|
2 2010
|
||||||
|
3 3010
|
||||||
|
4 4010
|
||||||
|
5 5010
|
||||||
|
6 6010
|
||||||
1 1011
|
1 1011
|
||||||
2 2012
|
2 2012
|
||||||
3 3013
|
3 3013
|
||||||
@ -191,13 +197,7 @@ x y
|
|||||||
7 7010
|
7 7010
|
||||||
8 8010
|
8 8010
|
||||||
9 9010
|
9 9010
|
||||||
1 1010
|
select x, y from t2 order by x, y;
|
||||||
2 2010
|
|
||||||
3 3010
|
|
||||||
4 4010
|
|
||||||
5 5010
|
|
||||||
6 6010
|
|
||||||
select x, y from t2;
|
|
||||||
x y
|
x y
|
||||||
1 1011
|
1 1011
|
||||||
2 2012
|
2 2012
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
[timestamp]
|
|
||||||
default-storage-engine=innodb
|
|
||||||
|
|
||||||
[myisam]
|
|
||||||
default-storage-engine=myisam
|
|
@ -1,10 +1,16 @@
|
|||||||
-- source include/have_partition.inc
|
-- source include/have_partition.inc
|
||||||
-- source suite/versioning/common.inc
|
-- source suite/versioning/common.inc
|
||||||
|
-- source suite/versioning/engines.inc
|
||||||
|
|
||||||
set system_versioning_alter_history=keep;
|
set system_versioning_alter_history=keep;
|
||||||
--echo # Check conventional partitioning on temporal tables
|
--echo # Check conventional partitioning on temporal tables
|
||||||
|
|
||||||
create table t1 (x int)
|
--replace_result $sys_datatype_expl SYS_DATATYPE
|
||||||
|
eval create or replace table t1 (
|
||||||
|
x int,
|
||||||
|
row_start $sys_datatype_expl as row start invisible,
|
||||||
|
row_end $sys_datatype_expl as row end invisible,
|
||||||
|
period for system_time(row_start, row_end))
|
||||||
with system versioning
|
with system versioning
|
||||||
partition by range columns (x) (
|
partition by range columns (x) (
|
||||||
partition p0 values less than (100),
|
partition p0 values less than (100),
|
||||||
@ -24,8 +30,14 @@ select * from t1 partition (p0) for system_time all;
|
|||||||
select * from t1 partition (p1) for system_time all;
|
select * from t1 partition (p1) for system_time all;
|
||||||
|
|
||||||
--echo # Engine change native <-> non-native versioning prohibited
|
--echo # Engine change native <-> non-native versioning prohibited
|
||||||
--replace_result $default_engine DEFAULT_ENGINE
|
--replace_result $sys_datatype_expl SYS_DATATYPE $default_engine DEFAULT_ENGINE
|
||||||
eval create or replace table t1 (i int) engine=$default_engine with system versioning partition by hash(i);
|
eval create or replace table t1 (
|
||||||
|
i int,
|
||||||
|
row_start $sys_datatype_expl as row start invisible,
|
||||||
|
row_end $sys_datatype_expl as row end invisible,
|
||||||
|
period for system_time(row_start, row_end))
|
||||||
|
engine=$default_engine
|
||||||
|
with system versioning partition by hash(i);
|
||||||
--replace_result $non_default_engine NON_DEFAULT_ENGINE
|
--replace_result $non_default_engine NON_DEFAULT_ENGINE
|
||||||
--error ER_VERS_ALTER_ENGINE_PROHIBITED
|
--error ER_VERS_ALTER_ENGINE_PROHIBITED
|
||||||
eval alter table t1 engine=$non_default_engine;
|
eval alter table t1 engine=$non_default_engine;
|
||||||
@ -273,15 +285,24 @@ select * from t1 partition (p0sp1);
|
|||||||
select * from t1 partition (p1sp0);
|
select * from t1 partition (p1sp0);
|
||||||
select * from t1 partition (p1sp1);
|
select * from t1 partition (p1sp1);
|
||||||
|
|
||||||
create or replace table t1 (a bigint)
|
--replace_result $sys_datatype_expl SYS_DATATYPE
|
||||||
|
eval create or replace table t1 (
|
||||||
|
a bigint,
|
||||||
|
row_start $sys_datatype_expl as row start invisible,
|
||||||
|
row_end $sys_datatype_expl as row end invisible,
|
||||||
|
period for system_time(row_start, row_end))
|
||||||
with system versioning
|
with system versioning
|
||||||
partition by range (a)
|
partition by range (a)
|
||||||
(partition p0 values less than (20) engine innodb,
|
(partition p0 values less than (20) engine innodb,
|
||||||
partition p1 values less than maxvalue engine innodb);
|
partition p1 values less than maxvalue engine innodb);
|
||||||
insert into t1 values (1);
|
insert into t1 values (1);
|
||||||
|
|
||||||
create or replace table t1 (
|
--replace_result $sys_datatype_expl SYS_DATATYPE
|
||||||
f_int1 integer default 0
|
eval create or replace table t1 (
|
||||||
|
f_int1 integer default 0,
|
||||||
|
row_start $sys_datatype_expl as row start invisible,
|
||||||
|
row_end $sys_datatype_expl as row end invisible,
|
||||||
|
period for system_time(row_start, row_end)
|
||||||
) with system versioning
|
) with system versioning
|
||||||
partition by range(f_int1)
|
partition by range(f_int1)
|
||||||
subpartition by hash(f_int1)
|
subpartition by hash(f_int1)
|
||||||
@ -291,7 +312,12 @@ subpartition subpart12 storage engine = 'innodb'));
|
|||||||
insert into t1 values (1);
|
insert into t1 values (1);
|
||||||
|
|
||||||
create or replace table t1 (i int) engine=innodb partition by key(i);
|
create or replace table t1 (i int) engine=innodb partition by key(i);
|
||||||
alter table t1 add system versioning;
|
--replace_result $sys_datatype_expl SYS_DATATYPE
|
||||||
|
eval alter table t1
|
||||||
|
add column row_start $sys_datatype_expl as row start invisible,
|
||||||
|
add column row_end $sys_datatype_expl as row end invisible,
|
||||||
|
add period for system_time(row_start, row_end),
|
||||||
|
add system versioning;
|
||||||
insert into t1 values();
|
insert into t1 values();
|
||||||
|
|
||||||
--echo # MDEV-14722 Assertion in ha_commit_trans for sub-statement
|
--echo # MDEV-14722 Assertion in ha_commit_trans for sub-statement
|
||||||
|
80
mysql-test/suite/versioning/t/partition_innodb.test
Normal file
80
mysql-test/suite/versioning/t/partition_innodb.test
Normal file
@ -0,0 +1,80 @@
|
|||||||
|
--source include/have_innodb.inc
|
||||||
|
--source include/have_partition.inc
|
||||||
|
|
||||||
|
--echo # MDEV-15951 system versioning by trx id doesn't work with partitioning
|
||||||
|
--echo # currently trx_id does not support partitioning by system_time
|
||||||
|
--error ER_VERS_FIELD_WRONG_TYPE
|
||||||
|
create or replace table t1(
|
||||||
|
i int,
|
||||||
|
row_start bigint unsigned generated always as row start,
|
||||||
|
row_end bigint unsigned generated always as row end,
|
||||||
|
period for system_time(row_start, row_end)
|
||||||
|
) engine=InnoDB with system versioning partition by system_time (
|
||||||
|
partition p0 history,
|
||||||
|
partition pn current
|
||||||
|
);
|
||||||
|
|
||||||
|
create or replace table t1(
|
||||||
|
i int,
|
||||||
|
row_start bigint unsigned generated always as row start,
|
||||||
|
row_end bigint unsigned generated always as row end,
|
||||||
|
period for system_time(row_start, row_end)
|
||||||
|
) engine=InnoDB with system versioning;
|
||||||
|
|
||||||
|
--replace_regex /#sql-[0-9a-f_]*/#sql-temporary/
|
||||||
|
--error ER_VERS_FIELD_WRONG_TYPE
|
||||||
|
alter table t1 partition by system_time (
|
||||||
|
partition p0 history,
|
||||||
|
partition pn current
|
||||||
|
);
|
||||||
|
|
||||||
|
--error ER_VERS_TRX_PART_HISTORIC_ROW_NOT_SUPPORTED
|
||||||
|
create or replace table t (
|
||||||
|
a int primary key,
|
||||||
|
row_start bigint unsigned as row start invisible,
|
||||||
|
row_end bigint unsigned as row end invisible,
|
||||||
|
period for system_time(row_start, row_end)
|
||||||
|
) engine=innodb with system versioning
|
||||||
|
partition by key() (
|
||||||
|
partition p1,
|
||||||
|
partition p2
|
||||||
|
);
|
||||||
|
|
||||||
|
--error ER_VERS_TRX_PART_HISTORIC_ROW_NOT_SUPPORTED
|
||||||
|
create or replace table t (
|
||||||
|
a int primary key,
|
||||||
|
row_start bigint unsigned as row start invisible,
|
||||||
|
row_end bigint unsigned as row end invisible,
|
||||||
|
period for system_time(row_start, row_end)
|
||||||
|
) engine=innodb with system versioning
|
||||||
|
partition by key(a, row_start) (
|
||||||
|
partition p1,
|
||||||
|
partition p2
|
||||||
|
);
|
||||||
|
|
||||||
|
--error ER_VERS_TRX_PART_HISTORIC_ROW_NOT_SUPPORTED
|
||||||
|
create or replace table t (
|
||||||
|
a int primary key,
|
||||||
|
row_start bigint unsigned as row start invisible,
|
||||||
|
row_end bigint unsigned as row end invisible,
|
||||||
|
period for system_time(row_start, row_end)
|
||||||
|
) engine=innodb with system versioning
|
||||||
|
partition by hash(a + row_end * 2) (
|
||||||
|
partition p1,
|
||||||
|
partition p2
|
||||||
|
);
|
||||||
|
|
||||||
|
--error ER_VERS_TRX_PART_HISTORIC_ROW_NOT_SUPPORTED
|
||||||
|
create or replace table t (
|
||||||
|
a int primary key,
|
||||||
|
row_start bigint unsigned as row start invisible,
|
||||||
|
row_end bigint unsigned as row end invisible,
|
||||||
|
period for system_time(row_start, row_end)
|
||||||
|
) engine=innodb with system versioning
|
||||||
|
partition by range columns (a, row_start) (
|
||||||
|
partition p1 values less than (100, 100)
|
||||||
|
);
|
||||||
|
|
||||||
|
--echo # Test cleanup
|
||||||
|
drop database test;
|
||||||
|
create database test;
|
@ -14,24 +14,24 @@ let $slave_com_update_before= query_get_value(SHOW GLOBAL STATUS LIKE 'com_updat
|
|||||||
connection master;
|
connection master;
|
||||||
CREATE TABLE t1 (x int) with system versioning;
|
CREATE TABLE t1 (x int) with system versioning;
|
||||||
insert into t1 values (1);
|
insert into t1 values (1);
|
||||||
SELECT * FROM t1;
|
select * from t1 order by x;
|
||||||
delete from t1;
|
delete from t1;
|
||||||
select * from t1;
|
select * from t1 order by x;
|
||||||
select * from t1 for system_time all;
|
select * from t1 for system_time all order by row_end, x;
|
||||||
sync_slave_with_master;
|
sync_slave_with_master;
|
||||||
select * from t1;
|
select * from t1 order by x;
|
||||||
select * from t1 for system_time all;
|
select * from t1 for system_time all order by row_end, x;
|
||||||
|
|
||||||
connection master;
|
connection master;
|
||||||
insert into t1 values (2);
|
insert into t1 values (2);
|
||||||
sync_slave_with_master;
|
sync_slave_with_master;
|
||||||
select * from t1;
|
select * from t1 order by x;
|
||||||
|
|
||||||
connection master;
|
connection master;
|
||||||
update t1 set x = 3;
|
update t1 set x = 3;
|
||||||
sync_slave_with_master;
|
sync_slave_with_master;
|
||||||
select * from t1;
|
select * from t1 order by x;
|
||||||
select * from t1 for system_time all;
|
select * from t1 for system_time all order by row_end, x;
|
||||||
|
|
||||||
--echo # check unversioned -> versioned replication
|
--echo # check unversioned -> versioned replication
|
||||||
connection master;
|
connection master;
|
||||||
@ -42,20 +42,20 @@ alter table t1 with system versioning;
|
|||||||
connection master;
|
connection master;
|
||||||
insert into t1 values (1);
|
insert into t1 values (1);
|
||||||
sync_slave_with_master;
|
sync_slave_with_master;
|
||||||
select * from t1;
|
select * from t1 order by x;
|
||||||
select * from t1 for system_time all;
|
select * from t1 for system_time all order by row_end, x;
|
||||||
|
|
||||||
connection master;
|
connection master;
|
||||||
update t1 set x= 2 where x = 1;
|
update t1 set x= 2 where x = 1;
|
||||||
sync_slave_with_master;
|
sync_slave_with_master;
|
||||||
select * from t1;
|
select * from t1 order by x;
|
||||||
select * from t1 for system_time all;
|
select * from t1 for system_time all order by row_end, x;
|
||||||
|
|
||||||
connection master;
|
connection master;
|
||||||
delete from t1;
|
delete from t1;
|
||||||
sync_slave_with_master;
|
sync_slave_with_master;
|
||||||
select * from t1;
|
select * from t1 order by x;
|
||||||
select * from t1 for system_time all;
|
select * from t1 for system_time all order by row_end, x;
|
||||||
|
|
||||||
--echo # same thing (UPDATE, DELETE), but without PK
|
--echo # same thing (UPDATE, DELETE), but without PK
|
||||||
connection master;
|
connection master;
|
||||||
@ -67,14 +67,14 @@ connection master;
|
|||||||
insert into t1 values (1);
|
insert into t1 values (1);
|
||||||
update t1 set x= 2 where x = 1;
|
update t1 set x= 2 where x = 1;
|
||||||
sync_slave_with_master;
|
sync_slave_with_master;
|
||||||
select * from t1;
|
select * from t1 order by x;
|
||||||
select * from t1 for system_time all;
|
select * from t1 for system_time all order by row_end, x;
|
||||||
|
|
||||||
connection master;
|
connection master;
|
||||||
delete from t1;
|
delete from t1;
|
||||||
sync_slave_with_master;
|
sync_slave_with_master;
|
||||||
select * from t1;
|
select * from t1 order by x;
|
||||||
select * from t1 for system_time all;
|
select * from t1 for system_time all order by row_end, x;
|
||||||
|
|
||||||
--echo # multi-update
|
--echo # multi-update
|
||||||
connection master;
|
connection master;
|
||||||
@ -84,10 +84,10 @@ insert into t1 values (1);
|
|||||||
insert into t2 values (2);
|
insert into t2 values (2);
|
||||||
update t1, t2 set t1.x=11, t2.x=22;
|
update t1, t2 set t1.x=11, t2.x=22;
|
||||||
sync_slave_with_master;
|
sync_slave_with_master;
|
||||||
select * from t1;
|
select * from t1 order by x;
|
||||||
select * from t2;
|
select * from t2 order by x;
|
||||||
select * from t1 for system_time all;
|
select * from t1 for system_time all order by row_end, x;
|
||||||
select * from t2 for system_time all;
|
select * from t2 for system_time all order by row_end, x;
|
||||||
|
|
||||||
--echo # MDEV-14767 system_versioning_alter_history breaks ALTER replication
|
--echo # MDEV-14767 system_versioning_alter_history breaks ALTER replication
|
||||||
--echo ## Case 1: KEEP on the master, ALTER will work on the slave
|
--echo ## Case 1: KEEP on the master, ALTER will work on the slave
|
||||||
|
18
mysql-test/suite/versioning/t/rpl_row.test
Normal file
18
mysql-test/suite/versioning/t/rpl_row.test
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
--source include/have_binlog_format_row.inc
|
||||||
|
--source include/master-slave.inc
|
||||||
|
|
||||||
|
--echo # MDEV-16252: MINIMAL binlog_row_image does not work for versioned tables
|
||||||
|
set @old_row_image= @@binlog_row_image;
|
||||||
|
set binlog_row_image= minimal;
|
||||||
|
|
||||||
|
create or replace table t1 (pk int, i int, primary key(pk))
|
||||||
|
with system versioning;
|
||||||
|
insert into t1 values (1,10),(2,20);
|
||||||
|
update t1 set i = 0;
|
||||||
|
|
||||||
|
--sync_slave_with_master
|
||||||
|
--connection master
|
||||||
|
drop table t1;
|
||||||
|
set binlog_row_image= @old_row_image;
|
||||||
|
|
||||||
|
--source include/rpl_end.inc
|
@ -361,18 +361,20 @@ SELECT * FROM t2 FOR SYSTEM_TIME AS OF '2038-12-30 00:00:00';
|
|||||||
--echo # HEX hybrids resolve to TRANSACTION
|
--echo # HEX hybrids resolve to TRANSACTION
|
||||||
--echo #
|
--echo #
|
||||||
|
|
||||||
SELECT * FROM t1 FOR SYSTEM_TIME AS OF (0x60);
|
--error ER_VERS_NO_TRX_ID
|
||||||
|
SELECT * FROM t1 FOR SYSTEM_TIME AS OF (0xFFFFFFFF);
|
||||||
--error ER_VERS_ENGINE_UNSUPPORTED
|
--error ER_VERS_ENGINE_UNSUPPORTED
|
||||||
SELECT * FROM t2 FOR SYSTEM_TIME AS OF (0x60);
|
SELECT * FROM t2 FOR SYSTEM_TIME AS OF (0xFFFFFFFF);
|
||||||
|
|
||||||
|
|
||||||
--echo #
|
--echo #
|
||||||
--echo # BIT literals resolve to TRANSACTION
|
--echo # BIT literals resolve to TRANSACTION
|
||||||
--echo #
|
--echo #
|
||||||
|
|
||||||
SELECT * FROM t1 FOR SYSTEM_TIME AS OF (b'1100000');
|
--error ER_VERS_NO_TRX_ID
|
||||||
|
SELECT * FROM t1 FOR SYSTEM_TIME AS OF (b'11111111111111111111111111111111');
|
||||||
--error ER_VERS_ENGINE_UNSUPPORTED
|
--error ER_VERS_ENGINE_UNSUPPORTED
|
||||||
SELECT * FROM t2 FOR SYSTEM_TIME AS OF (b'1100000');
|
SELECT * FROM t2 FOR SYSTEM_TIME AS OF (b'11111111111111111111111111111111');
|
||||||
|
|
||||||
DROP TABLE t1, t2;
|
DROP TABLE t1, t2;
|
||||||
|
|
||||||
|
@ -11,10 +11,10 @@ eval create table t1(
|
|||||||
with system versioning;
|
with system versioning;
|
||||||
|
|
||||||
insert into t1(x, y) values (1, 1000), (2, 2000), (3, 3000), (4, 4000), (5, 5000), (6, 6000), (7, 7000), (8, 8000), (9, 9000);
|
insert into t1(x, y) values (1, 1000), (2, 2000), (3, 3000), (4, 4000), (5, 5000), (6, 6000), (7, 7000), (8, 8000), (9, 9000);
|
||||||
select x, y from t1;
|
select x, y from t1 order by x, y;
|
||||||
update t1 set y = y + 1 where x > 7;
|
update t1 set y = y + 1 where x > 7;
|
||||||
select x, y from t1;
|
select x, y from t1 order by x, y;
|
||||||
select x, y from t1 for system_time all;
|
select x, y from t1 for system_time all order by sys_trx_end, x, y;
|
||||||
drop table t1;
|
drop table t1;
|
||||||
|
|
||||||
replace_result $sys_datatype_expl SYS_DATATYPE;
|
replace_result $sys_datatype_expl SYS_DATATYPE;
|
||||||
@ -56,7 +56,7 @@ update t1 set y= y + 1 where x > 4;
|
|||||||
commit;
|
commit;
|
||||||
|
|
||||||
replace_result $sys_datatype_max MAXVAL;
|
replace_result $sys_datatype_max MAXVAL;
|
||||||
eval select x, y, sys_trx_end = $sys_datatype_max as current from t1 for system_time all;
|
eval select x, y, sys_trx_end = $sys_datatype_max as current from t1 for system_time all order by sys_trx_end, x, y;
|
||||||
|
|
||||||
drop table t1;
|
drop table t1;
|
||||||
|
|
||||||
@ -95,8 +95,8 @@ with system versioning;
|
|||||||
insert into t1(x, y) values (1, 1000), (3, 3000), (4, 4000), (5, 5000);
|
insert into t1(x, y) values (1, 1000), (3, 3000), (4, 4000), (5, 5000);
|
||||||
insert into t1(x, y) values(3, 3000) on duplicate key update y = y+1;
|
insert into t1(x, y) values(3, 3000) on duplicate key update y = y+1;
|
||||||
insert into t1(x, y) values(4, 4444) on duplicate key update y = y+1;
|
insert into t1(x, y) values(4, 4444) on duplicate key update y = y+1;
|
||||||
select x, y from t1 for system_time all;
|
select x, y from t1 for system_time all order by sys_trx_end, x, y;
|
||||||
select x, y from t1;
|
select x, y from t1 order by x, y;
|
||||||
drop table t1;
|
drop table t1;
|
||||||
|
|
||||||
replace_result $sys_datatype_expl SYS_DATATYPE;
|
replace_result $sys_datatype_expl SYS_DATATYPE;
|
||||||
@ -111,10 +111,10 @@ create table t2 like t1;
|
|||||||
insert into t1(x, y) values (1, 1000), (2, 2000), (3, 3000), (4, 4000), (5, 5000), (6, 6000), (7, 7000), (8, 8000), (9, 9000);
|
insert into t1(x, y) values (1, 1000), (2, 2000), (3, 3000), (4, 4000), (5, 5000), (6, 6000), (7, 7000), (8, 8000), (9, 9000);
|
||||||
insert into t2(x, y) values (1, 1010), (2, 2010), (3, 3010), (4, 4010), (5, 5010), (6, 6010), (7, 7010), (8, 8010), (9, 9010);
|
insert into t2(x, y) values (1, 1010), (2, 2010), (3, 3010), (4, 4010), (5, 5010), (6, 6010), (7, 7010), (8, 8010), (9, 9010);
|
||||||
update t1, t2 set t1.y = t1.x + t1.y, t2.y = t2.x + t2.y where t1.x > 7 and t2.x < 7;
|
update t1, t2 set t1.y = t1.x + t1.y, t2.y = t2.x + t2.y where t1.x > 7 and t2.x < 7;
|
||||||
select x, y from t1 for system_time all;
|
select x, y from t1 for system_time all order by sys_trx_end, x, y;
|
||||||
select x, y from t1;
|
select x, y from t1 order by x, y;
|
||||||
select x, y from t2 for system_time all;
|
select x, y from t2 for system_time all order by sys_trx_end, x, y;
|
||||||
select x, y from t2;
|
select x, y from t2 order by x, y;
|
||||||
drop table t1;
|
drop table t1;
|
||||||
drop table t2;
|
drop table t2;
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
Copyright (c) 2014 Google Inc.
|
Copyright (c) 2014 Google Inc.
|
||||||
Copyright (c) 2014, 2017 MariaDB Corporation
|
Copyright (c) 2014, 2019, MariaDB Corporation.
|
||||||
|
|
||||||
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
|
||||||
@ -93,7 +93,8 @@ public:
|
|||||||
this->key= key;
|
this->key= key;
|
||||||
this->klen= klen;
|
this->klen= klen;
|
||||||
this->buf_len= 0;
|
this->buf_len= 0;
|
||||||
memcpy(oiv, iv, ivlen);
|
if (ivlen)
|
||||||
|
memcpy(oiv, iv, ivlen);
|
||||||
DBUG_ASSERT(ivlen == 0 || ivlen == sizeof(oiv));
|
DBUG_ASSERT(ivlen == 0 || ivlen == sizeof(oiv));
|
||||||
|
|
||||||
int res= MyCTX::init(cipher, encrypt, key, klen, iv, ivlen);
|
int res= MyCTX::init(cipher, encrypt, key, klen, iv, ivlen);
|
||||||
|
@ -8,6 +8,7 @@ IF(HAVE_PAM_APPL_H)
|
|||||||
IF(HAVE_STRNDUP)
|
IF(HAVE_STRNDUP)
|
||||||
ADD_DEFINITIONS(-DHAVE_STRNDUP)
|
ADD_DEFINITIONS(-DHAVE_STRNDUP)
|
||||||
ENDIF(HAVE_STRNDUP)
|
ENDIF(HAVE_STRNDUP)
|
||||||
|
FIND_LIBRARY(PAM_LIBRARY pam)
|
||||||
ADD_DEFINITIONS(-D_GNU_SOURCE)
|
ADD_DEFINITIONS(-D_GNU_SOURCE)
|
||||||
MYSQL_ADD_PLUGIN(auth_pam_v1 auth_pam_v1.c LINK_LIBRARIES pam MODULE_ONLY)
|
MYSQL_ADD_PLUGIN(auth_pam_v1 auth_pam_v1.c LINK_LIBRARIES pam MODULE_ONLY)
|
||||||
MYSQL_ADD_PLUGIN(auth_pam auth_pam.c LINK_LIBRARIES pam dl MODULE_ONLY)
|
MYSQL_ADD_PLUGIN(auth_pam auth_pam.c LINK_LIBRARIES pam dl MODULE_ONLY)
|
||||||
@ -19,4 +20,3 @@ IF(HAVE_PAM_APPL_H)
|
|||||||
WORKING_DIRECTORY \$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${INSTALL_PLUGINDIR}/)"
|
WORKING_DIRECTORY \$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${INSTALL_PLUGINDIR}/)"
|
||||||
COMPONENT Server)
|
COMPONENT Server)
|
||||||
ENDIF(HAVE_PAM_APPL_H)
|
ENDIF(HAVE_PAM_APPL_H)
|
||||||
|
|
||||||
|
@ -6938,8 +6938,11 @@ Field_longstr::check_string_copy_error(const String_copier *copier,
|
|||||||
if (likely(!(pos= copier->most_important_error_pos())))
|
if (likely(!(pos= copier->most_important_error_pos())))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
convert_to_printable(tmp, sizeof(tmp), pos, (end - pos), cs, 6);
|
if (!is_stat_field)
|
||||||
set_warning_truncated_wrong_value("string", tmp);
|
{
|
||||||
|
convert_to_printable(tmp, sizeof(tmp), pos, (end - pos), cs, 6);
|
||||||
|
set_warning_truncated_wrong_value("string", tmp);
|
||||||
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -412,6 +412,22 @@ public:
|
|||||||
|
|
||||||
virtual void return_record_by_parent();
|
virtual void return_record_by_parent();
|
||||||
|
|
||||||
|
virtual bool vers_can_native(THD *thd)
|
||||||
|
{
|
||||||
|
if (thd->lex->part_info)
|
||||||
|
{
|
||||||
|
// PARTITION BY SYSTEM_TIME is not supported for now
|
||||||
|
return thd->lex->part_info->part_type != VERSIONING_PARTITION;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
bool can= true;
|
||||||
|
for (uint i= 0; i < m_tot_parts && can; i++)
|
||||||
|
can= can && m_file[i]->vers_can_native(thd);
|
||||||
|
return can;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
-------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
MODULE create/delete handler object
|
MODULE create/delete handler object
|
||||||
|
@ -7403,28 +7403,6 @@ bool Vers_parse_info::fix_implicit(THD *thd, Alter_info *alter_info)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Table_scope_and_contents_source_pod_st::vers_native(THD *thd) const
|
|
||||||
{
|
|
||||||
if (ha_check_storage_engine_flag(db_type, HTON_NATIVE_SYS_VERSIONING))
|
|
||||||
return true;
|
|
||||||
|
|
||||||
#ifdef WITH_PARTITION_STORAGE_ENGINE
|
|
||||||
partition_info *info= thd->work_part_info;
|
|
||||||
if (info && !(used_fields & HA_CREATE_USED_ENGINE))
|
|
||||||
{
|
|
||||||
if (handlerton *hton= info->default_engine_type)
|
|
||||||
return ha_check_storage_engine_flag(hton, HTON_NATIVE_SYS_VERSIONING);
|
|
||||||
|
|
||||||
List_iterator_fast<partition_element> it(info->partitions);
|
|
||||||
while (partition_element *partition_element= it++)
|
|
||||||
{
|
|
||||||
if (partition_element->find_engine_flag(HTON_NATIVE_SYS_VERSIONING))
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool Table_scope_and_contents_source_st::vers_fix_system_fields(
|
bool Table_scope_and_contents_source_st::vers_fix_system_fields(
|
||||||
THD *thd, Alter_info *alter_info, const TABLE_LIST &create_table,
|
THD *thd, Alter_info *alter_info, const TABLE_LIST &create_table,
|
||||||
@ -7501,7 +7479,7 @@ bool Table_scope_and_contents_source_st::vers_check_system_fields(
|
|||||||
if (!(options & HA_VERSIONED_TABLE))
|
if (!(options & HA_VERSIONED_TABLE))
|
||||||
return false;
|
return false;
|
||||||
return vers_info.check_sys_fields(create_table.table_name, create_table.db,
|
return vers_info.check_sys_fields(create_table.table_name, create_table.db,
|
||||||
alter_info, vers_native(thd));
|
alter_info);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -7610,8 +7588,7 @@ bool Vers_parse_info::fix_alter_info(THD *thd, Alter_info *alter_info,
|
|||||||
|
|
||||||
if (alter_info->flags & ALTER_ADD_SYSTEM_VERSIONING)
|
if (alter_info->flags & ALTER_ADD_SYSTEM_VERSIONING)
|
||||||
{
|
{
|
||||||
bool native= create_info->vers_native(thd);
|
if (check_sys_fields(table_name, share->db, alter_info))
|
||||||
if (check_sys_fields(table_name, share->db, alter_info, native))
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -7718,7 +7695,7 @@ bool Vers_parse_info::check_conditions(const Lex_table_name &table_name,
|
|||||||
|
|
||||||
bool Vers_parse_info::check_sys_fields(const Lex_table_name &table_name,
|
bool Vers_parse_info::check_sys_fields(const Lex_table_name &table_name,
|
||||||
const Lex_table_name &db,
|
const Lex_table_name &db,
|
||||||
Alter_info *alter_info, bool native)
|
Alter_info *alter_info)
|
||||||
{
|
{
|
||||||
if (check_conditions(table_name, db))
|
if (check_conditions(table_name, db))
|
||||||
return true;
|
return true;
|
||||||
@ -7749,8 +7726,7 @@ bool Vers_parse_info::check_sys_fields(const Lex_table_name &table_name,
|
|||||||
{
|
{
|
||||||
f_check_unit= VERS_TIMESTAMP;
|
f_check_unit= VERS_TIMESTAMP;
|
||||||
}
|
}
|
||||||
else if (native
|
else if (f->type_handler() == &type_handler_longlong
|
||||||
&& f->type_handler() == &type_handler_longlong
|
|
||||||
&& (f->flags & UNSIGNED_FLAG)
|
&& (f->flags & UNSIGNED_FLAG)
|
||||||
&& f->length == (MY_INT64_NUM_DECIMAL_DIGITS - 1))
|
&& f->length == (MY_INT64_NUM_DECIMAL_DIGITS - 1))
|
||||||
{
|
{
|
||||||
|
@ -2056,7 +2056,7 @@ public:
|
|||||||
TABLE_LIST &src_table, TABLE_LIST &table);
|
TABLE_LIST &src_table, TABLE_LIST &table);
|
||||||
bool check_sys_fields(const Lex_table_name &table_name,
|
bool check_sys_fields(const Lex_table_name &table_name,
|
||||||
const Lex_table_name &db,
|
const Lex_table_name &db,
|
||||||
Alter_info *alter_info, bool native);
|
Alter_info *alter_info);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
At least one field was specified 'WITH/WITHOUT SYSTEM VERSIONING'.
|
At least one field was specified 'WITH/WITHOUT SYSTEM VERSIONING'.
|
||||||
@ -2140,8 +2140,6 @@ struct Table_scope_and_contents_source_pod_st // For trivial members
|
|||||||
bool table_was_deleted;
|
bool table_was_deleted;
|
||||||
sequence_definition *seq_create_info;
|
sequence_definition *seq_create_info;
|
||||||
|
|
||||||
bool vers_native(THD *thd) const;
|
|
||||||
|
|
||||||
void init()
|
void init()
|
||||||
{
|
{
|
||||||
bzero(this, sizeof(*this));
|
bzero(this, sizeof(*this));
|
||||||
@ -3576,6 +3574,10 @@ public:
|
|||||||
ha_pre_index_end() :
|
ha_pre_index_end() :
|
||||||
pre_inited == RND ? ha_pre_rnd_end() : 0 );
|
pre_inited == RND ? ha_pre_rnd_end() : 0 );
|
||||||
}
|
}
|
||||||
|
virtual bool vers_can_native(THD *thd)
|
||||||
|
{
|
||||||
|
return ht->flags & HTON_NATIVE_SYS_VERSIONING;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@brief
|
@brief
|
||||||
|
@ -525,7 +525,7 @@ class Rewritable_query_parameter
|
|||||||
Value of 0 means that this object doesn't have to be replaced
|
Value of 0 means that this object doesn't have to be replaced
|
||||||
(for example SP variables in control statements)
|
(for example SP variables in control statements)
|
||||||
*/
|
*/
|
||||||
uint pos_in_query;
|
my_ptrdiff_t pos_in_query;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Byte length of parameter name in the statement. This is not
|
Byte length of parameter name in the statement. This is not
|
||||||
|
@ -61,10 +61,7 @@ Item_func_trt_ts::get_date(THD *thd, MYSQL_TIME *res, date_mode_t fuzzydate)
|
|||||||
|
|
||||||
null_value= !trt.query(trx_id);
|
null_value= !trt.query(trx_id);
|
||||||
if (null_value)
|
if (null_value)
|
||||||
{
|
|
||||||
my_error(ER_VERS_NO_TRX_ID, MYF(0), (longlong) trx_id);
|
|
||||||
return true;
|
return true;
|
||||||
}
|
|
||||||
|
|
||||||
return trt[trt_field]->get_date(res, fuzzydate);
|
return trt[trt_field]->get_date(res, fuzzydate);
|
||||||
}
|
}
|
||||||
|
@ -9747,9 +9747,9 @@ TC_LOG_BINLOG::log_and_order(THD *thd, my_xid xid, bool all,
|
|||||||
*/
|
*/
|
||||||
if (!xid || !need_unlog)
|
if (!xid || !need_unlog)
|
||||||
DBUG_RETURN(BINLOG_COOKIE_DUMMY(cache_mngr->delayed_error));
|
DBUG_RETURN(BINLOG_COOKIE_DUMMY(cache_mngr->delayed_error));
|
||||||
else
|
|
||||||
DBUG_RETURN(BINLOG_COOKIE_MAKE(cache_mngr->binlog_id,
|
DBUG_RETURN(BINLOG_COOKIE_MAKE(cache_mngr->binlog_id,
|
||||||
cache_mngr->delayed_error));
|
cache_mngr->delayed_error));
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -8390,7 +8390,8 @@ mysqld_get_one_option(int optid, const struct my_option *opt, char *argument)
|
|||||||
val= p--;
|
val= p--;
|
||||||
while (my_isspace(mysqld_charset, *p) && p > argument)
|
while (my_isspace(mysqld_charset, *p) && p > argument)
|
||||||
*p-- = 0;
|
*p-- = 0;
|
||||||
if (p == argument)
|
/* Db name can be one char also */
|
||||||
|
if (p == argument && my_isspace(mysqld_charset, *p))
|
||||||
{
|
{
|
||||||
sql_print_error("Bad syntax in replicate-rewrite-db - empty FROM db!");
|
sql_print_error("Bad syntax in replicate-rewrite-db - empty FROM db!");
|
||||||
return 1;
|
return 1;
|
||||||
|
@ -176,21 +176,6 @@ public:
|
|||||||
DBUG_ASSERT(ev->col_val_array);
|
DBUG_ASSERT(ev->col_val_array);
|
||||||
return ev->col_val_array[idx];
|
return ev->col_val_array[idx];
|
||||||
}
|
}
|
||||||
|
|
||||||
bool find_engine_flag(uint32 flag)
|
|
||||||
{
|
|
||||||
if (ha_check_storage_engine_flag(engine_type, flag))
|
|
||||||
return true;
|
|
||||||
|
|
||||||
List_iterator_fast<partition_element> it(subpartitions);
|
|
||||||
while (partition_element *element= it++)
|
|
||||||
{
|
|
||||||
if (element->find_engine_flag(flag))
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* PARTITION_ELEMENT_INCLUDED */
|
#endif /* PARTITION_ELEMENT_INCLUDED */
|
||||||
|
@ -2377,31 +2377,8 @@ ER_TABLE_NOT_LOCKED
|
|||||||
spa "Tabla '%-.192s' no fue trabada con LOCK TABLES"
|
spa "Tabla '%-.192s' no fue trabada con LOCK TABLES"
|
||||||
swe "Tabell '%-.192s' är inte låst med LOCK TABLES"
|
swe "Tabell '%-.192s' är inte låst med LOCK TABLES"
|
||||||
ukr "Таблицю '%-.192s' не було блоковано з LOCK TABLES"
|
ukr "Таблицю '%-.192s' не було блоковано з LOCK TABLES"
|
||||||
ER_BLOB_CANT_HAVE_DEFAULT 42000
|
ER_UNUSED_17
|
||||||
cze "Blob položka '%-.192s' nemůže mít defaultní hodnotu"
|
eng "You should never see it"
|
||||||
dan "BLOB feltet '%-.192s' kan ikke have en standard værdi"
|
|
||||||
nla "Blob veld '%-.192s' can geen standaardwaarde bevatten"
|
|
||||||
eng "BLOB/TEXT column '%-.192s' can't have a default value"
|
|
||||||
est "BLOB-tüüpi tulp '%-.192s' ei saa omada vaikeväärtust"
|
|
||||||
fre "BLOB '%-.192s' ne peut avoir de valeur par défaut"
|
|
||||||
ger "BLOB/TEXT-Feld '%-.192s' darf keinen Vorgabewert (DEFAULT) haben"
|
|
||||||
greek "Τα Blob πεδία '%-.192s' δεν μπορούν να έχουν προκαθορισμένες τιμές (default value)"
|
|
||||||
hindi "BLOB/TEXT कॉलम '%-.192s' का डिफ़ॉल्ट मान नहीं हो सकता"
|
|
||||||
hun "A(z) '%-.192s' blob objektumnak nem lehet alapertelmezett erteke"
|
|
||||||
ita "Il campo BLOB '%-.192s' non puo` avere un valore di default"
|
|
||||||
jpn "BLOB/TEXT 列 '%-.192s' にはデフォルト値を指定できません。"
|
|
||||||
kor "BLOB 칼럼 '%-.192s' 는 디폴트 값을 가질 수 없습니다."
|
|
||||||
nor "Blob feltet '%-.192s' kan ikke ha en standard verdi"
|
|
||||||
norwegian-ny "Blob feltet '%-.192s' kan ikkje ha ein standard verdi"
|
|
||||||
pol "Pole typu blob '%-.192s' nie może mieć domy?lnej warto?ci"
|
|
||||||
por "Coluna BLOB '%-.192s' não pode ter um valor padrão (default)"
|
|
||||||
rum "Coloana BLOB '%-.192s' nu poate avea o valoare default"
|
|
||||||
rus "Невозможно указывать значение по умолчанию для столбца BLOB '%-.192s'"
|
|
||||||
serbian "BLOB kolona '%-.192s' ne može imati default vrednost"
|
|
||||||
slo "Pole BLOB '%-.192s' nemôže mať implicitnú hodnotu"
|
|
||||||
spa "Campo Blob '%-.192s' no puede tener valores patron"
|
|
||||||
swe "BLOB fält '%-.192s' kan inte ha ett DEFAULT-värde"
|
|
||||||
ukr "Стовбець BLOB '%-.192s' не може мати значення по замовчуванню"
|
|
||||||
ER_WRONG_DB_NAME 42000
|
ER_WRONG_DB_NAME 42000
|
||||||
cze "Nepřípustné jméno databáze '%-.100s'"
|
cze "Nepřípustné jméno databáze '%-.100s'"
|
||||||
dan "Ugyldigt database navn '%-.100s'"
|
dan "Ugyldigt database navn '%-.100s'"
|
||||||
@ -7177,7 +7154,7 @@ ER_KEY_BASED_ON_GENERATED_VIRTUAL_COLUMN
|
|||||||
ER_WRONG_FK_OPTION_FOR_GENERATED_COLUMN
|
ER_WRONG_FK_OPTION_FOR_GENERATED_COLUMN
|
||||||
eng "Cannot define foreign key with %s clause on a generated column"
|
eng "Cannot define foreign key with %s clause on a generated column"
|
||||||
ER_WARNING_NON_DEFAULT_VALUE_FOR_GENERATED_COLUMN
|
ER_WARNING_NON_DEFAULT_VALUE_FOR_GENERATED_COLUMN
|
||||||
eng "The value specified for generated column '%s' in table '%s' ignored"
|
eng "The value specified for generated column '%s' in table '%s' has been ignored"
|
||||||
ER_UNSUPPORTED_ACTION_ON_GENERATED_COLUMN
|
ER_UNSUPPORTED_ACTION_ON_GENERATED_COLUMN
|
||||||
eng "This is not yet supported for generated columns"
|
eng "This is not yet supported for generated columns"
|
||||||
ER_UNUSED_20
|
ER_UNUSED_20
|
||||||
@ -7829,7 +7806,7 @@ ER_VERS_FIELD_WRONG_TYPE
|
|||||||
eng "%`s must be of type %s for system-versioned table %`s"
|
eng "%`s must be of type %s for system-versioned table %`s"
|
||||||
|
|
||||||
ER_VERS_ENGINE_UNSUPPORTED
|
ER_VERS_ENGINE_UNSUPPORTED
|
||||||
eng "Transaction system versioning for %`s is not supported"
|
eng "Transaction-precise system versioning for %`s is not supported"
|
||||||
|
|
||||||
ER_UNUSED_23
|
ER_UNUSED_23
|
||||||
eng "You should never see it"
|
eng "You should never see it"
|
||||||
@ -7909,8 +7886,8 @@ ER_UNUSED_24
|
|||||||
ER_VERS_TEMPORARY
|
ER_VERS_TEMPORARY
|
||||||
eng "TEMPORARY tables do not support system versioning"
|
eng "TEMPORARY tables do not support system versioning"
|
||||||
|
|
||||||
ER_VERS_NOT_SUPPORTED
|
ER_VERS_TRX_PART_HISTORIC_ROW_NOT_SUPPORTED
|
||||||
eng "%s is not supported for %s system-versioned tables"
|
eng "Transaction-precise system versioned tables do not support partitioning by ROW START or ROW END"
|
||||||
ER_INDEX_FILE_FULL
|
ER_INDEX_FILE_FULL
|
||||||
eng "The index file for table '%-.192s' is full"
|
eng "The index file for table '%-.192s' is full"
|
||||||
ER_UPDATED_COLUMN_ONLY_ONCE
|
ER_UPDATED_COLUMN_ONLY_ONCE
|
||||||
|
@ -3912,12 +3912,6 @@ apply_event_and_update_pos_setup(Log_event* ev, THD* thd, rpl_group_info *rgi)
|
|||||||
thd->variables.server_id = ev->server_id;
|
thd->variables.server_id = ev->server_id;
|
||||||
thd->set_time(); // time the query
|
thd->set_time(); // time the query
|
||||||
thd->lex->current_select= 0;
|
thd->lex->current_select= 0;
|
||||||
if (!ev->when)
|
|
||||||
{
|
|
||||||
my_hrtime_t hrtime= my_hrtime();
|
|
||||||
ev->when= hrtime_to_my_time(hrtime);
|
|
||||||
ev->when_sec_part= hrtime_sec_part(hrtime);
|
|
||||||
}
|
|
||||||
thd->variables.option_bits=
|
thd->variables.option_bits=
|
||||||
(thd->variables.option_bits & ~OPTION_SKIP_REPLICATION) |
|
(thd->variables.option_bits & ~OPTION_SKIP_REPLICATION) |
|
||||||
(ev->flags & LOG_EVENT_SKIP_REPLICATION_F ? OPTION_SKIP_REPLICATION : 0);
|
(ev->flags & LOG_EVENT_SKIP_REPLICATION_F ? OPTION_SKIP_REPLICATION : 0);
|
||||||
|
@ -532,6 +532,7 @@ sp_head::sp_head(sp_package *parent, const Sp_handler *sph,
|
|||||||
|
|
||||||
DBUG_ENTER("sp_head::sp_head");
|
DBUG_ENTER("sp_head::sp_head");
|
||||||
|
|
||||||
|
m_security_ctx.init();
|
||||||
m_backpatch.empty();
|
m_backpatch.empty();
|
||||||
m_backpatch_goto.empty();
|
m_backpatch_goto.empty();
|
||||||
m_cont_backpatch.empty();
|
m_cont_backpatch.empty();
|
||||||
@ -1338,7 +1339,7 @@ sp_head::execute(THD *thd, bool merge_da_on_success)
|
|||||||
if (WSREP(thd) && thd->wsrep_next_trx_id() == WSREP_UNDEFINED_TRX_ID)
|
if (WSREP(thd) && thd->wsrep_next_trx_id() == WSREP_UNDEFINED_TRX_ID)
|
||||||
{
|
{
|
||||||
thd->set_wsrep_next_trx_id(thd->query_id);
|
thd->set_wsrep_next_trx_id(thd->query_id);
|
||||||
WSREP_DEBUG("assigned new next trx ID for SP, trx id: %lu", thd->wsrep_next_trx_id());
|
WSREP_DEBUG("assigned new next trx ID for SP, trx id: %" PRIu64, thd->wsrep_next_trx_id());
|
||||||
}
|
}
|
||||||
#endif /* WITH_WSREP */
|
#endif /* WITH_WSREP */
|
||||||
err_status= i->execute(thd, &ip);
|
err_status= i->execute(thd, &ip);
|
||||||
|
@ -238,17 +238,17 @@ int Geometry::as_wkt(String *wkt, const char **end)
|
|||||||
|
|
||||||
|
|
||||||
static const uchar type_keyname[]= "type";
|
static const uchar type_keyname[]= "type";
|
||||||
static const int type_keyname_len= 4;
|
static const uint type_keyname_len= 4;
|
||||||
static const uchar coord_keyname[]= "coordinates";
|
static const uchar coord_keyname[]= "coordinates";
|
||||||
static const int coord_keyname_len= 11;
|
static const uint coord_keyname_len= 11;
|
||||||
static const uchar geometries_keyname[]= "geometries";
|
static const uchar geometries_keyname[]= "geometries";
|
||||||
static const int geometries_keyname_len= 10;
|
static const uint geometries_keyname_len= 10;
|
||||||
static const uchar features_keyname[]= "features";
|
static const uchar features_keyname[]= "features";
|
||||||
static const int features_keyname_len= 8;
|
static const uint features_keyname_len= 8;
|
||||||
static const uchar geometry_keyname[]= "geometry";
|
static const uchar geometry_keyname[]= "geometry";
|
||||||
static const int geometry_keyname_len= 8;
|
static const uint geometry_keyname_len= 8;
|
||||||
|
|
||||||
static const int max_keyname_len= 11; /*'coordinates' keyname is the longest.*/
|
static const uint max_keyname_len= 11; /*'coordinates' keyname is the longest.*/
|
||||||
|
|
||||||
static const uchar feature_type[]= "feature";
|
static const uchar feature_type[]= "feature";
|
||||||
static const int feature_type_len= 7;
|
static const int feature_type_len= 7;
|
||||||
|
@ -566,7 +566,8 @@ static bool mysql_admin_table(THD* thd, TABLE_LIST* tables,
|
|||||||
if (!table->table->part_info)
|
if (!table->table->part_info)
|
||||||
{
|
{
|
||||||
my_error(ER_PARTITION_MGMT_ON_NONPARTITIONED, MYF(0));
|
my_error(ER_PARTITION_MGMT_ON_NONPARTITIONED, MYF(0));
|
||||||
goto err2;
|
thd->resume_subsequent_commits(suspended_wfc);
|
||||||
|
DBUG_RETURN(TRUE);
|
||||||
}
|
}
|
||||||
if (set_part_state(alter_info, table->table->part_info, PART_ADMIN))
|
if (set_part_state(alter_info, table->table->part_info, PART_ADMIN))
|
||||||
{
|
{
|
||||||
@ -1219,9 +1220,6 @@ err:
|
|||||||
}
|
}
|
||||||
close_thread_tables(thd); // Shouldn't be needed
|
close_thread_tables(thd); // Shouldn't be needed
|
||||||
thd->mdl_context.release_transactional_locks();
|
thd->mdl_context.release_transactional_locks();
|
||||||
#ifdef WITH_PARTITION_STORAGE_ENGINE
|
|
||||||
err2:
|
|
||||||
#endif
|
|
||||||
thd->resume_subsequent_commits(suspended_wfc);
|
thd->resume_subsequent_commits(suspended_wfc);
|
||||||
DBUG_RETURN(TRUE);
|
DBUG_RETURN(TRUE);
|
||||||
}
|
}
|
||||||
|
@ -5556,7 +5556,7 @@ void THD::set_query_and_id(char *query_arg, uint32 query_length_arg,
|
|||||||
query_id= new_query_id;
|
query_id= new_query_id;
|
||||||
#ifdef WITH_WSREP
|
#ifdef WITH_WSREP
|
||||||
set_wsrep_next_trx_id(query_id);
|
set_wsrep_next_trx_id(query_id);
|
||||||
WSREP_DEBUG("assigned new next query and trx id: %lu", wsrep_next_trx_id());
|
WSREP_DEBUG("assigned new next query and trx id: %" PRIu64, wsrep_next_trx_id());
|
||||||
#endif /* WITH_WSREP */
|
#endif /* WITH_WSREP */
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -6158,16 +6158,18 @@ int THD::decide_logging_format(TABLE_LIST *tables)
|
|||||||
|
|
||||||
replicated_tables_count++;
|
replicated_tables_count++;
|
||||||
|
|
||||||
if (table->lock_type <= TL_READ_NO_INSERT &&
|
if (table->prelocking_placeholder != TABLE_LIST::PRELOCK_FK)
|
||||||
table->prelocking_placeholder != TABLE_LIST::PRELOCK_FK)
|
|
||||||
has_read_tables= true;
|
|
||||||
else if (table->table->found_next_number_field &&
|
|
||||||
(table->lock_type >= TL_WRITE_ALLOW_WRITE))
|
|
||||||
{
|
{
|
||||||
has_auto_increment_write_tables= true;
|
if (table->lock_type <= TL_READ_NO_INSERT)
|
||||||
has_auto_increment_write_tables_not_first= found_first_not_own_table;
|
has_read_tables= true;
|
||||||
if (table->table->s->next_number_keypart != 0)
|
else if (table->table->found_next_number_field &&
|
||||||
has_write_table_auto_increment_not_first_in_pk= true;
|
(table->lock_type >= TL_WRITE_ALLOW_WRITE))
|
||||||
|
{
|
||||||
|
has_auto_increment_write_tables= true;
|
||||||
|
has_auto_increment_write_tables_not_first= found_first_not_own_table;
|
||||||
|
if (table->table->s->next_number_keypart != 0)
|
||||||
|
has_write_table_auto_increment_not_first_in_pk= true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (table->lock_type >= TL_WRITE_ALLOW_WRITE)
|
if (table->lock_type >= TL_WRITE_ALLOW_WRITE)
|
||||||
|
@ -64,6 +64,7 @@ void set_thd_stage_info(void *thd,
|
|||||||
|
|
||||||
#include "wsrep_mysqld.h"
|
#include "wsrep_mysqld.h"
|
||||||
#ifdef WITH_WSREP
|
#ifdef WITH_WSREP
|
||||||
|
#include <inttypes.h>
|
||||||
/* wsrep-lib */
|
/* wsrep-lib */
|
||||||
#include "wsrep_client_service.h"
|
#include "wsrep_client_service.h"
|
||||||
#include "wsrep_client_state.h"
|
#include "wsrep_client_state.h"
|
||||||
@ -4550,7 +4551,7 @@ public:
|
|||||||
if (WSREP(this))
|
if (WSREP(this))
|
||||||
{
|
{
|
||||||
set_wsrep_next_trx_id(query_id);
|
set_wsrep_next_trx_id(query_id);
|
||||||
WSREP_DEBUG("assigned new next trx id: %lu", wsrep_next_trx_id());
|
WSREP_DEBUG("assigned new next trx id: %" PRIu64, wsrep_next_trx_id());
|
||||||
}
|
}
|
||||||
#endif /* WITH_WSREP */
|
#endif /* WITH_WSREP */
|
||||||
}
|
}
|
||||||
|
@ -1600,7 +1600,7 @@ bool dispatch_command(enum enum_server_command command, THD *thd,
|
|||||||
if (WSREP(thd) && thd->wsrep_next_trx_id() == WSREP_UNDEFINED_TRX_ID)
|
if (WSREP(thd) && thd->wsrep_next_trx_id() == WSREP_UNDEFINED_TRX_ID)
|
||||||
{
|
{
|
||||||
thd->set_wsrep_next_trx_id(thd->query_id);
|
thd->set_wsrep_next_trx_id(thd->query_id);
|
||||||
WSREP_DEBUG("assigned new next trx id: %lu", thd->wsrep_next_trx_id());
|
WSREP_DEBUG("assigned new next trx id: %" PRIu64, thd->wsrep_next_trx_id());
|
||||||
}
|
}
|
||||||
#endif /* WITH_WSREP */
|
#endif /* WITH_WSREP */
|
||||||
|
|
||||||
|
@ -341,7 +341,15 @@ static bool set_up_field_array(THD *thd, TABLE *table,
|
|||||||
while ((field= *(ptr++)))
|
while ((field= *(ptr++)))
|
||||||
{
|
{
|
||||||
if (field->flags & GET_FIXED_FIELDS_FLAG)
|
if (field->flags & GET_FIXED_FIELDS_FLAG)
|
||||||
|
{
|
||||||
|
if (table->versioned(VERS_TRX_ID)
|
||||||
|
&& unlikely(field->flags & VERS_SYSTEM_FIELD))
|
||||||
|
{
|
||||||
|
my_error(ER_VERS_TRX_PART_HISTORIC_ROW_NOT_SUPPORTED, MYF(0));
|
||||||
|
DBUG_RETURN(TRUE);
|
||||||
|
}
|
||||||
num_fields++;
|
num_fields++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (unlikely(num_fields > MAX_REF_PARTS))
|
if (unlikely(num_fields > MAX_REF_PARTS))
|
||||||
{
|
{
|
||||||
|
@ -1057,7 +1057,9 @@ public:
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
table_field->collected_stats->min_value->val_str(&val);
|
table_field->collected_stats->min_value->val_str(&val);
|
||||||
stat_field->store(val.ptr(), val.length(), &my_charset_bin);
|
size_t length= Well_formed_prefix(val.charset(), val.ptr(),
|
||||||
|
MY_MIN(val.length(), stat_field->field_length)).length();
|
||||||
|
stat_field->store(val.ptr(), length, &my_charset_bin);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case COLUMN_STAT_MAX_VALUE:
|
case COLUMN_STAT_MAX_VALUE:
|
||||||
@ -1066,7 +1068,9 @@ public:
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
table_field->collected_stats->max_value->val_str(&val);
|
table_field->collected_stats->max_value->val_str(&val);
|
||||||
stat_field->store(val.ptr(), val.length(), &my_charset_bin);
|
size_t length= Well_formed_prefix(val.charset(), val.ptr(),
|
||||||
|
MY_MIN(val.length(), stat_field->field_length)).length();
|
||||||
|
stat_field->store(val.ptr(), length, &my_charset_bin);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case COLUMN_STAT_NULLS_RATIO:
|
case COLUMN_STAT_NULLS_RATIO:
|
||||||
@ -3133,7 +3137,7 @@ int read_statistics_for_table(THD *thd, TABLE *table, TABLE_LIST *stat_tables)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
table->stats_is_read= TRUE;
|
table->stats_is_read= TRUE;
|
||||||
|
|
||||||
DBUG_RETURN(0);
|
DBUG_RETURN(0);
|
||||||
|
@ -8268,11 +8268,6 @@ mysql_prepare_alter_table(THD *thd, TABLE *table,
|
|||||||
}
|
}
|
||||||
if (alter)
|
if (alter)
|
||||||
{
|
{
|
||||||
if (def->real_field_type() == MYSQL_TYPE_BLOB)
|
|
||||||
{
|
|
||||||
my_error(ER_BLOB_CANT_HAVE_DEFAULT, MYF(0), def->change.str);
|
|
||||||
goto err;
|
|
||||||
}
|
|
||||||
if ((def->default_value= alter->default_value)) // Use new default
|
if ((def->default_value= alter->default_value)) // Use new default
|
||||||
def->flags&= ~NO_DEFAULT_VALUE_FLAG;
|
def->flags&= ~NO_DEFAULT_VALUE_FLAG;
|
||||||
else
|
else
|
||||||
|
@ -1028,6 +1028,7 @@ update_begin:
|
|||||||
if (table->versioned(VERS_TIMESTAMP))
|
if (table->versioned(VERS_TIMESTAMP))
|
||||||
{
|
{
|
||||||
store_record(table, record[2]);
|
store_record(table, record[2]);
|
||||||
|
table->mark_columns_per_binlog_row_image();
|
||||||
error= vers_insert_history_row(table);
|
error= vers_insert_history_row(table);
|
||||||
restore_record(table, record[2]);
|
restore_record(table, record[2]);
|
||||||
}
|
}
|
||||||
|
@ -2087,7 +2087,7 @@ int TABLE_SHARE::init_from_binary_frm_image(THD *thd, bool write,
|
|||||||
DBUG_PRINT("info", ("Columns with system versioning: [%d, %d]",
|
DBUG_PRINT("info", ("Columns with system versioning: [%d, %d]",
|
||||||
vers.start_fieldno, vers.end_fieldno));
|
vers.start_fieldno, vers.end_fieldno));
|
||||||
versioned= VERS_TIMESTAMP;
|
versioned= VERS_TIMESTAMP;
|
||||||
vers_can_native= plugin_hton(se_plugin)->flags & HTON_NATIVE_SYS_VERSIONING;
|
vers_can_native= handler_file->vers_can_native(thd);
|
||||||
status_var_increment(thd->status_var.feature_system_versioning);
|
status_var_increment(thd->status_var.feature_system_versioning);
|
||||||
} // if (system_period == NULL)
|
} // if (system_period == NULL)
|
||||||
|
|
||||||
@ -9149,7 +9149,10 @@ bool TR_table::query(ulonglong trx_id)
|
|||||||
return false;
|
return false;
|
||||||
select= make_select(table, 0, 0, conds, NULL, 0, &error);
|
select= make_select(table, 0, 0, conds, NULL, 0, &error);
|
||||||
if (unlikely(error || !select))
|
if (unlikely(error || !select))
|
||||||
|
{
|
||||||
|
my_error(ER_OUT_OF_RESOURCES, MYF(0));
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
// FIXME: (performance) force index 'transaction_id'
|
// FIXME: (performance) force index 'transaction_id'
|
||||||
error= init_read_record(&info, thd, table, select, NULL,
|
error= init_read_record(&info, thd, table, select, NULL,
|
||||||
1 /* use_record_cache */, true /* print_error */,
|
1 /* use_record_cache */, true /* print_error */,
|
||||||
@ -9159,6 +9162,7 @@ bool TR_table::query(ulonglong trx_id)
|
|||||||
if (select->skip_record(thd) > 0)
|
if (select->skip_record(thd) > 0)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
my_error(ER_VERS_NO_TRX_ID, MYF(0), (longlong) trx_id);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -108,7 +108,7 @@ BOOL exclude_service(mysqld_service_properties *props)
|
|||||||
}
|
}
|
||||||
if ((props->version_major == 0) ||
|
if ((props->version_major == 0) ||
|
||||||
(props->version_major > 5 && props->version_major < 10) ||
|
(props->version_major > 5 && props->version_major < 10) ||
|
||||||
(props->version_major == 5 && props->version_minor > 6))
|
(props->version_major == 5 && props->version_minor > 7))
|
||||||
{
|
{
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
@ -2360,7 +2360,7 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
int ha_cassandra::update_row(const uchar *old_data, uchar *new_data)
|
int ha_cassandra::update_row(const uchar *old_data, const uchar *new_data)
|
||||||
{
|
{
|
||||||
DYNAMIC_COLUMN_VALUE *oldvals, *vals;
|
DYNAMIC_COLUMN_VALUE *oldvals, *vals;
|
||||||
LEX_STRING *oldnames, *names;
|
LEX_STRING *oldnames, *names;
|
||||||
|
@ -240,7 +240,7 @@ public:
|
|||||||
int close(void);
|
int close(void);
|
||||||
|
|
||||||
int write_row(uchar *buf);
|
int write_row(uchar *buf);
|
||||||
int update_row(const uchar *old_data, uchar *new_data);
|
int update_row(const uchar *old_data, const uchar *new_data);
|
||||||
int delete_row(const uchar *buf);
|
int delete_row(const uchar *buf);
|
||||||
|
|
||||||
/** @brief
|
/** @brief
|
||||||
@ -268,7 +268,7 @@ public:
|
|||||||
THR_LOCK_DATA **store_lock(THD *thd, THR_LOCK_DATA **to,
|
THR_LOCK_DATA **store_lock(THD *thd, THR_LOCK_DATA **to,
|
||||||
enum thr_lock_type lock_type); ///< required
|
enum thr_lock_type lock_type); ///< required
|
||||||
|
|
||||||
my_bool register_query_cache_table(THD *thd, char *table_key,
|
my_bool register_query_cache_table(THD *thd, const char *table_key,
|
||||||
uint key_length,
|
uint key_length,
|
||||||
qc_engine_callback
|
qc_engine_callback
|
||||||
*engine_callback,
|
*engine_callback,
|
||||||
|
@ -40,6 +40,10 @@ user_connect.h valblk.h value.h xindex.h xobject.h xtable.h)
|
|||||||
add_definitions( -DMARIADB -DFORCE_INIT_OF_VARS -Dconnect_EXPORTS)
|
add_definitions( -DMARIADB -DFORCE_INIT_OF_VARS -Dconnect_EXPORTS)
|
||||||
add_definitions( -DHUGE_SUPPORT -DGZ_SUPPORT )
|
add_definitions( -DHUGE_SUPPORT -DGZ_SUPPORT )
|
||||||
|
|
||||||
|
macro(DISABLE_WARNING W)
|
||||||
|
MY_CHECK_AND_SET_COMPILER_FLAG("-Wno-error=${W}")
|
||||||
|
MY_CHECK_AND_SET_COMPILER_FLAG("-Wno-${W}" DEBUG)
|
||||||
|
endmacro()
|
||||||
|
|
||||||
#
|
#
|
||||||
# OS specific C flags, definitions and source files.
|
# OS specific C flags, definitions and source files.
|
||||||
@ -47,14 +51,15 @@ add_definitions( -DHUGE_SUPPORT -DGZ_SUPPORT )
|
|||||||
IF(UNIX)
|
IF(UNIX)
|
||||||
MY_CHECK_AND_SET_COMPILER_FLAG("-Wall -Wmissing-declarations")
|
MY_CHECK_AND_SET_COMPILER_FLAG("-Wall -Wmissing-declarations")
|
||||||
if(NOT WITH_WARNINGS)
|
if(NOT WITH_WARNINGS)
|
||||||
MY_CHECK_AND_SET_COMPILER_FLAG("-Wno-unused-function")
|
DISABLE_WARNING("unused-function")
|
||||||
MY_CHECK_AND_SET_COMPILER_FLAG("-Wno-unused-variable")
|
DISABLE_WARNING("unused-variable")
|
||||||
MY_CHECK_AND_SET_COMPILER_FLAG("-Wno-unused-value")
|
DISABLE_WARNING("unused-value")
|
||||||
MY_CHECK_AND_SET_COMPILER_FLAG("-Wno-parentheses")
|
DISABLE_WARNING("parentheses")
|
||||||
MY_CHECK_AND_SET_COMPILER_FLAG("-Wno-strict-aliasing")
|
DISABLE_WARNING("strict-aliasing")
|
||||||
MY_CHECK_AND_SET_COMPILER_FLAG("-Wno-misleading-indentation")
|
DISABLE_WARNING("misleading-indentation")
|
||||||
MY_CHECK_AND_SET_COMPILER_FLAG("-Wno-format-truncation")
|
DISABLE_WARNING("format-truncation")
|
||||||
MY_CHECK_AND_SET_COMPILER_FLAG("-Wno-implicit-fallthrough")
|
DISABLE_WARNING("implicit-fallthrough")
|
||||||
|
DISABLE_WARNING("type-limits")
|
||||||
endif(NOT WITH_WARNINGS)
|
endif(NOT WITH_WARNINGS)
|
||||||
|
|
||||||
add_definitions( -DUNIX -DLINUX -DUBUNTU )
|
add_definitions( -DUNIX -DLINUX -DUBUNTU )
|
||||||
@ -168,7 +173,8 @@ IF(CONNECT_WITH_ODBC)
|
|||||||
# the library 'libiodbc' gets compiled with 'sql'h.
|
# the library 'libiodbc' gets compiled with 'sql'h.
|
||||||
# This will also need changes in the sources (e.g. #include <isql.h>).
|
# This will also need changes in the sources (e.g. #include <isql.h>).
|
||||||
|
|
||||||
find_path(ODBC_INCLUDE_DIR sql.h
|
find_file(ODBC_INCLUDES sql.h
|
||||||
|
PATHS
|
||||||
/usr/include
|
/usr/include
|
||||||
/usr/include/odbc
|
/usr/include/odbc
|
||||||
/usr/local/include
|
/usr/local/include
|
||||||
@ -178,7 +184,7 @@ IF(CONNECT_WITH_ODBC)
|
|||||||
#"C:/Program Files/Microsoft SDKs/Windows/v7.0A/include"
|
#"C:/Program Files/Microsoft SDKs/Windows/v7.0A/include"
|
||||||
#"C:/Program Files/Microsoft SDKs/Windows/v6.0a/include"
|
#"C:/Program Files/Microsoft SDKs/Windows/v6.0a/include"
|
||||||
#"C:/Program Files (x86)/Microsoft SDKs/Windows/v7.0A/include"
|
#"C:/Program Files (x86)/Microsoft SDKs/Windows/v7.0A/include"
|
||||||
DOC "Specify the directory containing sql.h."
|
DOC "Specify the path to sql.h."
|
||||||
)
|
)
|
||||||
|
|
||||||
find_library(ODBC_LIBRARY
|
find_library(ODBC_LIBRARY
|
||||||
@ -197,9 +203,10 @@ IF(CONNECT_WITH_ODBC)
|
|||||||
DOC "Specify the ODBC driver manager library here."
|
DOC "Specify the ODBC driver manager library here."
|
||||||
)
|
)
|
||||||
|
|
||||||
mark_as_advanced(ODBC_LIBRARY ODBC_INCLUDE_DIR)
|
mark_as_advanced(ODBC_LIBRARY ODBC_INCLUDES)
|
||||||
|
|
||||||
IF(ODBC_INCLUDE_DIR AND ODBC_LIBRARY)
|
IF(ODBC_INCLUDES AND ODBC_LIBRARY)
|
||||||
|
get_filename_component(ODBC_INCLUDE_DIR "${ODBC_INCLUDES}" PATH)
|
||||||
set(CMAKE_REQUIRED_LIBRARIES ${ODBC_LIBRARY})
|
set(CMAKE_REQUIRED_LIBRARIES ${ODBC_LIBRARY})
|
||||||
set(CMAKE_REQUIRED_INCLUDES ${ODBC_INCLUDE_DIR})
|
set(CMAKE_REQUIRED_INCLUDES ${ODBC_INCLUDE_DIR})
|
||||||
CHECK_CXX_SOURCE_COMPILES(
|
CHECK_CXX_SOURCE_COMPILES(
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user