mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 02:05:57 +01:00
merge with mysql-5.5.30 minus few incorrect or not applicable changesets
This commit is contained in:
commit
8161c6772d
178 changed files with 3572 additions and 2050 deletions
2
VERSION
2
VERSION
|
@ -1,4 +1,4 @@
|
|||
MYSQL_VERSION_MAJOR=5
|
||||
MYSQL_VERSION_MINOR=5
|
||||
MYSQL_VERSION_PATCH=29
|
||||
MYSQL_VERSION_PATCH=30
|
||||
MYSQL_VERSION_EXTRA=
|
||||
|
|
|
@ -2312,17 +2312,19 @@ static bool add_line(String &buffer,char *line,char *in_string,
|
|||
{
|
||||
uint length=(uint) (out-line);
|
||||
|
||||
if (!truncated &&
|
||||
(length < 9 ||
|
||||
my_strnncoll (charset_info,
|
||||
(uchar *)line, 9, (const uchar *) "delimiter", 9)))
|
||||
if (!truncated && (length < 9 ||
|
||||
my_strnncoll (charset_info, (uchar *)line, 9,
|
||||
(const uchar *) "delimiter", 9) ||
|
||||
(*in_string || *ml_comment)))
|
||||
{
|
||||
/*
|
||||
Don't add a new line in case there's a DELIMITER command to be
|
||||
added to the glob buffer (e.g. on processing a line like
|
||||
"<command>;DELIMITER <non-eof>") : similar to how a new line is
|
||||
not added in the case when the DELIMITER is the first command
|
||||
entered with an empty glob buffer.
|
||||
entered with an empty glob buffer. However, if the delimiter is
|
||||
part of a string or a comment, the new line should be added. (e.g.
|
||||
SELECT '\ndelimiter\n';\n)
|
||||
*/
|
||||
*out++='\n';
|
||||
length++;
|
||||
|
|
|
@ -2430,6 +2430,8 @@ int main(int argc, char** argv)
|
|||
else
|
||||
load_processor.init_by_cur_dir();
|
||||
|
||||
fprintf(result_file, "/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;\n");
|
||||
|
||||
fprintf(result_file,
|
||||
"/*!40019 SET @@session.max_insert_delayed_threads=0*/;\n");
|
||||
|
||||
|
@ -2480,6 +2482,8 @@ int main(int argc, char** argv)
|
|||
"/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;\n"
|
||||
"/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;\n");
|
||||
|
||||
fprintf(result_file, "/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;\n");
|
||||
|
||||
if (tmpdir.list)
|
||||
free_tmpdir(&tmpdir);
|
||||
if (result_file != stdout)
|
||||
|
|
|
@ -2298,7 +2298,6 @@ static uint dump_routines_for_db(char *db)
|
|||
const char *routine_type[]= {"FUNCTION", "PROCEDURE"};
|
||||
char db_name_buff[NAME_LEN*2+3], name_buff[NAME_LEN*2+3];
|
||||
char *routine_name;
|
||||
char *query_str;
|
||||
int i;
|
||||
FILE *sql_file= md_result_file;
|
||||
MYSQL_RES *routine_res, *routine_list_res;
|
||||
|
@ -2392,17 +2391,6 @@ static uint dump_routines_for_db(char *db)
|
|||
fprintf(sql_file, "/*!50003 DROP %s IF EXISTS %s */;\n",
|
||||
routine_type[i], routine_name);
|
||||
|
||||
query_str= cover_definer_clause(row[2], strlen(row[2]),
|
||||
C_STRING_WITH_LEN("50020"),
|
||||
C_STRING_WITH_LEN("50003"),
|
||||
C_STRING_WITH_LEN(" FUNCTION"));
|
||||
|
||||
if (!query_str)
|
||||
query_str= cover_definer_clause(row[2], strlen(row[2]),
|
||||
C_STRING_WITH_LEN("50020"),
|
||||
C_STRING_WITH_LEN("50003"),
|
||||
C_STRING_WITH_LEN(" PROCEDURE"));
|
||||
|
||||
if (mysql_num_fields(routine_res) >= 6)
|
||||
{
|
||||
if (switch_db_collation(sql_file, db_name_buff, ";",
|
||||
|
@ -2440,9 +2428,9 @@ static uint dump_routines_for_db(char *db)
|
|||
|
||||
fprintf(sql_file,
|
||||
"DELIMITER ;;\n"
|
||||
"/*!50003 %s */;;\n"
|
||||
"%s ;;\n"
|
||||
"DELIMITER ;\n",
|
||||
(const char *) (query_str != NULL ? query_str : row[2]));
|
||||
(const char *) row[2]);
|
||||
|
||||
restore_sql_mode(sql_file, ";");
|
||||
|
||||
|
@ -2457,7 +2445,6 @@ static uint dump_routines_for_db(char *db)
|
|||
}
|
||||
}
|
||||
|
||||
my_free(query_str);
|
||||
}
|
||||
} /* end of routine printing */
|
||||
mysql_free_result(routine_res);
|
||||
|
|
|
@ -767,8 +767,14 @@ int DoProcessReply(SSL& ssl)
|
|||
|
||||
while (buffer.get_current() < hdr.length_ + RECORD_HEADER + offset) {
|
||||
// each message in record, can be more than 1 if not encrypted
|
||||
if (ssl.getSecurity().get_parms().pending_ == false) // cipher on
|
||||
if (ssl.getSecurity().get_parms().pending_ == false) { // cipher on
|
||||
// sanity check for malicious/corrupted/illegal input
|
||||
if (buffer.get_remaining() < hdr.length_) {
|
||||
ssl.SetError(bad_input);
|
||||
return 0;
|
||||
}
|
||||
decrypt_message(ssl, buffer, hdr.length_);
|
||||
}
|
||||
|
||||
mySTL::auto_ptr<Message> msg(mf.CreateObject(hdr.type_));
|
||||
if (!msg.get()) {
|
||||
|
|
|
@ -49,6 +49,7 @@
|
|||
string will be quoted according to MySQL identifier quoting rules.
|
||||
|
||||
Both <width> and <precision> can be specified as numbers or '*'.
|
||||
If an asterisk is used, an argument of type int is consumed.
|
||||
|
||||
<length modifier> can be 'l', 'll', or 'z'.
|
||||
|
||||
|
|
|
@ -61,6 +61,7 @@ uint thd_get_net_read_write(THD *thd);
|
|||
void thd_set_mysys_var(THD *thd, st_my_thread_var *mysys_var);
|
||||
ulong thd_get_net_wait_timeout(THD *thd);
|
||||
my_socket thd_get_fd(THD *thd);
|
||||
int thd_store_globals(THD* thd);
|
||||
|
||||
THD *first_global_thread();
|
||||
THD *next_global_thread(THD *thd);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (c) 2011, 2012, Oracle and/or its affiliates.
|
||||
/* Copyright (c) 2011, 2013, Oracle and/or its affiliates.
|
||||
Copyright (c) 2011, 2012, Monty Program Ab
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
|
@ -17,7 +17,7 @@
|
|||
#ifndef _welcome_copyright_notice_h_
|
||||
#define _welcome_copyright_notice_h_
|
||||
|
||||
#define COPYRIGHT_NOTICE_CURRENT_YEAR "2012"
|
||||
#define COPYRIGHT_NOTICE_CURRENT_YEAR "2013"
|
||||
|
||||
/*
|
||||
This define specifies copyright notice which is displayed by every MySQL
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved.
|
||||
# Copyright (c) 2009, 2012, Oracle and/or its affiliates. All rights reserved.
|
||||
#
|
||||
# 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
|
||||
|
@ -154,8 +154,10 @@ ENDMACRO()
|
|||
FILE(GLOB infiles "collections/*.in")
|
||||
FOREACH(collin ${infiles})
|
||||
STRING(REPLACE ".in" "" collection ${collin})
|
||||
STRING(REPLACE ".in" ".done" colldone ${collin})
|
||||
# Only generate file once
|
||||
IF(NOT EXISTS ${collection})
|
||||
IF(NOT EXISTS ${colldone})
|
||||
PROCESS_COLLECTION_INCLUDE(${collin} ${collection})
|
||||
FILE(APPEND ${colldone} "${collin}\n")
|
||||
ENDIF()
|
||||
ENDFOREACH()
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
perl mysql-test-run.pl --force --timer --debug-server --parallel=auto --experimental=collections/default.experimental --comment=normal --vardir=var-normal --report-features --skip-test-list=collections/disabled-daily.list --unit-tests
|
||||
perl mysql-test-run.pl --force --timer --debug-server --parallel=auto --experimental=collections/default.experimental --comment=normal --vardir=var-normal --report-features --skip-test-list=collections/disabled-daily.list
|
||||
perl mysql-test-run.pl --force --timer --debug-server --parallel=auto --experimental=collections/default.experimental --comment=n_mix --vardir=var-n_mix --mysqld=--binlog-format=mixed --skip-test-list=collections/disabled-daily.list
|
||||
perl mysql-test-run.pl --force --timer --debug-server --parallel=auto --experimental=collections/default.experimental --comment=row --vardir=var-row --mysqld=--binlog-format=row --skip-test-list=collections/disabled-daily.list
|
||||
perl mysql-test-run.pl --force --timer --debug-server --parallel=auto --experimental=collections/default.experimental --comment=ps_row --vardir=var-ps_row --mysqld=--binlog-format=row --ps-protocol --skip-test-list=collections/disabled-daily.list
|
||||
|
|
|
@ -18,9 +18,4 @@ rpl.rpl_row_sp011 @solaris # Bug#11753919 2011-07-25 sven Several
|
|||
sys_vars.max_sp_recursion_depth_func @solaris # Bug#11753919 2010-01-20 alik Several test cases fail on Solaris with error Thread stack overrun
|
||||
sys_vars.wait_timeout_func # Bug#11750645 2010-04-26 alik wait_timeout_func fails
|
||||
|
||||
# BUG #59055 : All ndb tests should be removed from the repository
|
||||
# Leaving the sys_vars tests for now. sys_vars.all_vars.test fails on removing ndb tests
|
||||
sys_vars.ndb_log_update_as_write_basic
|
||||
sys_vars.have_ndbcluster_basic
|
||||
sys_vars.ndb_log_updated_only_basic
|
||||
sys_vars.rpl_init_slave_func # Bug#12535301 2011-05-09 andrei sys_vars.rpl_init_slave_func mismatches in daily-5.5
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
perl mysql-test-run.pl --timer --force --parallel=auto --comment=n_mix --vardir=var-n_mix --mysqld=--binlog-format=mixed --experimental=collections/default.experimental --skip-ndb --skip-test-list=collections/disabled-per-push.list --unit-tests
|
||||
perl mysql-test-run.pl --timer --force --parallel=auto --comment=ps_row --vardir=var-ps_row --ps-protocol --mysqld=--binlog-format=row --experimental=collections/default.experimental --skip-ndb --skip-test-list=collections/disabled-per-push.list
|
||||
perl mysql-test-run.pl --timer --force --parallel=auto --comment=embedded --vardir=var-emebbed --embedded --experimental=collections/default.experimental --skip-ndb
|
||||
perl mysql-test-run.pl --timer --force --parallel=auto --comment=rpl_binlog_row --vardir=var-rpl_binlog_row --suite=rpl,binlog --mysqld=--binlog-format=row --experimental=collections/default.experimental --skip-ndb --skip-test-list=collections/disabled-per-push.list
|
||||
perl mysql-test-run.pl --timer --force --parallel=auto --comment=funcs_1 --vardir=var-funcs_1 --suite=funcs_1 --experimental=collections/default.experimental --skip-ndb
|
||||
perl mysql-test-run.pl --timer --force --parallel=auto --comment=n_mix --vardir=var-n_mix --mysqld=--binlog-format=mixed --experimental=collections/default.experimental --skip-test-list=collections/disabled-per-push.list
|
||||
perl mysql-test-run.pl --timer --force --parallel=auto --comment=ps_row --vardir=var-ps_row --ps-protocol --mysqld=--binlog-format=row --experimental=collections/default.experimental --skip-test-list=collections/disabled-per-push.list
|
||||
perl mysql-test-run.pl --timer --force --parallel=auto --comment=embedded --vardir=var-emebbed --embedded --experimental=collections/default.experimental
|
||||
perl mysql-test-run.pl --timer --force --parallel=auto --comment=rpl_binlog_row --vardir=var-rpl_binlog_row --suite=rpl,binlog --mysqld=--binlog-format=row --experimental=collections/default.experimental --skip-test-list=collections/disabled-per-push.list
|
||||
perl mysql-test-run.pl --timer --force --parallel=auto --comment=funcs_1 --vardir=var-funcs_1 --suite=funcs_1 --experimental=collections/default.experimental
|
||||
|
||||
|
|
|
@ -4,14 +4,14 @@
|
|||
# include default.daily
|
||||
# include default.weekly
|
||||
|
||||
perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=debug --vardir=var-debug --skip-ndbcluster --skip-rpl --report-features --debug-server
|
||||
perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=normal --vardir=var-normal --skip-ndbcluster --report-features
|
||||
perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=ps --vardir=var-ps --skip-ndbcluster --ps-protocol
|
||||
perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=debug --vardir=var-debug --skip-rpl --report-features --debug-server
|
||||
perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=normal --vardir=var-normal --report-features
|
||||
perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=ps --vardir=var-ps --ps-protocol
|
||||
perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=funcs1+ps --vardir=var-funcs_1_ps --suite=funcs_1 --ps-protocol
|
||||
perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=funcs2 --vardir=var-funcs2 --suite=funcs_2
|
||||
perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=partitions --vardir=var-parts --suite=parts
|
||||
perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=stress --vardir=var-stress --suite=stress
|
||||
perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=jp --vardir=var-jp --suite=jp
|
||||
perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=embedded --vardir=var-embedded --embedded-server --skip-rpl --skip-ndbcluster
|
||||
perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=embedded --vardir=var-embedded --embedded-server --skip-rpl
|
||||
perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=nist --vardir=var-nist --suite=nist
|
||||
perl mysql-test-run.pl --force --timer --parallel=auto --experimental=collections/default.experimental --comment=nist+ps --vardir=var-nist_ps --suite=nist --ps-protocol
|
||||
|
|
|
@ -1,22 +0,0 @@
|
|||
--exec $MYSQL test -e "show processlist" > $MYSQLTEST_VARDIR/tmp/bl_dump_thread_id
|
||||
--disable_warnings
|
||||
drop table if exists t999;
|
||||
--enable_warnings
|
||||
# Create a table to hold the process list
|
||||
create temporary table t999(
|
||||
id int,
|
||||
user char(255),
|
||||
host char(255),
|
||||
db char(255),
|
||||
Command char(255),
|
||||
time int,
|
||||
State char(255),
|
||||
info char(255)
|
||||
);
|
||||
# Load processlist into table, headers will create seom warnings
|
||||
--disable_warnings
|
||||
--replace_result $MYSQLTEST_VARDIR "."
|
||||
eval LOAD DATA INFILE "$MYSQLTEST_VARDIR/tmp/bl_dump_thread_id" into table t999;
|
||||
--enable_warnings
|
||||
let $id = `select Id from t999 where Command="Binlog Dump"`;
|
||||
drop table t999;
|
|
@ -29,4 +29,4 @@ INSTALL(TARGETS my_safe_process DESTINATION "${INSTALL_MYSQLTESTDIR}/lib/My/Safe
|
|||
IF(WIN32)
|
||||
INSTALL(TARGETS my_safe_kill DESTINATION "${INSTALL_MYSQLTESTDIR}/lib/My/SafeProcess" COMPONENT Test)
|
||||
ENDIF()
|
||||
INSTALL(FILES safe_process.pl Base.pm DESTINATION "${INSTALL_MYSQLTESTDIR}/lib/My/SafeProcess" COMPONENT Test)
|
||||
INSTALL(FILES Base.pm DESTINATION "${INSTALL_MYSQLTESTDIR}/lib/My/SafeProcess" COMPONENT Test)
|
||||
|
|
|
@ -153,12 +153,19 @@ int main(int argc, char* const argv[] )
|
|||
pid_t own_pid= getpid();
|
||||
pid_t parent_pid= getppid();
|
||||
bool nocore = false;
|
||||
struct sigaction sa,sa_abort;
|
||||
|
||||
sa.sa_handler= handle_signal;
|
||||
sa.sa_flags= SA_NOCLDSTOP;
|
||||
sigemptyset(&sa.sa_mask);
|
||||
|
||||
sa_abort.sa_handler= handle_abort;
|
||||
sigemptyset(&sa_abort.sa_mask);
|
||||
/* Install signal handlers */
|
||||
signal(SIGTERM, handle_signal);
|
||||
signal(SIGINT, handle_signal);
|
||||
signal(SIGCHLD, handle_signal);
|
||||
signal(SIGABRT, handle_abort);
|
||||
sigaction(SIGTERM, &sa,NULL);
|
||||
sigaction(SIGINT, &sa,NULL);
|
||||
sigaction(SIGCHLD, &sa,NULL);
|
||||
sigaction(SIGABRT, &sa_abort,NULL);
|
||||
|
||||
sprintf(safe_process_name, "safe_process[%ld]", (long) own_pid);
|
||||
|
||||
|
|
|
@ -1,166 +0,0 @@
|
|||
#!/usr/bin/perl
|
||||
# -*- cperl -*-
|
||||
|
||||
# Copyright (c) 2007, 2011, Oracle and/or its affiliates
|
||||
#
|
||||
# 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
|
||||
# the Free Software Foundation; version 2 of the License.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
use lib 'lib';
|
||||
use My::SafeProcess::Base;
|
||||
use POSIX qw(WNOHANG);
|
||||
|
||||
###########################################################################
|
||||
# Util functions
|
||||
###########################################################################
|
||||
|
||||
#
|
||||
#Print message to stderr
|
||||
#
|
||||
my $verbose= 0;
|
||||
sub message {
|
||||
if ($verbose > 0){
|
||||
use Time::localtime;
|
||||
my $tm= localtime();
|
||||
my $timestamp= sprintf("%02d%02d%02d %2d:%02d:%02d",
|
||||
$tm->year % 100, $tm->mon+1, $tm->mday,
|
||||
$tm->hour, $tm->min, $tm->sec);
|
||||
print STDERR $timestamp, " monitor[$$]: ", @_, "\n";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
###########################################################################
|
||||
# Main program
|
||||
###########################################################################
|
||||
|
||||
my $terminated= 0;
|
||||
|
||||
# Protect against being killed in the middle
|
||||
# of child creation, just set the terminated flag
|
||||
# to make sure the child will be killed off
|
||||
# when program is ready to do that
|
||||
$SIG{TERM}= sub { message("!Got signal @_"); $terminated= 1; };
|
||||
$SIG{INT}= sub { message("!Got signal @_"); $terminated= 1; };
|
||||
|
||||
my $parent_pid= getppid();
|
||||
|
||||
my $found_double_dash= 0;
|
||||
while (my $arg= shift(@ARGV)){
|
||||
|
||||
if ($arg =~ /^--$/){
|
||||
$found_double_dash= 1;
|
||||
last;
|
||||
}
|
||||
elsif ($arg =~ /^--verbose$/){
|
||||
$verbose= 1;
|
||||
}
|
||||
else {
|
||||
die "Unknown option: $arg";
|
||||
}
|
||||
}
|
||||
|
||||
my $path= shift(@ARGV); # Executable
|
||||
|
||||
die "usage:\n" .
|
||||
" safe_process.pl [opts] -- <path> [<args> [...<args_n>]]"
|
||||
unless defined $path || $found_double_dash;
|
||||
|
||||
|
||||
message("started");
|
||||
#message("path: '$path'");
|
||||
message("parent: $parent_pid");
|
||||
|
||||
# Start process to monitor
|
||||
my $child_pid=
|
||||
create_process(
|
||||
path => $path,
|
||||
args => \@ARGV,
|
||||
setpgrp => 1,
|
||||
);
|
||||
message("Started child $child_pid");
|
||||
|
||||
eval {
|
||||
sub handle_signal {
|
||||
$terminated= 1;
|
||||
message("Got signal @_");
|
||||
|
||||
# Ignore all signals
|
||||
foreach my $name (keys %SIG){
|
||||
$SIG{$name}= 'IGNORE';
|
||||
}
|
||||
|
||||
die "signaled\n";
|
||||
};
|
||||
local $SIG{TERM}= \&handle_signal;
|
||||
local $SIG{INT}= \&handle_signal;
|
||||
local $SIG{CHLD}= sub {
|
||||
message("Got signal @_");
|
||||
kill('KILL', -$child_pid);
|
||||
my $ret= waitpid($child_pid, 0);
|
||||
if ($? & 127){
|
||||
exit(65); # Killed by signal
|
||||
}
|
||||
exit($? >> 8);
|
||||
};
|
||||
|
||||
# Monitoring loop
|
||||
while(!$terminated) {
|
||||
|
||||
# Check if parent is still alive
|
||||
if (kill(0, $parent_pid) < 1){
|
||||
message("Parent is not alive anymore");
|
||||
last;
|
||||
}
|
||||
|
||||
# Wait for child to terminate but wakeup every
|
||||
# second to also check that parent is still alive
|
||||
my $ret_pid;
|
||||
$ret_pid= waitpid($child_pid, &WNOHANG);
|
||||
if ($ret_pid == $child_pid) {
|
||||
# Process has exited, collect return status
|
||||
my $ret_code= $? >> 8;
|
||||
message("Child exit: $ret_code");
|
||||
# Exit with exit status of the child
|
||||
exit ($ret_code);
|
||||
}
|
||||
sleep(1);
|
||||
}
|
||||
};
|
||||
if ( $@ ) {
|
||||
# The monitoring loop should have been
|
||||
# broken by handle_signal
|
||||
warn "Unexpected: $@" unless ( $@ =~ /signaled/ );
|
||||
}
|
||||
|
||||
# Use negative pid in order to kill the whole
|
||||
# process group
|
||||
#
|
||||
my $ret= kill('KILL', -$child_pid);
|
||||
message("Killed child: $child_pid, ret: $ret");
|
||||
if ($ret > 0) {
|
||||
message("Killed child: $child_pid");
|
||||
# Wait blocking for the child to return
|
||||
my $ret_pid= waitpid($child_pid, 0);
|
||||
if ($ret_pid != $child_pid){
|
||||
message("unexpected pid $ret_pid returned from waitpid($child_pid)");
|
||||
}
|
||||
}
|
||||
|
||||
message("DONE!");
|
||||
exit (1);
|
||||
|
||||
|
|
@ -769,18 +769,11 @@ sub collect_one_test_case {
|
|||
if ( $tinfo->{'ndb_test'} )
|
||||
{
|
||||
# This is a NDB test
|
||||
if ( $::opt_skip_ndbcluster == 2 )
|
||||
if ( $::ndbcluster_enabled == 0)
|
||||
{
|
||||
# Ndb is not supported, skip it
|
||||
# ndbcluster is disabled
|
||||
$tinfo->{'skip'}= 1;
|
||||
$tinfo->{'comment'}= "No ndbcluster support or ndb tests not enabled";
|
||||
return $tinfo;
|
||||
}
|
||||
elsif ( $::opt_skip_ndbcluster )
|
||||
{
|
||||
# All ndb test's should be skipped
|
||||
$tinfo->{'skip'}= 1;
|
||||
$tinfo->{'comment'}= "No ndbcluster";
|
||||
$tinfo->{'comment'}= "ndbcluster disabled";
|
||||
return $tinfo;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -28,7 +28,7 @@ our @EXPORT= qw(report_option mtr_print_line mtr_print_thick_line
|
|||
mtr_warning mtr_error mtr_debug mtr_verbose
|
||||
mtr_verbose_restart mtr_report_test_passed
|
||||
mtr_report_test_skipped mtr_print
|
||||
mtr_report_test);
|
||||
mtr_report_test isotime);
|
||||
|
||||
use mtr_match;
|
||||
use My::Platform;
|
||||
|
@ -106,6 +106,8 @@ sub mtr_report_test_passed ($) {
|
|||
$tinfo->{'result'}= 'MTR_RES_PASSED';
|
||||
|
||||
mtr_report_test($tinfo);
|
||||
|
||||
resfile_global("endtime ", isotime (time));
|
||||
}
|
||||
|
||||
|
||||
|
@ -550,4 +552,12 @@ sub mtr_verbose_restart (@) {
|
|||
}
|
||||
|
||||
|
||||
# Used by --result-file for for formatting times
|
||||
|
||||
sub isotime($) {
|
||||
my ($sec,$min,$hr,$day,$mon,$yr)= gmtime($_[0]);
|
||||
return sprintf "%d-%02d-%02dT%02d:%02d:%02dZ",
|
||||
$yr+1900, $mon+1, $day, $hr, $min, $sec;
|
||||
}
|
||||
|
||||
1;
|
||||
|
|
|
@ -333,8 +333,9 @@ sub check_timeout ($) { return testcase_timeout($_[0]) / 10; }
|
|||
|
||||
our $opt_warnings= 1;
|
||||
|
||||
our $opt_include_ndbcluster= 0;
|
||||
our $opt_skip_ndbcluster= 1;
|
||||
our $ndbcluster_enabled= 0;
|
||||
my $opt_include_ndbcluster= 0;
|
||||
my $opt_skip_ndbcluster= 0;
|
||||
|
||||
my $exe_ndbd;
|
||||
my $exe_ndbmtd;
|
||||
|
@ -361,14 +362,6 @@ my $opt_stop_keep_alive= $ENV{MTR_STOP_KEEP_ALIVE};
|
|||
select(STDOUT);
|
||||
$| = 1; # Automatically flush STDOUT
|
||||
|
||||
# Used by --result-file for for formatting times
|
||||
|
||||
sub isotime($) {
|
||||
my ($sec,$min,$hr,$day,$mon,$yr)= gmtime($_[0]);
|
||||
return sprintf "%d-%02d-%02dT%02d:%02d:%02dZ",
|
||||
$yr+1900, $mon+1, $day, $hr, $min, $sec;
|
||||
}
|
||||
|
||||
main();
|
||||
|
||||
|
||||
|
@ -393,26 +386,6 @@ sub main {
|
|||
|
||||
if (!$opt_suites) {
|
||||
$opt_suites= $DEFAULT_SUITES;
|
||||
|
||||
# Check for any extra suites to enable based on the path name
|
||||
my %extra_suites=
|
||||
(
|
||||
"mysql-5.1-new-ndb" => "ndb_team",
|
||||
"mysql-5.1-new-ndb-merge" => "ndb_team",
|
||||
"mysql-5.1-telco-6.2" => "ndb_team",
|
||||
"mysql-5.1-telco-6.2-merge" => "ndb_team",
|
||||
"mysql-5.1-telco-6.3" => "ndb_team",
|
||||
"mysql-6.0-ndb" => "ndb_team",
|
||||
);
|
||||
|
||||
foreach my $dir ( reverse splitdir($basedir) ) {
|
||||
my $extra_suite= $extra_suites{$dir};
|
||||
if (defined $extra_suite) {
|
||||
mtr_report("Found extra suite: $extra_suite");
|
||||
$opt_suites= "$extra_suite,$opt_suites";
|
||||
last;
|
||||
}
|
||||
}
|
||||
}
|
||||
mtr_report("Using suites: $opt_suites") unless @opt_cases;
|
||||
|
||||
|
@ -762,6 +735,10 @@ sub run_test_server ($$$) {
|
|||
else {
|
||||
mtr_report("\nRetrying test $tname, ".
|
||||
"attempt($retries/$opt_retry)...\n");
|
||||
#saving the log file as filename.failed in case of retry
|
||||
my $worker_logdir= $result->{savedir};
|
||||
my $log_file_name=dirname($worker_logdir)."/".$result->{shortname}.".log";
|
||||
rename $log_file_name,$log_file_name.".failed";
|
||||
delete($result->{result});
|
||||
$result->{retries}= $retries+1;
|
||||
$result->write_test($sock, 'TESTCASE');
|
||||
|
@ -1138,7 +1115,7 @@ sub command_line_setup {
|
|||
# Control what test suites or cases to run
|
||||
'force+' => \$opt_force,
|
||||
'with-ndbcluster-only' => \&collect_option,
|
||||
'include-ndbcluster' => \$opt_include_ndbcluster,
|
||||
'ndb|include-ndbcluster' => \$opt_include_ndbcluster,
|
||||
'skip-ndbcluster|skip-ndb' => \$opt_skip_ndbcluster,
|
||||
'suite|suites=s' => \$opt_suites,
|
||||
'skip-rpl' => \&collect_option,
|
||||
|
@ -1580,7 +1557,6 @@ sub command_line_setup {
|
|||
# --------------------------------------------------------------------------
|
||||
if ( $opt_embedded_server )
|
||||
{
|
||||
$opt_skip_ndbcluster= 1; # Turn off use of NDB cluster
|
||||
$opt_skip_ssl= 1; # Turn off use of SSL
|
||||
|
||||
# Turn off use of bin log
|
||||
|
@ -2036,7 +2012,7 @@ sub executable_setup () {
|
|||
|
||||
$exe_mysql_embedded= mtr_exe_maybe_exists("$basedir/libmysqld/examples/mysql_embedded");
|
||||
|
||||
if ( ! $opt_skip_ndbcluster )
|
||||
if ( $ndbcluster_enabled )
|
||||
{
|
||||
# Look for single threaded NDB
|
||||
$exe_ndbd=
|
||||
|
@ -2298,7 +2274,7 @@ sub environment_setup {
|
|||
# --------------------------------------------------------------------------
|
||||
# Add the path where libndbclient can be found
|
||||
# --------------------------------------------------------------------------
|
||||
if ( !$opt_skip_ndbcluster )
|
||||
if ( $ndbcluster_enabled )
|
||||
{
|
||||
push(@ld_library_paths, "$basedir/storage/ndb/src/.libs");
|
||||
}
|
||||
|
@ -2391,7 +2367,7 @@ sub environment_setup {
|
|||
# ----------------------------------------------------
|
||||
# Setup env for NDB
|
||||
# ----------------------------------------------------
|
||||
if ( ! $opt_skip_ndbcluster )
|
||||
if ( $ndbcluster_enabled )
|
||||
{
|
||||
$ENV{'NDB_MGM'}=
|
||||
my_find_bin($bindir,
|
||||
|
@ -2822,7 +2798,7 @@ sub fix_vs_config_dir () {
|
|||
$opt_vs_config="";
|
||||
|
||||
|
||||
for (<$bindir/sql/*/mysqld.exe>) {
|
||||
for (<$bindir/sql/*/mysqld.exe>) { #/
|
||||
if (-M $_ < $modified)
|
||||
{
|
||||
$modified = -M _;
|
||||
|
@ -2864,37 +2840,87 @@ sub vs_config_dirs ($$) {
|
|||
|
||||
sub check_ndbcluster_support {
|
||||
|
||||
my $ndbcluster_supported = 0;
|
||||
if ($mysqld_variables{'ndb-connectstring'})
|
||||
{
|
||||
$ndbcluster_supported = 1;
|
||||
}
|
||||
|
||||
if ($opt_skip_ndbcluster && $opt_include_ndbcluster)
|
||||
{
|
||||
# User is ambivalent. Theoretically the arg which was
|
||||
# given last on command line should win, but that order is
|
||||
# unknown at this time.
|
||||
mtr_error("Ambigous command, both --include-ndbcluster " .
|
||||
" and --skip-ndbcluster was specified");
|
||||
}
|
||||
|
||||
# Check if this is MySQL Cluster, ie. mysql version string ends
|
||||
# with -ndb-Y.Y.Y[-status]
|
||||
if ( defined $mysql_version_extra &&
|
||||
$mysql_version_extra =~ /^-ndb-/ )
|
||||
$mysql_version_extra =~ /-ndb-([0-9]*)\.([0-9]*)\.([0-9]*)/ )
|
||||
{
|
||||
mtr_report(" - MySQL Cluster");
|
||||
# Enable ndb engine and add more test suites
|
||||
$opt_include_ndbcluster = 1;
|
||||
$DEFAULT_SUITES.=",ndb";
|
||||
# MySQL Cluster tree
|
||||
mtr_report(" - MySQL Cluster detected");
|
||||
|
||||
if ($opt_skip_ndbcluster)
|
||||
{
|
||||
mtr_report(" - skipping ndbcluster(--skip-ndbcluster)");
|
||||
return;
|
||||
}
|
||||
|
||||
if (!$ndbcluster_supported)
|
||||
{
|
||||
# MySQL Cluster tree, but mysqld was not compiled with
|
||||
# ndbcluster -> fail unless --skip-ndbcluster was used
|
||||
mtr_error("This is MySQL Cluster but mysqld does not " .
|
||||
"support ndbcluster. Use --skip-ndbcluster to " .
|
||||
"force mtr to run without it.");
|
||||
}
|
||||
|
||||
# mysqld was compiled with ndbcluster -> auto enable
|
||||
}
|
||||
else
|
||||
{
|
||||
# Not a MySQL Cluster tree
|
||||
if (!$ndbcluster_supported)
|
||||
{
|
||||
if ($opt_include_ndbcluster)
|
||||
{
|
||||
mtr_error("Could not detect ndbcluster support ".
|
||||
"requested with --include-ndbcluster");
|
||||
}
|
||||
|
||||
# Silently skip, mysqld was compiled without ndbcluster
|
||||
# which is the default case
|
||||
return;
|
||||
}
|
||||
|
||||
if ($opt_skip_ndbcluster)
|
||||
{
|
||||
# Compiled with ndbcluster but ndbcluster skipped
|
||||
mtr_report(" - skipping ndbcluster(--skip-ndbcluster)");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
# Not a MySQL Cluster tree, enable ndbcluster
|
||||
# if --include-ndbcluster was used
|
||||
if ($opt_include_ndbcluster)
|
||||
{
|
||||
# enable ndbcluster
|
||||
}
|
||||
else
|
||||
{
|
||||
mtr_report(" - skipping ndbcluster(disabled by default)");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if ($opt_include_ndbcluster)
|
||||
{
|
||||
$opt_skip_ndbcluster= 0;
|
||||
}
|
||||
|
||||
if ($opt_skip_ndbcluster)
|
||||
{
|
||||
mtr_report(" - skipping ndbcluster");
|
||||
return;
|
||||
}
|
||||
|
||||
if ( ! $mysqld_variables{'ndb-connectstring'} )
|
||||
{
|
||||
#mtr_report(" - skipping ndbcluster, mysqld not compiled with ndbcluster");
|
||||
$opt_skip_ndbcluster= 2;
|
||||
return;
|
||||
}
|
||||
|
||||
mtr_report(" - using ndbcluster when necessary, mysqld supports it");
|
||||
|
||||
mtr_report(" - enabling ndbcluster");
|
||||
$ndbcluster_enabled= 1;
|
||||
# Add MySQL Cluster test suites
|
||||
$DEFAULT_SUITES.=",ndb,ndb_binlog,rpl_ndb,ndb_rpl,ndb_memcache";
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -4,18 +4,18 @@
|
|||
CREATE TABLE t1 (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`col432` bit(8) DEFAULT NULL,
|
||||
`col433` multipoint DEFAULT NULL,
|
||||
`col434` polygon DEFAULT NULL,
|
||||
`col433` geometry DEFAULT NULL,
|
||||
`col434` geometry DEFAULT NULL,
|
||||
`col435` decimal(50,17) unsigned DEFAULT NULL,
|
||||
`col436` geometry NOT NULL,
|
||||
`col437` tinyblob NOT NULL,
|
||||
`col438` multipolygon DEFAULT NULL,
|
||||
`col438` geometry DEFAULT NULL,
|
||||
`col439` mediumblob NOT NULL,
|
||||
`col440` tinyblob NOT NULL,
|
||||
`col441` double unsigned DEFAULT NULL
|
||||
);
|
||||
CREATE TABLE t2 (
|
||||
`a` multipoint DEFAULT NULL,
|
||||
`a` geometry DEFAULT NULL,
|
||||
`col460` date DEFAULT NULL,
|
||||
`col461` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||
`col462` date NOT NULL,
|
||||
|
@ -31,7 +31,7 @@ CREATE TABLE t3 (
|
|||
`col579` bit(38) NOT NULL,
|
||||
`col580` varchar(93) NOT NULL,
|
||||
`col581` datetime DEFAULT NULL,
|
||||
`col583` multipolygon DEFAULT NULL,
|
||||
`col583` geometry DEFAULT NULL,
|
||||
`col584` bit(47) NOT NULL
|
||||
);
|
||||
set session sort_buffer_size= 32768;
|
||||
|
|
|
@ -734,7 +734,7 @@ ALTER DATABASE `mysqltest1` CHARACTER SET utf8 COLLATE utf8_unicode_ci ;
|
|||
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
|
||||
/*!50003 SET sql_mode = '' */ ;
|
||||
DELIMITER ;;
|
||||
/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `p1`(
|
||||
CREATE DEFINER=`root`@`localhost` PROCEDURE `p1`(
|
||||
INOUT ÐÁÒÁÍ1 CHAR(10),
|
||||
OUT ÐÁÒÁÍ2 CHAR(10))
|
||||
BEGIN
|
||||
|
@ -751,7 +751,7 @@ COLLATION(_utf8 'текст') AS c6,
|
|||
@@character_set_client AS c8;
|
||||
SET ÐÁÒÁÍ1 = 'a';
|
||||
SET ÐÁÒÁÍ2 = 'b';
|
||||
END */;;
|
||||
END ;;
|
||||
DELIMITER ;
|
||||
/*!50003 SET sql_mode = @saved_sql_mode */ ;
|
||||
/*!50003 SET character_set_client = @saved_cs_client */ ;
|
||||
|
@ -768,7 +768,7 @@ ALTER DATABASE `mysqltest1` CHARACTER SET utf8 COLLATE utf8_unicode_ci ;
|
|||
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
|
||||
/*!50003 SET sql_mode = '' */ ;
|
||||
DELIMITER ;;
|
||||
/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `p2`(
|
||||
CREATE DEFINER=`root`@`localhost` PROCEDURE `p2`(
|
||||
INOUT ÐÁÒÁÍ1 CHAR(10) CHARACTER SET utf8,
|
||||
OUT ÐÁÒÁÍ2 CHAR(10) CHARACTER SET utf8)
|
||||
BEGIN
|
||||
|
@ -785,7 +785,7 @@ COLLATION(_utf8 'текст') AS c6,
|
|||
@@character_set_client AS c8;
|
||||
SET ÐÁÒÁÍ1 = 'a';
|
||||
SET ÐÁÒÁÍ2 = 'b';
|
||||
END */;;
|
||||
END ;;
|
||||
DELIMITER ;
|
||||
/*!50003 SET sql_mode = @saved_sql_mode */ ;
|
||||
/*!50003 SET character_set_client = @saved_cs_client */ ;
|
||||
|
@ -810,7 +810,7 @@ ALTER DATABASE `mysqltest2` CHARACTER SET utf8 COLLATE utf8_unicode_ci ;
|
|||
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
|
||||
/*!50003 SET sql_mode = '' */ ;
|
||||
DELIMITER ;;
|
||||
/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `p3`(
|
||||
CREATE DEFINER=`root`@`localhost` PROCEDURE `p3`(
|
||||
INOUT ÐÁÒÁÍ1 CHAR(10),
|
||||
OUT ÐÁÒÁÍ2 CHAR(10))
|
||||
BEGIN
|
||||
|
@ -827,7 +827,7 @@ COLLATION(_utf8 'текст') AS c6,
|
|||
@@character_set_client AS c8;
|
||||
SET ÐÁÒÁÍ1 = 'a';
|
||||
SET ÐÁÒÁÍ2 = 'b';
|
||||
END */;;
|
||||
END ;;
|
||||
DELIMITER ;
|
||||
/*!50003 SET sql_mode = @saved_sql_mode */ ;
|
||||
/*!50003 SET character_set_client = @saved_cs_client */ ;
|
||||
|
@ -844,7 +844,7 @@ ALTER DATABASE `mysqltest2` CHARACTER SET utf8 COLLATE utf8_unicode_ci ;
|
|||
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
|
||||
/*!50003 SET sql_mode = '' */ ;
|
||||
DELIMITER ;;
|
||||
/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `p4`(
|
||||
CREATE DEFINER=`root`@`localhost` PROCEDURE `p4`(
|
||||
INOUT ÐÁÒÁÍ1 CHAR(10) CHARACTER SET utf8,
|
||||
OUT ÐÁÒÁÍ2 CHAR(10) CHARACTER SET utf8)
|
||||
BEGIN
|
||||
|
@ -861,7 +861,7 @@ COLLATION(_utf8 'текст') AS c6,
|
|||
@@character_set_client AS c8;
|
||||
SET ÐÁÒÁÍ1 = 'a';
|
||||
SET ÐÁÒÁÍ2 = 'b';
|
||||
END */;;
|
||||
END ;;
|
||||
DELIMITER ;
|
||||
/*!50003 SET sql_mode = @saved_sql_mode */ ;
|
||||
/*!50003 SET character_set_client = @saved_cs_client */ ;
|
||||
|
|
|
@ -734,7 +734,7 @@ ALTER DATABASE `mysqltest1` CHARACTER SET utf8 COLLATE utf8_unicode_ci ;
|
|||
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
|
||||
/*!50003 SET sql_mode = '' */ ;
|
||||
DELIMITER ;;
|
||||
/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `p1`(
|
||||
CREATE DEFINER=`root`@`localhost` PROCEDURE `p1`(
|
||||
INOUT парам1 CHAR(10),
|
||||
OUT парам2 CHAR(10))
|
||||
BEGIN
|
||||
|
@ -751,7 +751,7 @@ COLLATION(_koi8r '
|
|||
@@character_set_client AS c8;
|
||||
SET парам1 = 'a';
|
||||
SET парам2 = 'b';
|
||||
END */;;
|
||||
END ;;
|
||||
DELIMITER ;
|
||||
/*!50003 SET sql_mode = @saved_sql_mode */ ;
|
||||
/*!50003 SET character_set_client = @saved_cs_client */ ;
|
||||
|
@ -768,7 +768,7 @@ ALTER DATABASE `mysqltest1` CHARACTER SET utf8 COLLATE utf8_unicode_ci ;
|
|||
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
|
||||
/*!50003 SET sql_mode = '' */ ;
|
||||
DELIMITER ;;
|
||||
/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `p2`(
|
||||
CREATE DEFINER=`root`@`localhost` PROCEDURE `p2`(
|
||||
INOUT парам1 CHAR(10) CHARACTER SET utf8,
|
||||
OUT парам2 CHAR(10) CHARACTER SET utf8)
|
||||
BEGIN
|
||||
|
@ -785,7 +785,7 @@ COLLATION(_koi8r '
|
|||
@@character_set_client AS c8;
|
||||
SET парам1 = 'a';
|
||||
SET парам2 = 'b';
|
||||
END */;;
|
||||
END ;;
|
||||
DELIMITER ;
|
||||
/*!50003 SET sql_mode = @saved_sql_mode */ ;
|
||||
/*!50003 SET character_set_client = @saved_cs_client */ ;
|
||||
|
@ -810,7 +810,7 @@ ALTER DATABASE `mysqltest2` CHARACTER SET utf8 COLLATE utf8_unicode_ci ;
|
|||
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
|
||||
/*!50003 SET sql_mode = '' */ ;
|
||||
DELIMITER ;;
|
||||
/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `p3`(
|
||||
CREATE DEFINER=`root`@`localhost` PROCEDURE `p3`(
|
||||
INOUT парам1 CHAR(10),
|
||||
OUT парам2 CHAR(10))
|
||||
BEGIN
|
||||
|
@ -827,7 +827,7 @@ COLLATION(_koi8r '
|
|||
@@character_set_client AS c8;
|
||||
SET парам1 = 'a';
|
||||
SET парам2 = 'b';
|
||||
END */;;
|
||||
END ;;
|
||||
DELIMITER ;
|
||||
/*!50003 SET sql_mode = @saved_sql_mode */ ;
|
||||
/*!50003 SET character_set_client = @saved_cs_client */ ;
|
||||
|
@ -844,7 +844,7 @@ ALTER DATABASE `mysqltest2` CHARACTER SET utf8 COLLATE utf8_unicode_ci ;
|
|||
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
|
||||
/*!50003 SET sql_mode = '' */ ;
|
||||
DELIMITER ;;
|
||||
/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `p4`(
|
||||
CREATE DEFINER=`root`@`localhost` PROCEDURE `p4`(
|
||||
INOUT парам1 CHAR(10) CHARACTER SET utf8,
|
||||
OUT парам2 CHAR(10) CHARACTER SET utf8)
|
||||
BEGIN
|
||||
|
@ -861,7 +861,7 @@ COLLATION(_koi8r '
|
|||
@@character_set_client AS c8;
|
||||
SET парам1 = 'a';
|
||||
SET парам2 = 'b';
|
||||
END */;;
|
||||
END ;;
|
||||
DELIMITER ;
|
||||
/*!50003 SET sql_mode = @saved_sql_mode */ ;
|
||||
/*!50003 SET character_set_client = @saved_cs_client */ ;
|
||||
|
|
|
@ -441,3 +441,16 @@ ERROR 21000: Subquery returns more than 1 row
|
|||
DROP TABLE t1, t2;
|
||||
DROP VIEW v1, v2;
|
||||
set optimizer_switch=@save_derived_optimizer_switch;
|
||||
create table t1 (n bigint(20) unsigned, d1 datetime, d2 datetime, key (d1));
|
||||
insert t1 values (2085,'2012-01-01 00:00:00','2013-01-01 00:00:00');
|
||||
insert t1 values (2084,'2012-02-01 00:00:00','2013-01-01 00:00:00');
|
||||
insert t1 values (2088,'2012-03-01 00:00:00','2013-01-01 00:00:00');
|
||||
select * from (
|
||||
select n, d1, d2, @result := 0 as result
|
||||
from t1
|
||||
where d1 < '2012-12-12 12:12:12' and n in (2085, 2084) order by d2 asc
|
||||
) as calculated_result;
|
||||
n d1 d2 result
|
||||
2085 2012-01-01 00:00:00 2013-01-01 00:00:00 0
|
||||
2084 2012-02-01 00:00:00 2013-01-01 00:00:00 0
|
||||
drop table t1;
|
||||
|
|
|
@ -70,7 +70,7 @@ id select_type table type possible_keys key key_len ref rows Extra
|
|||
1 SIMPLE t1 index NULL PRIMARY 5 NULL 4 Using index; Using temporary
|
||||
explain select distinct f1, f2 from t1;
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 SIMPLE t1 range NULL PRIMARY 5 NULL 3 Using index for group-by; Using temporary
|
||||
1 SIMPLE t1 index NULL PRIMARY 5 NULL 4 Using index
|
||||
drop table t1;
|
||||
create table t1(pk int primary key) engine=innodb;
|
||||
create view v1 as select pk from t1 where pk < 20;
|
||||
|
|
|
@ -5595,7 +5595,7 @@ DROP TABLE t1,t2,t3;
|
|||
#
|
||||
CREATE TABLE t1 (
|
||||
col269 decimal(31,10) unsigned DEFAULT NULL,
|
||||
col280 multipoint DEFAULT NULL,
|
||||
col280 geometry DEFAULT NULL,
|
||||
col281 tinyint(1) DEFAULT NULL,
|
||||
col282 time NOT NULL,
|
||||
col284 datetime DEFAULT NULL,
|
||||
|
|
|
@ -2291,19 +2291,19 @@ t1 CREATE TABLE `t1` (
|
|||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 TRANSACTIONAL=1
|
||||
drop table t1;
|
||||
CREATE TABLE t1 (line LINESTRING NOT NULL) engine=myisam;
|
||||
INSERT INTO t1 VALUES (GeomFromText("POINT(0 0)"));
|
||||
INSERT INTO t1 VALUES (GeomFromText("LINESTRING(0 0)"));
|
||||
checksum table t1;
|
||||
Table Checksum
|
||||
test.t1 326284887
|
||||
test.t1 310616673
|
||||
CREATE TABLE t2 (line LINESTRING NOT NULL) engine=myisam;
|
||||
INSERT INTO t2 VALUES (GeomFromText("POINT(0 0)"));
|
||||
INSERT INTO t2 VALUES (GeomFromText("LINESTRING(0 0)"));
|
||||
checksum table t2;
|
||||
Table Checksum
|
||||
test.t2 326284887
|
||||
test.t2 310616673
|
||||
CREATE TABLE t3 select * from t1;
|
||||
checksum table t3;
|
||||
Table Checksum
|
||||
test.t3 326284887
|
||||
test.t3 310616673
|
||||
drop table t1,t2,t3;
|
||||
create table t1 (a1 int,a2 int,a3 int,a4 int,a5 int,a6 int,a7 int,a8 int,a9 int,a10 int,a11 int,a12 int,a13 int,a14 int,a15 int,a16 int,a17 int,a18 int,a19 int,a20 int,a21 int,a22 int,a23 int,a24 int,a25 int,a26 int,a27 int,a28 int,a29 int,a30 int,a31 int,a32 int,
|
||||
key(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16,a17,a18,a19,a20,a21,a22,a23,a24,a25,a26,a27,a28,a29,a30,a31,a32)) engine=myisam;
|
||||
|
@ -2337,25 +2337,6 @@ h+0 d + 0 e g + 0
|
|||
1 1 3 0
|
||||
1 1 4 0
|
||||
DROP TABLE t1;
|
||||
#
|
||||
# Test of BUG#35570 CHECKSUM TABLE unreliable if LINESTRING field
|
||||
# (same content / differen checksum)
|
||||
#
|
||||
CREATE TABLE t1 (line LINESTRING NOT NULL) engine=myisam;
|
||||
INSERT INTO t1 VALUES (GeomFromText("POINT(0 0)"));
|
||||
checksum table t1;
|
||||
Table Checksum
|
||||
test.t1 326284887
|
||||
CREATE TABLE t2 (line LINESTRING NOT NULL) engine=myisam;
|
||||
INSERT INTO t2 VALUES (GeomFromText("POINT(0 0)"));
|
||||
checksum table t2;
|
||||
Table Checksum
|
||||
test.t2 326284887
|
||||
CREATE TABLE t3 select * from t1;
|
||||
checksum table t3;
|
||||
Table Checksum
|
||||
test.t3 326284887
|
||||
drop table t1,t2,t3;
|
||||
CREATE TABLE t1(a INT, b CHAR(10), KEY(a), KEY(b));
|
||||
INSERT INTO t1 VALUES(1,'0'),(2,'0'),(3,'0'),(4,'0'),(5,'0'),
|
||||
(6,'0'),(7,'0');
|
||||
|
|
|
@ -513,5 +513,7 @@ create database `aa``bb````cc`;
|
|||
DATABASE()
|
||||
aa`bb``cc
|
||||
drop database `aa``bb````cc`;
|
||||
a
|
||||
>>\ndelimiter\n<<
|
||||
|
||||
End of tests
|
||||
|
|
|
@ -19,6 +19,7 @@ a
|
|||
1
|
||||
2
|
||||
FLUSH LOGS;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -50,6 +51,8 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -81,5 +84,6 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
DROP DATABASE test2;
|
||||
DROP TABLE t1;
|
||||
|
|
|
@ -14,6 +14,7 @@ insert into t1 values ("Alas");
|
|||
flush logs;
|
||||
|
||||
--- Local --
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -95,8 +96,10 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
|
||||
--- Broken LOAD DATA --
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -131,8 +134,10 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
|
||||
--- --database --
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -186,8 +191,10 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
|
||||
--- --start-position --
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -213,8 +220,10 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
|
||||
--- Remote --
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -296,8 +305,10 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
|
||||
--- Broken LOAD DATA --
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -332,8 +343,10 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
|
||||
--- --database --
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -387,8 +400,10 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
|
||||
--- --start-position --
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -414,8 +429,10 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
|
||||
--- reading stdin --
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -435,6 +452,8 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -453,6 +472,7 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
drop table t1,t2;
|
||||
flush logs;
|
||||
flush logs;
|
||||
|
@ -495,6 +515,7 @@ call p1();
|
|||
drop procedure p1;
|
||||
call p1();
|
||||
ERROR 42000: PROCEDURE test.p1 does not exist
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -517,6 +538,7 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
call p1();
|
||||
1
|
||||
1
|
||||
|
@ -545,6 +567,7 @@ C3BF
|
|||
D0AA
|
||||
drop table t1;
|
||||
flush logs;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -634,6 +657,7 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
CREATE TABLE t1 (c1 CHAR(10));
|
||||
FLUSH LOGS;
|
||||
INSERT INTO t1 VALUES ('0123456789');
|
||||
|
@ -721,6 +745,7 @@ RESET MASTER;
|
|||
FLUSH LOGS;
|
||||
#
|
||||
# Test if the 'BEGIN', 'ROLLBACK' and 'COMMIT' are output if the database specified exists
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -772,8 +797,10 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
#
|
||||
# Test if the 'BEGIN', 'ROLLBACK' and 'COMMIT' are output if the database specified does not exist
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -806,8 +833,10 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
#
|
||||
# Test if the 'SAVEPOINT', 'ROLLBACK TO' are output if the database specified exists
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -846,8 +875,10 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
#
|
||||
# Test if the 'SAVEPOINT', 'ROLLBACK TO' are output if the database specified does not exist
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -873,6 +904,7 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
End of 5.0 tests
|
||||
End of 5.1 tests
|
||||
# Expect deprecation warning.
|
||||
|
|
|
@ -2791,8 +2791,8 @@ UNLOCK TABLES;
|
|||
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
|
||||
/*!50003 SET sql_mode = '' */ ;
|
||||
DELIMITER ;;
|
||||
/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `bug9056_func1`(a INT, b INT) RETURNS int(11)
|
||||
RETURN a+b */;;
|
||||
CREATE DEFINER=`root`@`localhost` FUNCTION `bug9056_func1`(a INT, b INT) RETURNS int(11)
|
||||
RETURN a+b ;;
|
||||
DELIMITER ;
|
||||
/*!50003 SET sql_mode = @saved_sql_mode */ ;
|
||||
/*!50003 SET character_set_client = @saved_cs_client */ ;
|
||||
|
@ -2808,11 +2808,11 @@ DELIMITER ;
|
|||
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
|
||||
/*!50003 SET sql_mode = '' */ ;
|
||||
DELIMITER ;;
|
||||
/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 FUNCTION `bug9056_func2`(f1 char binary) RETURNS char(1) CHARSET latin1
|
||||
CREATE DEFINER=`root`@`localhost` FUNCTION `bug9056_func2`(f1 char binary) RETURNS char(1) CHARSET latin1
|
||||
begin
|
||||
set f1= concat( 'hello', f1 );
|
||||
return f1;
|
||||
end */;;
|
||||
end ;;
|
||||
DELIMITER ;
|
||||
/*!50003 SET sql_mode = @saved_sql_mode */ ;
|
||||
/*!50003 SET character_set_client = @saved_cs_client */ ;
|
||||
|
@ -2828,8 +2828,8 @@ DELIMITER ;
|
|||
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
|
||||
/*!50003 SET sql_mode = 'REAL_AS_FLOAT,PIPES_AS_CONCAT,ANSI_QUOTES,IGNORE_SPACE,ANSI' */ ;
|
||||
DELIMITER ;;
|
||||
/*!50003 CREATE*/ /*!50020 DEFINER="root"@"localhost"*/ /*!50003 PROCEDURE "a'b"()
|
||||
select 1 */;;
|
||||
CREATE DEFINER="root"@"localhost" PROCEDURE "a'b"()
|
||||
select 1 ;;
|
||||
DELIMITER ;
|
||||
/*!50003 SET sql_mode = @saved_sql_mode */ ;
|
||||
/*!50003 SET character_set_client = @saved_cs_client */ ;
|
||||
|
@ -2845,8 +2845,8 @@ DELIMITER ;
|
|||
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
|
||||
/*!50003 SET sql_mode = '' */ ;
|
||||
DELIMITER ;;
|
||||
/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `bug9056_proc1`(IN a INT, IN b INT, OUT c INT)
|
||||
BEGIN SELECT a+b INTO c; end */;;
|
||||
CREATE DEFINER=`root`@`localhost` PROCEDURE `bug9056_proc1`(IN a INT, IN b INT, OUT c INT)
|
||||
BEGIN SELECT a+b INTO c; end ;;
|
||||
DELIMITER ;
|
||||
/*!50003 SET sql_mode = @saved_sql_mode */ ;
|
||||
/*!50003 SET character_set_client = @saved_cs_client */ ;
|
||||
|
@ -2862,10 +2862,10 @@ DELIMITER ;
|
|||
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
|
||||
/*!50003 SET sql_mode = '' */ ;
|
||||
DELIMITER ;;
|
||||
/*!50003 CREATE*/ /*!50020 DEFINER=`root`@`localhost`*/ /*!50003 PROCEDURE `bug9056_proc2`(OUT a INT)
|
||||
CREATE DEFINER=`root`@`localhost` PROCEDURE `bug9056_proc2`(OUT a INT)
|
||||
BEGIN
|
||||
select sum(id) from t1 into a;
|
||||
END */;;
|
||||
END ;;
|
||||
DELIMITER ;
|
||||
/*!50003 SET sql_mode = @saved_sql_mode */ ;
|
||||
/*!50003 SET character_set_client = @saved_cs_client */ ;
|
||||
|
@ -3851,8 +3851,8 @@ create procedure mysqldump_test_db.sp1() select 'hello';
|
|||
/*!50003 SET @saved_sql_mode = @@sql_mode */ ;
|
||||
/*!50003 SET sql_mode = '' */ ;
|
||||
DELIMITER ;;
|
||||
/*!50003 CREATE*/ /*!50020 DEFINER=`user1`@`%`*/ /*!50003 PROCEDURE `sp1`()
|
||||
select 'hello' */;;
|
||||
CREATE DEFINER=`user1`@`%` PROCEDURE `sp1`()
|
||||
select 'hello' ;;
|
||||
DELIMITER ;
|
||||
/*!50003 SET sql_mode = @saved_sql_mode */ ;
|
||||
/*!50003 SET character_set_client = @saved_cs_client */ ;
|
||||
|
|
|
@ -18,6 +18,7 @@ master-bin.000001 # User var # # @`var2`=_binary 0x61 COLLATE binary
|
|||
master-bin.000001 # Query # # use `test`; insert into t1 values (@var1),(@var2)
|
||||
master-bin.000001 # Query # # COMMIT
|
||||
flush logs;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -56,4 +57,5 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
drop table t1;
|
||||
|
|
|
@ -29,6 +29,7 @@ a
|
|||
1
|
||||
3
|
||||
==== Test --base64-output=never on a binlog with row events ====
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -51,6 +52,7 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
==== Test non-matching FD event and Row event ====
|
||||
BINLOG '
|
||||
4CdYRw8BAAAAYgAAAGYAAAAAAAQANS4xLjE1LW5kYi02LjEuMjQtZGVidWctbG9nAAAAAAAAAAAA
|
||||
|
|
|
@ -15,6 +15,7 @@ set timestamp=@a+1;
|
|||
insert into t1 values(null, "f");
|
||||
|
||||
--- Local --
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -85,8 +86,10 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
|
||||
--- offset --
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -154,8 +157,10 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
|
||||
--- start-position --
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -203,8 +208,10 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
|
||||
--- stop-position --
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -245,8 +252,10 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
|
||||
--- start and stop positions ---
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -271,8 +280,10 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
|
||||
--- start-datetime --
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -320,8 +331,10 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
|
||||
--- stop-datetime --
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -362,9 +375,11 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
|
||||
--- Local with 2 binlogs on command line --
|
||||
flush logs;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -456,8 +471,10 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
|
||||
--- offset --
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -546,8 +563,10 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
|
||||
--- start-position --
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -616,8 +635,10 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
|
||||
--- stop-position --
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -702,8 +723,10 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
|
||||
--- start-datetime --
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -772,8 +795,10 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
|
||||
--- stop-datetime --
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -814,8 +839,10 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
|
||||
--- Remote --
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -886,8 +913,10 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
|
||||
--- offset --
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -955,8 +984,10 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
|
||||
--- start-position --
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -1003,8 +1034,10 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
|
||||
--- stop-position --
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -1045,8 +1078,10 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
|
||||
--- start and stop positions ---
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -1070,8 +1105,10 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
|
||||
--- start-datetime --
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -1119,8 +1156,10 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
|
||||
--- stop-datetime --
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -1161,8 +1200,10 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
|
||||
--- Remote with 2 binlogs on command line --
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -1254,8 +1295,10 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
|
||||
--- offset --
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -1344,8 +1387,10 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
|
||||
--- start-position --
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -1413,8 +1458,10 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
|
||||
--- stop-position --
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -1498,8 +1545,10 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
|
||||
--- start-datetime --
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -1568,8 +1617,10 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
|
||||
--- stop-datetime --
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -1610,8 +1661,10 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
|
||||
--- to-last-log --
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -1692,6 +1745,7 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
|
||||
--- end of test --
|
||||
drop table t1;
|
||||
|
|
|
@ -328,6 +328,7 @@ INSERT INTO t2 SET b=1;
|
|||
UPDATE t1, t2 SET t1.a=10, t2.a=20;
|
||||
DROP TABLE t1,t2;
|
||||
flush logs;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -4135,3 +4136,4 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
|
|
|
@ -2245,6 +2245,7 @@ FLUSH LOGS;
|
|||
#
|
||||
# Call mysqlbinlog to display the log file contents.
|
||||
#
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -3786,6 +3787,7 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
#
|
||||
# Cleanup.
|
||||
#
|
||||
|
@ -3868,6 +3870,7 @@ FLUSH LOGS;
|
|||
#
|
||||
# Call mysqlbinlog to display the log file contents.
|
||||
#
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -4077,6 +4080,7 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
#
|
||||
# Cleanup.
|
||||
#
|
||||
|
@ -4235,6 +4239,7 @@ FLUSH LOGS;
|
|||
#
|
||||
# Call mysqlbinlog to display the log file contents.
|
||||
#
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -4746,6 +4751,7 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
#
|
||||
# Cleanup.
|
||||
#
|
||||
|
@ -4796,6 +4802,7 @@ FLUSH LOGS;
|
|||
#
|
||||
# Call mysqlbinlog to display the log file contents.
|
||||
#
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -4853,6 +4860,7 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
#
|
||||
# Cleanup.
|
||||
#
|
||||
|
|
|
@ -2245,6 +2245,7 @@ FLUSH LOGS;
|
|||
#
|
||||
# Call mysqlbinlog to display the log file contents.
|
||||
#
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -3808,6 +3809,7 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
#
|
||||
# Cleanup.
|
||||
#
|
||||
|
@ -3890,6 +3892,7 @@ FLUSH LOGS;
|
|||
#
|
||||
# Call mysqlbinlog to display the log file contents.
|
||||
#
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -4105,6 +4108,7 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
#
|
||||
# Cleanup.
|
||||
#
|
||||
|
@ -4263,6 +4267,7 @@ FLUSH LOGS;
|
|||
#
|
||||
# Call mysqlbinlog to display the log file contents.
|
||||
#
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -4784,6 +4789,7 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
#
|
||||
# Cleanup.
|
||||
#
|
||||
|
@ -4834,6 +4840,7 @@ FLUSH LOGS;
|
|||
#
|
||||
# Call mysqlbinlog to display the log file contents.
|
||||
#
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -4893,6 +4900,7 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
#
|
||||
# Cleanup.
|
||||
#
|
||||
|
|
|
@ -124,6 +124,7 @@ FLUSH LOGS;
|
|||
#
|
||||
# Call mysqlbinlog to display the log file contents.
|
||||
#
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -463,6 +464,7 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
#
|
||||
# Cleanup.
|
||||
#
|
||||
|
|
|
@ -60,6 +60,7 @@ master-bin.000001 # Rotate 1 # master-bin.000002;pos=4
|
|||
# - INSERT INTO test2.t2 VALUES (1), (2), (3)
|
||||
# - DELETE xtest1.xt1, test2.t2 FROM <...> (with one subsequent Table map)
|
||||
#####################################################################################
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -280,12 +281,14 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
#
|
||||
#####################################################################################
|
||||
# mysqlbinlog --database=test1
|
||||
# The following Annotate should appear in this output:
|
||||
# - DELETE test1.t1, test2.t2 FROM <...>
|
||||
#####################################################################################
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -425,11 +428,13 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
#
|
||||
#####################################################################################
|
||||
# mysqlbinlog --skip-annotate-row-events
|
||||
# No Annotates should appear in this output
|
||||
#####################################################################################
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -636,6 +641,7 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
#
|
||||
#####################################################################################
|
||||
# mysqlbinlog --read-from-remote-server
|
||||
|
@ -646,6 +652,7 @@ ROLLBACK /* added by mysqlbinlog */;
|
|||
# - INSERT INTO test2.t2 VALUES (1), (2), (3)
|
||||
# - DELETE xtest1.xt1, test2.t2 FROM <...> (with one subsequent Table map)
|
||||
#####################################################################################
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -866,12 +873,14 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
#
|
||||
#####################################################################################
|
||||
# mysqlbinlog --read-from-remote-server --database=test1
|
||||
# The following Annotate should appear in this output:
|
||||
# - DELETE test1.t1, test2.t2 FROM <...>
|
||||
#####################################################################################
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -1011,11 +1020,13 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
#
|
||||
#####################################################################################
|
||||
# mysqlbinlog --read-from-remote-server --skip-annotate-row-events
|
||||
# No Annotates should appear in this output
|
||||
#####################################################################################
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -1217,3 +1228,4 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
|
|
|
@ -10,6 +10,7 @@ master-bin.000001 # Table_map # # table_id: # (test.t2)
|
|||
master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
master-bin.000001 # Query # # COMMIT
|
||||
flush logs;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -32,4 +33,5 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
drop table t2;
|
||||
|
|
|
@ -28,6 +28,7 @@ flush logs;
|
|||
# --rewrite-db = test1->new_test1
|
||||
# --rewrite-db = test3->new_test3
|
||||
#
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -215,6 +216,7 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
#
|
||||
# mysqlbinlog output
|
||||
# --base64-output = decode-rows
|
||||
|
@ -222,6 +224,7 @@ ROLLBACK /* added by mysqlbinlog */;
|
|||
# --rewrite-db = test3->new_test3
|
||||
# --read-from-remote-server
|
||||
#
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -409,6 +412,7 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
DROP DATABASE test1;
|
||||
DROP DATABASE test2;
|
||||
DROP DATABASE test3;
|
||||
|
|
|
@ -10,6 +10,7 @@ master-bin.000001 # User var # # @`v`=_ucs2 0x006100620063 COLLATE ucs2_general_
|
|||
master-bin.000001 # Query # # use `test`; insert into t2 values (@v)
|
||||
master-bin.000001 # Query # # COMMIT
|
||||
flush logs;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -37,4 +38,5 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
drop table t2;
|
||||
|
|
|
@ -70,7 +70,6 @@ rpl_replicate_ignore_db : Result Difference Due To Change In .inc file
|
|||
rpl000017 : Result Difference Due To Change In .inc file
|
||||
rpl_skip_error : Result Difference Due To Change In .inc file
|
||||
|
||||
rpl_row_until : Test Present in rpl suite as well . Test Fails table with t2 table not found.
|
||||
rpl_loaddata_s : Test Present in rpl suite as well . Test Fails due to bin log truncation.
|
||||
rpl_log_pos : Test Present in rpl suite as well . Test Fails due to bin log truncation.
|
||||
rpl_row_NOW : Result Difference Due To Change In .inc file
|
||||
|
@ -96,4 +95,3 @@ rpl_relayspace : Result Difference Due To Change In .inc file
|
|||
rpl_row_inexist_tbl : Result Difference Due To Change In .inc file
|
||||
rpl_sp : Result Difference Due To Change In .inc file
|
||||
rpl_rbr_to_sbr : Result Difference Due To Change In .inc file
|
||||
rpl_row_until : Test Timesout
|
||||
|
|
|
@ -1,212 +1,60 @@
|
|||
stop slave;
|
||||
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
||||
reset master;
|
||||
reset slave;
|
||||
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
||||
start slave;
|
||||
stop slave;
|
||||
create table t1(n int not null auto_increment primary key);
|
||||
insert into t1 values (1),(2),(3),(4);
|
||||
drop table t1;
|
||||
create table t2(n int not null auto_increment primary key);
|
||||
insert into t2 values (1),(2);
|
||||
insert into t2 values (3),(4);
|
||||
drop table t2;
|
||||
start slave until master_log_file='master-bin.000001', master_log_pos=311;
|
||||
select * from t1;
|
||||
include/master-slave.inc
|
||||
[connection master]
|
||||
CREATE TABLE t1(n INT NOT NULL AUTO_INCREMENT PRIMARY KEY);
|
||||
INSERT INTO t1 VALUES (1),(2),(3),(4);
|
||||
DROP TABLE t1;
|
||||
CREATE TABLE t2(n INT NOT NULL AUTO_INCREMENT PRIMARY KEY);
|
||||
INSERT INTO t2 VALUES (1),(2);
|
||||
INSERT INTO t2 VALUES (3),(4);
|
||||
DROP TABLE t2;
|
||||
include/stop_slave.inc
|
||||
RESET SLAVE;
|
||||
START SLAVE UNTIL MASTER_LOG_FILE='master-bin.000001', MASTER_LOG_POS=master_pos_drop_t1
|
||||
include/wait_for_slave_sql_to_stop.inc
|
||||
SELECT * FROM t1;
|
||||
n
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
show slave status;
|
||||
Slave_IO_State #
|
||||
Master_Host 127.0.0.1
|
||||
Master_User root
|
||||
Master_Port MASTER_MYPORT
|
||||
Connect_Retry 1
|
||||
Master_Log_File master-bin.000001
|
||||
Read_Master_Log_Pos #
|
||||
Relay_Log_File slave-relay-bin.000004
|
||||
Relay_Log_Pos #
|
||||
Relay_Master_Log_File master-bin.000001
|
||||
Slave_IO_Running #
|
||||
Slave_SQL_Running No
|
||||
Replicate_Do_DB
|
||||
Replicate_Ignore_DB
|
||||
Replicate_Do_Table
|
||||
Replicate_Ignore_Table
|
||||
Replicate_Wild_Do_Table
|
||||
Replicate_Wild_Ignore_Table
|
||||
Last_Errno 0
|
||||
Last_Error
|
||||
Skip_Counter 0
|
||||
Exec_Master_Log_Pos #
|
||||
Relay_Log_Space #
|
||||
Until_Condition Master
|
||||
Until_Log_File master-bin.000001
|
||||
Until_Log_Pos 311
|
||||
Master_SSL_Allowed No
|
||||
Master_SSL_CA_File
|
||||
Master_SSL_CA_Path
|
||||
Master_SSL_Cert
|
||||
Master_SSL_Cipher
|
||||
Master_SSL_Key
|
||||
Seconds_Behind_Master #
|
||||
Master_SSL_Verify_Server_Cert No
|
||||
Last_IO_Errno 0
|
||||
Last_IO_Error
|
||||
Last_SQL_Errno 0
|
||||
Last_SQL_Error
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
start slave until master_log_file='master-no-such-bin.000001', master_log_pos=291;
|
||||
select * from t1;
|
||||
n 1
|
||||
n 2
|
||||
n 3
|
||||
n 4
|
||||
show slave status;
|
||||
Slave_IO_State #
|
||||
Master_Host 127.0.0.1
|
||||
Master_User root
|
||||
Master_Port MASTER_MYPORT
|
||||
Connect_Retry 1
|
||||
Master_Log_File master-bin.000001
|
||||
Read_Master_Log_Pos #
|
||||
Relay_Log_File slave-relay-bin.000004
|
||||
Relay_Log_Pos #
|
||||
Relay_Master_Log_File master-bin.000001
|
||||
Slave_IO_Running #
|
||||
Slave_SQL_Running No
|
||||
Replicate_Do_DB
|
||||
Replicate_Ignore_DB
|
||||
Replicate_Do_Table
|
||||
Replicate_Ignore_Table
|
||||
Replicate_Wild_Do_Table
|
||||
Replicate_Wild_Ignore_Table
|
||||
Last_Errno 0
|
||||
Last_Error
|
||||
Skip_Counter 0
|
||||
Exec_Master_Log_Pos #
|
||||
Relay_Log_Space #
|
||||
Until_Condition Master
|
||||
Until_Log_File master-no-such-bin.000001
|
||||
Until_Log_Pos 291
|
||||
Master_SSL_Allowed No
|
||||
Master_SSL_CA_File
|
||||
Master_SSL_CA_Path
|
||||
Master_SSL_Cert
|
||||
Master_SSL_Cipher
|
||||
Master_SSL_Key
|
||||
Seconds_Behind_Master #
|
||||
Master_SSL_Verify_Server_Cert No
|
||||
Last_IO_Errno 0
|
||||
Last_IO_Error
|
||||
Last_SQL_Errno 0
|
||||
Last_SQL_Error
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
start slave until relay_log_file='slave-relay-bin.000004', relay_log_pos=728;
|
||||
select * from t2;
|
||||
show slave status;
|
||||
Slave_IO_State #
|
||||
Master_Host 127.0.0.1
|
||||
Master_User root
|
||||
Master_Port MASTER_MYPORT
|
||||
Connect_Retry 1
|
||||
Master_Log_File master-bin.000001
|
||||
Read_Master_Log_Pos #
|
||||
Relay_Log_File slave-relay-bin.000004
|
||||
Relay_Log_Pos #
|
||||
Relay_Master_Log_File master-bin.000001
|
||||
Slave_IO_Running #
|
||||
Slave_SQL_Running No
|
||||
Replicate_Do_DB
|
||||
Replicate_Ignore_DB
|
||||
Replicate_Do_Table
|
||||
Replicate_Ignore_Table
|
||||
Replicate_Wild_Do_Table
|
||||
Replicate_Wild_Ignore_Table
|
||||
Last_Errno 0
|
||||
Last_Error
|
||||
Skip_Counter 0
|
||||
Exec_Master_Log_Pos #
|
||||
Relay_Log_Space #
|
||||
Until_Condition Relay
|
||||
Until_Log_File slave-relay-bin.000004
|
||||
Until_Log_Pos 728
|
||||
Master_SSL_Allowed No
|
||||
Master_SSL_CA_File
|
||||
Master_SSL_CA_Path
|
||||
Master_SSL_Cert
|
||||
Master_SSL_Cipher
|
||||
Master_SSL_Key
|
||||
Seconds_Behind_Master #
|
||||
Master_SSL_Verify_Server_Cert No
|
||||
Last_IO_Errno 0
|
||||
Last_IO_Error
|
||||
Last_SQL_Errno 0
|
||||
Last_SQL_Error
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
start slave;
|
||||
stop slave;
|
||||
start slave until master_log_file='master-bin.000001', master_log_pos=740;
|
||||
show slave status;
|
||||
Slave_IO_State #
|
||||
Master_Host 127.0.0.1
|
||||
Master_User root
|
||||
Master_Port MASTER_MYPORT
|
||||
Connect_Retry 1
|
||||
Master_Log_File master-bin.000001
|
||||
Read_Master_Log_Pos #
|
||||
Relay_Log_File slave-relay-bin.000004
|
||||
Relay_Log_Pos #
|
||||
Relay_Master_Log_File master-bin.000001
|
||||
Slave_IO_Running Yes
|
||||
Slave_SQL_Running No
|
||||
Replicate_Do_DB
|
||||
Replicate_Ignore_DB
|
||||
Replicate_Do_Table
|
||||
Replicate_Ignore_Table
|
||||
Replicate_Wild_Do_Table
|
||||
Replicate_Wild_Ignore_Table
|
||||
Last_Errno 0
|
||||
Last_Error
|
||||
Skip_Counter 0
|
||||
Exec_Master_Log_Pos #
|
||||
Relay_Log_Space #
|
||||
Until_Condition Master
|
||||
Until_Log_File master-bin.000001
|
||||
Until_Log_Pos 740
|
||||
Master_SSL_Allowed No
|
||||
Master_SSL_CA_File
|
||||
Master_SSL_CA_Path
|
||||
Master_SSL_Cert
|
||||
Master_SSL_Cipher
|
||||
Master_SSL_Key
|
||||
Seconds_Behind_Master #
|
||||
Master_SSL_Verify_Server_Cert No
|
||||
Last_IO_Errno 0
|
||||
Last_IO_Error
|
||||
Last_SQL_Errno 0
|
||||
Last_SQL_Error
|
||||
Replicate_Ignore_Server_Ids
|
||||
Master_Server_Id 1
|
||||
start slave until master_log_file='master-bin', master_log_pos=561;
|
||||
include/check_slave_param.inc [Exec_Master_Log_Pos]
|
||||
START SLAVE UNTIL MASTER_LOG_FILE='master-no-such-bin.000001', MASTER_LOG_POS=MASTER_LOG_POS;
|
||||
include/wait_for_slave_sql_to_stop.inc
|
||||
SELECT * FROM t1;
|
||||
n
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
include/check_slave_param.inc [Exec_Master_Log_Pos]
|
||||
START SLAVE UNTIL RELAY_LOG_FILE='slave-relay-bin.000002', RELAY_LOG_POS=relay_pos_insert1_t2
|
||||
include/wait_for_slave_sql_to_stop.inc
|
||||
SELECT * FROM t2;
|
||||
n
|
||||
1
|
||||
2
|
||||
include/check_slave_param.inc [Exec_Master_Log_Pos]
|
||||
START SLAVE;
|
||||
include/wait_for_slave_to_start.inc
|
||||
include/stop_slave.inc
|
||||
START SLAVE SQL_THREAD UNTIL MASTER_LOG_FILE='master-bin.000001', MASTER_LOG_POS=master_pos_create_t2
|
||||
include/wait_for_slave_param.inc [Until_Log_Pos]
|
||||
include/wait_for_slave_sql_to_stop.inc
|
||||
include/check_slave_param.inc [Exec_Master_Log_Pos]
|
||||
START SLAVE UNTIL MASTER_LOG_FILE='master-bin', MASTER_LOG_POS=MASTER_LOG_POS;
|
||||
ERROR HY000: Incorrect parameter or combination of parameters for START SLAVE UNTIL
|
||||
start slave until master_log_file='master-bin.000001', master_log_pos=561, relay_log_pos=12;
|
||||
START SLAVE UNTIL MASTER_LOG_FILE='master-bin.000001', MASTER_LOG_POS=MASTER_LOG_POS, RELAY_LOG_POS=RELAY_LOG_POS;
|
||||
ERROR HY000: Incorrect parameter or combination of parameters for START SLAVE UNTIL
|
||||
start slave until master_log_file='master-bin.000001';
|
||||
START SLAVE UNTIL MASTER_LOG_FILE='master-bin.000001';
|
||||
ERROR HY000: Incorrect parameter or combination of parameters for START SLAVE UNTIL
|
||||
start slave until relay_log_file='slave-relay-bin.000002';
|
||||
START SLAVE UNTIL RELAY_LOG_FILE='slave-relay-bin.000009';
|
||||
ERROR HY000: Incorrect parameter or combination of parameters for START SLAVE UNTIL
|
||||
start slave until relay_log_file='slave-relay-bin.000002', master_log_pos=561;
|
||||
START SLAVE UNTIL RELAY_LOG_FILE='slave-relay-bin.000002', MASTER_LOG_POS=MASTER_LOG_POS;
|
||||
ERROR HY000: Incorrect parameter or combination of parameters for START SLAVE UNTIL
|
||||
start slave sql_thread;
|
||||
start slave until master_log_file='master-bin.000001', master_log_pos=740;
|
||||
START SLAVE;
|
||||
START SLAVE UNTIL MASTER_LOG_FILE='master-bin.000001', MASTER_LOG_POS=MASTER_LOG_POS;
|
||||
Warnings:
|
||||
Level Note
|
||||
Code 1254
|
||||
Message Slave is already running
|
||||
Note 1254 Slave is already running
|
||||
include/stop_slave.inc
|
||||
RESET SLAVE;
|
||||
include/rpl_end.inc
|
||||
|
|
|
@ -2,90 +2,126 @@
|
|||
-- source include/have_binlog_format_row.inc
|
||||
-- source include/master-slave.inc
|
||||
|
||||
# Test is dependent on binlog positions
|
||||
# Note: The test is dependent on binlog positions
|
||||
|
||||
# prepare version for substitutions
|
||||
let $VERSION=`select version()`;
|
||||
|
||||
# stop slave before he will start replication also sync with master
|
||||
# for avoiding undetermenistic behaviour
|
||||
# Create some events on master
|
||||
connection master;
|
||||
CREATE TABLE t1(n INT NOT NULL AUTO_INCREMENT PRIMARY KEY);
|
||||
INSERT INTO t1 VALUES (1),(2),(3),(4);
|
||||
DROP TABLE t1;
|
||||
# Save master log position for query DROP TABLE t1
|
||||
save_master_pos;
|
||||
connection slave;
|
||||
sync_with_master;
|
||||
stop slave;
|
||||
let $master_pos_drop_t1= query_get_value(SHOW BINLOG EVENTS, Pos, 7);
|
||||
let $master_log_file= query_get_value(SHOW BINLOG EVENTS, Log_name, 7);
|
||||
|
||||
CREATE TABLE t2(n INT NOT NULL AUTO_INCREMENT PRIMARY KEY);
|
||||
# Save master log position for query CREATE TABLE t2
|
||||
save_master_pos;
|
||||
let $master_pos_create_t2= query_get_value(SHOW BINLOG EVENTS, Pos, 8);
|
||||
|
||||
INSERT INTO t2 VALUES (1),(2);
|
||||
save_master_pos;
|
||||
# Save master log position for query INSERT INTO t2 VALUES (1),(2);
|
||||
let $master_pos_insert1_t2= query_get_value(SHOW BINLOG EVENTS, End_log_pos, 12);
|
||||
sync_slave_with_master;
|
||||
|
||||
# Save relay log position for query INSERT INTO t2 VALUES (1),(2);
|
||||
let $relay_pos_insert1_t2= query_get_value(show slave status, Relay_Log_Pos, 1);
|
||||
|
||||
connection master;
|
||||
# create some events on master
|
||||
create table t1(n int not null auto_increment primary key);
|
||||
insert into t1 values (1),(2),(3),(4);
|
||||
drop table t1;
|
||||
create table t2(n int not null auto_increment primary key);
|
||||
insert into t2 values (1),(2);
|
||||
insert into t2 values (3),(4);
|
||||
drop table t2;
|
||||
INSERT INTO t2 VALUES (3),(4);
|
||||
DROP TABLE t2;
|
||||
# Save master log position for query INSERT INTO t2 VALUES (1),(2);
|
||||
let $master_pos_drop_t2= query_get_value(SHOW BINLOG EVENTS, End_log_pos, 17);
|
||||
sync_slave_with_master;
|
||||
|
||||
# try to replicate all queries until drop of t1
|
||||
--source include/stop_slave.inc
|
||||
# Reset slave.
|
||||
RESET SLAVE;
|
||||
--disable_query_log
|
||||
eval CHANGE MASTER TO MASTER_USER='root', MASTER_CONNECT_RETRY=1, MASTER_HOST='127.0.0.1', MASTER_PORT=$MASTER_MYPORT;
|
||||
--enable_query_log
|
||||
|
||||
# Try to replicate all queries until drop of t1
|
||||
connection slave;
|
||||
start slave until master_log_file='master-bin.000001', master_log_pos=311;
|
||||
sleep 2;
|
||||
wait_for_slave_to_stop;
|
||||
# here table should be still not deleted
|
||||
select * from t1;
|
||||
--vertical_results
|
||||
--replace_result $MASTER_MYPORT MASTER_MYPORT
|
||||
--replace_column 1 # 7 # 9 # 11 # 22 # 23 # 33 #
|
||||
show slave status;
|
||||
echo START SLAVE UNTIL MASTER_LOG_FILE='$master_log_file', MASTER_LOG_POS=master_pos_drop_t1;
|
||||
--disable_query_log
|
||||
eval START SLAVE UNTIL MASTER_LOG_FILE='$master_log_file', MASTER_LOG_POS=$master_pos_drop_t1;
|
||||
--enable_query_log
|
||||
--source include/wait_for_slave_sql_to_stop.inc
|
||||
|
||||
# this should fail right after start
|
||||
start slave until master_log_file='master-no-such-bin.000001', master_log_pos=291;
|
||||
# Here table should be still not deleted
|
||||
SELECT * FROM t1;
|
||||
--let $slave_param= Exec_Master_Log_Pos
|
||||
--let $slave_param_value= $master_pos_drop_t1
|
||||
--source include/check_slave_param.inc
|
||||
|
||||
# This should fail right after start
|
||||
--replace_result 291 MASTER_LOG_POS
|
||||
START SLAVE UNTIL MASTER_LOG_FILE='master-no-such-bin.000001', MASTER_LOG_POS=291;
|
||||
--source include/wait_for_slave_sql_to_stop.inc
|
||||
# again this table should be still not deleted
|
||||
select * from t1;
|
||||
sleep 2;
|
||||
wait_for_slave_to_stop;
|
||||
--vertical_results
|
||||
--replace_result $MASTER_MYPORT MASTER_MYPORT
|
||||
--replace_column 1 # 7 # 9 # 11 # 22 # 23 # 33 #
|
||||
show slave status;
|
||||
SELECT * FROM t1;
|
||||
|
||||
# try replicate all up to and not including the second insert to t2;
|
||||
start slave until relay_log_file='slave-relay-bin.000004', relay_log_pos=728;
|
||||
sleep 2;
|
||||
wait_for_slave_to_stop;
|
||||
select * from t2;
|
||||
--vertical_results
|
||||
--replace_result $MASTER_MYPORT MASTER_MYPORT
|
||||
--replace_column 1 # 7 # 9 # 11 # 22 # 23 # 33 #
|
||||
show slave status;
|
||||
--let $slave_param= Exec_Master_Log_Pos
|
||||
--let $slave_param_value= $master_pos_drop_t1
|
||||
--source include/check_slave_param.inc
|
||||
|
||||
# Try replicate all up to and not including the second insert to t2;
|
||||
echo START SLAVE UNTIL RELAY_LOG_FILE='slave-relay-bin.000002', RELAY_LOG_POS=relay_pos_insert1_t2;
|
||||
--disable_query_log
|
||||
eval START SLAVE UNTIL RELAY_LOG_FILE='slave-relay-bin.000002', RELAY_LOG_POS=$relay_pos_insert1_t2;
|
||||
--enable_query_log
|
||||
--source include/wait_for_slave_sql_to_stop.inc
|
||||
SELECT * FROM t2;
|
||||
|
||||
--let $slave_param= Exec_Master_Log_Pos
|
||||
--let $slave_param_value= $master_pos_insert1_t2
|
||||
--source include/check_slave_param.inc
|
||||
|
||||
# clean up
|
||||
start slave;
|
||||
START SLAVE;
|
||||
--source include/wait_for_slave_to_start.inc
|
||||
connection master;
|
||||
save_master_pos;
|
||||
connection slave;
|
||||
sync_with_master;
|
||||
stop slave;
|
||||
sync_slave_with_master;
|
||||
--source include/stop_slave.inc
|
||||
|
||||
# this should stop immediately as we are already there
|
||||
start slave until master_log_file='master-bin.000001', master_log_pos=740;
|
||||
sleep 2;
|
||||
wait_for_slave_to_stop;
|
||||
# This should stop immediately as we are already there
|
||||
echo START SLAVE SQL_THREAD UNTIL MASTER_LOG_FILE='$master_log_file', MASTER_LOG_POS=master_pos_create_t2;
|
||||
--disable_query_log
|
||||
eval START SLAVE SQL_THREAD UNTIL MASTER_LOG_FILE='$master_log_file', MASTER_LOG_POS=$master_pos_create_t2;
|
||||
--enable_query_log
|
||||
let $slave_param= Until_Log_Pos;
|
||||
let $slave_param_value= $master_pos_create_t2;
|
||||
--source include/wait_for_slave_param.inc
|
||||
--source include/wait_for_slave_sql_to_stop.inc
|
||||
# here the sql slave thread should be stopped
|
||||
--vertical_results
|
||||
--replace_result $MASTER_MYPORT MASTER_MYPORT bin.000005 bin.000004 bin.000006 bin.000004 bin.000007 bin.000004
|
||||
--replace_column 1 # 7 # 9 # 22 # 23 # 33 #
|
||||
show slave status;
|
||||
--let $slave_param= Exec_Master_Log_Pos
|
||||
--let $slave_param_value= $master_pos_drop_t2
|
||||
--source include/check_slave_param.inc
|
||||
|
||||
#testing various error conditions
|
||||
--replace_result 561 MASTER_LOG_POS
|
||||
--error 1277
|
||||
start slave until master_log_file='master-bin', master_log_pos=561;
|
||||
START SLAVE UNTIL MASTER_LOG_FILE='master-bin', MASTER_LOG_POS=561;
|
||||
--replace_result 561 MASTER_LOG_POS 12 RELAY_LOG_POS
|
||||
--error 1277
|
||||
start slave until master_log_file='master-bin.000001', master_log_pos=561, relay_log_pos=12;
|
||||
START SLAVE UNTIL MASTER_LOG_FILE='master-bin.000001', MASTER_LOG_POS=561, RELAY_LOG_POS=12;
|
||||
--error 1277
|
||||
start slave until master_log_file='master-bin.000001';
|
||||
START SLAVE UNTIL MASTER_LOG_FILE='master-bin.000001';
|
||||
--error 1277
|
||||
start slave until relay_log_file='slave-relay-bin.000002';
|
||||
START SLAVE UNTIL RELAY_LOG_FILE='slave-relay-bin.000009';
|
||||
--replace_result 561 MASTER_LOG_POS
|
||||
--error 1277
|
||||
start slave until relay_log_file='slave-relay-bin.000002', master_log_pos=561;
|
||||
START SLAVE UNTIL RELAY_LOG_FILE='slave-relay-bin.000002', MASTER_LOG_POS=561;
|
||||
# Warning should be given for second command
|
||||
start slave sql_thread;
|
||||
start slave until master_log_file='master-bin.000001', master_log_pos=740;
|
||||
START SLAVE;
|
||||
--replace_result 740 MASTER_LOG_POS
|
||||
START SLAVE UNTIL MASTER_LOG_FILE='master-bin.000001', MASTER_LOG_POS=740;
|
||||
|
||||
--source include/stop_slave.inc
|
||||
# Clear slave IO error.
|
||||
RESET SLAVE;
|
||||
|
||||
--let $rpl_only_running_threads= 1
|
||||
--source include/rpl_end.inc
|
||||
|
|
|
@ -10,4 +10,3 @@
|
|||
#
|
||||
##############################################################################
|
||||
|
||||
innodb_bug12400341: variable innodb_trx_rseg_n_slots_debug is removed in MariaDB
|
||||
|
|
|
@ -956,7 +956,7 @@ Table Op Msg_type Msg_text
|
|||
test.t1 check status OK
|
||||
explain select * from t1 where b like 'adfd%';
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 SIMPLE t1 ALL b NULL NULL NULL 15 Using where
|
||||
1 SIMPLE t1 range b b 769 NULL 11 Using where
|
||||
drop table t1;
|
||||
set global innodb_file_per_table=on;
|
||||
set global innodb_file_format='Barracuda';
|
||||
|
|
17
mysql-test/suite/innodb/r/innodb_bug14147491.result
Normal file
17
mysql-test/suite/innodb/r/innodb_bug14147491.result
Normal file
|
@ -0,0 +1,17 @@
|
|||
CALL mtr.add_suppression("InnoDB: Error: Unable to read tablespace .* page no .* into the buffer pool after 100 attempts");
|
||||
CALL mtr.add_suppression("InnoDB: Warning: database page corruption or a failed");
|
||||
# Create and populate the table to be corrupted
|
||||
CREATE TABLE t1 (a INT AUTO_INCREMENT PRIMARY KEY, b TEXT) ENGINE=InnoDB;
|
||||
INSERT INTO t1 (b) VALUES ('corrupt me');
|
||||
INSERT INTO t1 (b) VALUES ('corrupt me');
|
||||
# Restart server to flush buffers
|
||||
# Corrupt the table
|
||||
Munged a string.
|
||||
Munged a string.
|
||||
# Write file to make mysql-test-run.pl expect crash and restart
|
||||
SELECT * FROM t1;
|
||||
ERROR HY000: Lost connection to MySQL server during query
|
||||
# Turn on reconnect
|
||||
# Wait for server to fully start
|
||||
# Cleanup
|
||||
DROP TABLE t1;
|
53
mysql-test/suite/innodb/r/innodb_bug14676111.result
Normal file
53
mysql-test/suite/innodb/r/innodb_bug14676111.result
Normal file
|
@ -0,0 +1,53 @@
|
|||
drop table if exists t1;
|
||||
CREATE TABLE t1 (a int not null primary key) engine=InnoDB;
|
||||
set global innodb_limit_optimistic_insert_debug = 2;
|
||||
insert into t1 values (1);
|
||||
insert into t1 values (5);
|
||||
insert into t1 values (4);
|
||||
insert into t1 values (3);
|
||||
insert into t1 values (2);
|
||||
analyze table t1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 analyze status OK
|
||||
select DATA_LENGTH / 16384 from information_schema.TABLES where TABLE_SCHEMA = 'test' and TABLE_NAME = 't1';
|
||||
DATA_LENGTH / 16384
|
||||
10.0000
|
||||
delete from t1 where a=4;
|
||||
analyze table t1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 analyze status OK
|
||||
select DATA_LENGTH / 16384 from information_schema.TABLES where TABLE_SCHEMA = 'test' and TABLE_NAME = 't1';
|
||||
DATA_LENGTH / 16384
|
||||
8.0000
|
||||
delete from t1 where a=5;
|
||||
analyze table t1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 analyze status OK
|
||||
select DATA_LENGTH / 16384 from information_schema.TABLES where TABLE_SCHEMA = 'test' and TABLE_NAME = 't1';
|
||||
DATA_LENGTH / 16384
|
||||
5.0000
|
||||
set global innodb_limit_optimistic_insert_debug = 10000;
|
||||
delete from t1 where a=2;
|
||||
analyze table t1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 analyze status OK
|
||||
select DATA_LENGTH / 16384 from information_schema.TABLES where TABLE_SCHEMA = 'test' and TABLE_NAME = 't1';
|
||||
DATA_LENGTH / 16384
|
||||
3.0000
|
||||
insert into t1 values (2);
|
||||
delete from t1 where a=2;
|
||||
analyze table t1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 analyze status OK
|
||||
select DATA_LENGTH / 16384 from information_schema.TABLES where TABLE_SCHEMA = 'test' and TABLE_NAME = 't1';
|
||||
DATA_LENGTH / 16384
|
||||
2.0000
|
||||
insert into t1 values (2);
|
||||
delete from t1 where a=2;
|
||||
analyze table t1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 analyze status OK
|
||||
select DATA_LENGTH / 16384 from information_schema.TABLES where TABLE_SCHEMA = 'test' and TABLE_NAME = 't1';
|
||||
DATA_LENGTH / 16384
|
||||
1.0000
|
||||
drop table t1;
|
|
@ -3,11 +3,11 @@ insert into bug47777 values (geomfromtext('linestring(1 2,3 4,5 6,7 8,9 10)'));
|
|||
select count(*) from bug47777 where c2 =geomfromtext('linestring(1 2,3 4,5 6,7 8,9 10)');
|
||||
count(*)
|
||||
1
|
||||
update bug47777 set c2=GeomFromText('POINT(1 1)');
|
||||
update bug47777 set c2=GeomFromText('linestring(1 1)');
|
||||
select count(*) from bug47777 where c2 =geomfromtext('linestring(1 2,3 4,5 6,7 8,9 10)');
|
||||
count(*)
|
||||
0
|
||||
select count(*) from bug47777 where c2 = GeomFromText('POINT(1 1)');
|
||||
select count(*) from bug47777 where c2 = GeomFromText('linestring(1 1)');
|
||||
count(*)
|
||||
1
|
||||
drop table bug47777;
|
||||
|
|
|
@ -343,7 +343,7 @@ id select_type table type possible_keys key key_len ref rows Extra
|
|||
1 SIMPLE t1 index NULL PRIMARY 5 NULL 4 Using index; Using temporary
|
||||
explain select distinct f1, f2 from t1;
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 SIMPLE t1 range NULL PRIMARY 5 NULL 3 Using index for group-by; Using temporary
|
||||
1 SIMPLE t1 index NULL PRIMARY 5 NULL 4 Using index
|
||||
drop table t1;
|
||||
CREATE TABLE t1 (id int(11) NOT NULL PRIMARY KEY, name varchar(20),
|
||||
INDEX (name));
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
-- source include/have_innodb.inc
|
||||
if (`select plugin_auth_version <= "1.1.8-29.3" from information_schema.plugins where plugin_name='innodb'`)
|
||||
{
|
||||
--skip Not fixed in XtraDB 1.1.8-29.3 or earlier
|
||||
}
|
||||
|
||||
let $MYSQLD_DATADIR= `select @@datadir`;
|
||||
|
||||
|
|
1
mysql-test/suite/innodb/t/innodb_bug14147491-master.opt
Normal file
1
mysql-test/suite/innodb/t/innodb_bug14147491-master.opt
Normal file
|
@ -0,0 +1 @@
|
|||
--innodb_file_per_table=1 --skip-stack-trace --skip-core-file
|
75
mysql-test/suite/innodb/t/innodb_bug14147491.test
Normal file
75
mysql-test/suite/innodb/t/innodb_bug14147491.test
Normal file
|
@ -0,0 +1,75 @@
|
|||
#
|
||||
# Test opening a corrupted table.
|
||||
#
|
||||
|
||||
# Don't test under valgrind, memory leaks will occur
|
||||
source include/not_valgrind.inc;
|
||||
# Avoid CrashReporter popup on Mac
|
||||
source include/not_crashrep.inc;
|
||||
# Don't test under embedded
|
||||
source include/not_embedded.inc;
|
||||
# Require InnoDB
|
||||
source include/have_innodb.inc;
|
||||
|
||||
CALL mtr.add_suppression("InnoDB: Error: Unable to read tablespace .* page no .* into the buffer pool after 100 attempts");
|
||||
CALL mtr.add_suppression("InnoDB: Warning: database page corruption or a failed");
|
||||
|
||||
--echo # Create and populate the table to be corrupted
|
||||
CREATE TABLE t1 (a INT AUTO_INCREMENT PRIMARY KEY, b TEXT) ENGINE=InnoDB;
|
||||
INSERT INTO t1 (b) VALUES ('corrupt me');
|
||||
--disable_query_log
|
||||
--let $i = 10
|
||||
while ($i)
|
||||
{
|
||||
INSERT INTO t1 (b) VALUES (REPEAT('abcdefghijklmnopqrstuvwxyz', 100));
|
||||
dec $i;
|
||||
}
|
||||
--enable_query_log
|
||||
INSERT INTO t1 (b) VALUES ('corrupt me');
|
||||
|
||||
--echo # Restart server to flush buffers
|
||||
source include/restart_mysqld.inc;
|
||||
|
||||
--echo # Corrupt the table
|
||||
let $MYSQLD_DATADIR=`select @@datadir`;
|
||||
let t1_IBD = $MYSQLD_DATADIR/test/t1.ibd;
|
||||
|
||||
perl;
|
||||
use strict;
|
||||
use warnings;
|
||||
use Fcntl qw(:DEFAULT :seek);
|
||||
|
||||
my $ibd_file = $ENV{'t1_IBD'};
|
||||
|
||||
my $chunk;
|
||||
my $len;
|
||||
|
||||
sysopen IBD_FILE, $ibd_file, O_RDWR || die "Unable to open $ibd_file";
|
||||
|
||||
while ($len = sysread IBD_FILE, $chunk, 1024)
|
||||
{
|
||||
if ($chunk =~ s/corrupt me/korrupt me/)
|
||||
{
|
||||
print "Munged a string.\n";
|
||||
sysseek IBD_FILE, -$len, SEEK_CUR;
|
||||
syswrite IBD_FILE, $chunk, $len;
|
||||
}
|
||||
}
|
||||
|
||||
close IBD_FILE;
|
||||
EOF
|
||||
|
||||
--echo # Write file to make mysql-test-run.pl expect crash and restart
|
||||
--exec echo "restart" > $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
|
||||
|
||||
--error 2013
|
||||
SELECT * FROM t1;
|
||||
|
||||
--echo # Turn on reconnect
|
||||
--enable_reconnect
|
||||
|
||||
--echo # Wait for server to fully start
|
||||
--source include/wait_until_connected_again.inc
|
||||
|
||||
--echo # Cleanup
|
||||
DROP TABLE t1;
|
128
mysql-test/suite/innodb/t/innodb_bug14676111.test
Normal file
128
mysql-test/suite/innodb/t/innodb_bug14676111.test
Normal file
|
@ -0,0 +1,128 @@
|
|||
# Test for bug #14676111: WRONG PAGE_LEVEL WRITTEN FOR UPPER THAN FATHER PAGE AT BTR_LIFT_PAGE_UP()
|
||||
|
||||
-- source include/have_innodb.inc
|
||||
-- source include/have_debug.inc
|
||||
|
||||
if (`select count(*)=0 from information_schema.global_variables where variable_name = 'INNODB_LIMIT_OPTIMISTIC_INSERT_DEBUG'`)
|
||||
{
|
||||
--skip Test requires InnoDB built with UNIV_DEBUG definition.
|
||||
}
|
||||
|
||||
--disable_query_log
|
||||
set @old_innodb_limit_optimistic_insert_debug = @@innodb_limit_optimistic_insert_debug;
|
||||
--enable_query_log
|
||||
--disable_warnings
|
||||
drop table if exists t1;
|
||||
--enable_warnings
|
||||
|
||||
CREATE TABLE t1 (a int not null primary key) engine=InnoDB;
|
||||
|
||||
let $wait_condition=
|
||||
SELECT VARIABLE_VALUE < 1 FROM INFORMATION_SCHEMA.GLOBAL_STATUS
|
||||
WHERE VARIABLE_NAME = 'INNODB_PURGE_TRX_ID_AGE';
|
||||
|
||||
#
|
||||
# make 4 leveled straight tree
|
||||
#
|
||||
set global innodb_limit_optimistic_insert_debug = 2;
|
||||
insert into t1 values (1);
|
||||
insert into t1 values (5);
|
||||
#current tree form
|
||||
# (1, 5)
|
||||
|
||||
insert into t1 values (4);
|
||||
#records in a page is limited to 2 artificially. root rise occurs
|
||||
#current tree form
|
||||
# (1, 5)
|
||||
#(1, 4) (5)
|
||||
|
||||
insert into t1 values (3);
|
||||
#current tree form
|
||||
# (1, 5)
|
||||
# (1, 4) (5)
|
||||
#(1, 3) (4) (5)
|
||||
|
||||
insert into t1 values (2);
|
||||
#current tree form
|
||||
# (1, 5)
|
||||
# (1, 4) (5)
|
||||
# (1, 3) (4) (5)
|
||||
#(1, 2) (3) (4) (5)
|
||||
|
||||
analyze table t1;
|
||||
select DATA_LENGTH / 16384 from information_schema.TABLES where TABLE_SCHEMA = 'test' and TABLE_NAME = 't1';
|
||||
|
||||
delete from t1 where a=4;
|
||||
--source include/wait_condition.inc
|
||||
#deleting 1 record of 2 records don't cause merge artificially.
|
||||
#current tree form
|
||||
# (1, 5)
|
||||
# (1) (5)
|
||||
# (1, 3) (5)
|
||||
#(1, 2) (3) (5)
|
||||
|
||||
analyze table t1;
|
||||
select DATA_LENGTH / 16384 from information_schema.TABLES where TABLE_SCHEMA = 'test' and TABLE_NAME = 't1';
|
||||
|
||||
delete from t1 where a=5;
|
||||
--source include/wait_condition.inc
|
||||
#deleting 1 record of 2 records don't cause merge artificially.
|
||||
#current tree form
|
||||
# (1)
|
||||
# (1)
|
||||
# (1, 3) <- lift up this level next, when deleting node ptr
|
||||
#(1, 2) (3) <- merged next
|
||||
|
||||
analyze table t1;
|
||||
select DATA_LENGTH / 16384 from information_schema.TABLES where TABLE_SCHEMA = 'test' and TABLE_NAME = 't1';
|
||||
|
||||
#
|
||||
# cause merge at level 0
|
||||
#
|
||||
|
||||
#disable the artificial limitation of records in a page
|
||||
set global innodb_limit_optimistic_insert_debug = 10000;
|
||||
delete from t1 where a=2;
|
||||
--source include/wait_condition.inc
|
||||
#merge page occurs. and lift up occurs.
|
||||
#current tree form
|
||||
# (1)
|
||||
# (1)
|
||||
# (1, 3)
|
||||
|
||||
analyze table t1;
|
||||
select DATA_LENGTH / 16384 from information_schema.TABLES where TABLE_SCHEMA = 'test' and TABLE_NAME = 't1';
|
||||
|
||||
insert into t1 values (2);
|
||||
#current tree form
|
||||
# (1)
|
||||
# (1) <- lift up this level next, because it is not root
|
||||
# (1, 2, 3)
|
||||
|
||||
delete from t1 where a=2;
|
||||
--source include/wait_condition.inc
|
||||
#current tree form
|
||||
# (1)
|
||||
# (1, 3)
|
||||
|
||||
analyze table t1;
|
||||
select DATA_LENGTH / 16384 from information_schema.TABLES where TABLE_SCHEMA = 'test' and TABLE_NAME = 't1';
|
||||
|
||||
insert into t1 values (2);
|
||||
#current tree form
|
||||
# (1)
|
||||
# (1, 2, 3) <- lift up this level next, because the father is root
|
||||
|
||||
delete from t1 where a=2;
|
||||
--source include/wait_condition.inc
|
||||
#current tree form
|
||||
# (1, 3)
|
||||
|
||||
analyze table t1;
|
||||
select DATA_LENGTH / 16384 from information_schema.TABLES where TABLE_SCHEMA = 'test' and TABLE_NAME = 't1';
|
||||
|
||||
drop table t1;
|
||||
|
||||
--disable_query_log
|
||||
set global innodb_limit_optimistic_insert_debug = @old_innodb_limit_optimistic_insert_debug;
|
||||
--enable_query_log
|
|
@ -14,11 +14,11 @@ insert into bug47777 values (geomfromtext('linestring(1 2,3 4,5 6,7 8,9 10)'));
|
|||
select count(*) from bug47777 where c2 =geomfromtext('linestring(1 2,3 4,5 6,7 8,9 10)');
|
||||
|
||||
# Update table bug47777 should be successful.
|
||||
update bug47777 set c2=GeomFromText('POINT(1 1)');
|
||||
update bug47777 set c2=GeomFromText('linestring(1 1)');
|
||||
|
||||
# Verify the row get updated successfully. The original
|
||||
# c2 value should be changed to GeomFromText('POINT(1 1)').
|
||||
# c2 value should be changed to GeomFromText('linestring(1 1)').
|
||||
select count(*) from bug47777 where c2 =geomfromtext('linestring(1 2,3 4,5 6,7 8,9 10)');
|
||||
select count(*) from bug47777 where c2 = GeomFromText('POINT(1 1)');
|
||||
select count(*) from bug47777 where c2 = GeomFromText('linestring(1 1)');
|
||||
|
||||
drop table bug47777;
|
||||
|
|
|
@ -9,6 +9,10 @@
|
|||
-- source include/not_staging.inc
|
||||
-- source include/have_innodb.inc
|
||||
-- source include/have_query_cache.inc
|
||||
if (`select plugin_auth_version <= "1.1.8-29.3" from information_schema.plugins where plugin_name='innodb'`)
|
||||
{
|
||||
--skip Not fixed in XtraDB 1.1.8-29.3 or earlier
|
||||
}
|
||||
|
||||
let $engine_type= InnoDB;
|
||||
let $other_engine_type= MEMORY;
|
||||
|
|
|
@ -766,35 +766,35 @@ SPATIAL KEY (line)
|
|||
) row_format=dynamic;
|
||||
ALTER TABLE t1 DISABLE KEYS;
|
||||
INSERT INTO t1 (name, kind, line) VALUES
|
||||
("Aadaouane", "pp", GeomFromText("POINT(32.816667 35.983333)")),
|
||||
("Aadassiye", "pp", GeomFromText("POINT(35.816667 36.216667)")),
|
||||
("Aadbel", "pp", GeomFromText("POINT(34.533333 36.100000)")),
|
||||
("Aadchit", "pp", GeomFromText("POINT(33.347222 35.423611)")),
|
||||
("Aadchite", "pp", GeomFromText("POINT(33.347222 35.423611)")),
|
||||
("Aadchit el Qoussair", "pp", GeomFromText("POINT(33.283333 35.483333)")),
|
||||
("Aaddaye", "pp", GeomFromText("POINT(36.716667 40.833333)")),
|
||||
("'Aadeissa", "pp", GeomFromText("POINT(32.823889 35.698889)")),
|
||||
("Aaderup", "pp", GeomFromText("POINT(55.216667 11.766667)")),
|
||||
("Qalaat Aades", "pp", GeomFromText("POINT(33.503333 35.377500)")),
|
||||
("A ad'ino", "pp", GeomFromText("POINT(54.812222 38.209167)")),
|
||||
("Aadi Noia", "pp", GeomFromText("POINT(13.800000 39.833333)")),
|
||||
("Aad La Macta", "pp", GeomFromText("POINT(35.779444 -0.129167)")),
|
||||
("Aadland", "pp", GeomFromText("POINT(60.366667 5.483333)")),
|
||||
("Aadliye", "pp", GeomFromText("POINT(33.366667 36.333333)")),
|
||||
("Aadloun", "pp", GeomFromText("POINT(33.403889 35.273889)")),
|
||||
("Aadma", "pp", GeomFromText("POINT(58.798333 22.663889)")),
|
||||
("Aadma Asundus", "pp", GeomFromText("POINT(58.798333 22.663889)")),
|
||||
("Aadmoun", "pp", GeomFromText("POINT(34.150000 35.650000)")),
|
||||
("Aadneram", "pp", GeomFromText("POINT(59.016667 6.933333)")),
|
||||
("Aadneskaar", "pp", GeomFromText("POINT(58.083333 6.983333)")),
|
||||
("Aadorf", "pp", GeomFromText("POINT(47.483333 8.900000)")),
|
||||
("Aadorp", "pp", GeomFromText("POINT(52.366667 6.633333)")),
|
||||
("Aadouane", "pp", GeomFromText("POINT(32.816667 35.983333)")),
|
||||
("Aadoui", "pp", GeomFromText("POINT(34.450000 35.983333)")),
|
||||
("Aadouiye", "pp", GeomFromText("POINT(34.583333 36.183333)")),
|
||||
("Aadouss", "pp", GeomFromText("POINT(33.512500 35.601389)")),
|
||||
("Aadra", "pp", GeomFromText("POINT(33.616667 36.500000)")),
|
||||
("Aadzi", "pp", GeomFromText("POINT(38.100000 64.850000)"));
|
||||
("Aadaouane", "pp", GeomFromText("LINESTRING(32.816667 35.983333)")),
|
||||
("Aadassiye", "pp", GeomFromText("LINESTRING(35.816667 36.216667)")),
|
||||
("Aadbel", "pp", GeomFromText("LINESTRING(34.533333 36.100000)")),
|
||||
("Aadchit", "pp", GeomFromText("LINESTRING(33.347222 35.423611)")),
|
||||
("Aadchite", "pp", GeomFromText("LINESTRING(33.347222 35.423611)")),
|
||||
("Aadchit el Qoussair", "pp", GeomFromText("LINESTRING(33.283333 35.483333)")),
|
||||
("Aaddaye", "pp", GeomFromText("LINESTRING(36.716667 40.833333)")),
|
||||
("'Aadeissa", "pp", GeomFromText("LINESTRING(32.823889 35.698889)")),
|
||||
("Aaderup", "pp", GeomFromText("LINESTRING(55.216667 11.766667)")),
|
||||
("Qalaat Aades", "pp", GeomFromText("LINESTRING(33.503333 35.377500)")),
|
||||
("A ad'ino", "pp", GeomFromText("LINESTRING(54.812222 38.209167)")),
|
||||
("Aadi Noia", "pp", GeomFromText("LINESTRING(13.800000 39.833333)")),
|
||||
("Aad La Macta", "pp", GeomFromText("LINESTRING(35.779444 -0.129167)")),
|
||||
("Aadland", "pp", GeomFromText("LINESTRING(60.366667 5.483333)")),
|
||||
("Aadliye", "pp", GeomFromText("LINESTRING(33.366667 36.333333)")),
|
||||
("Aadloun", "pp", GeomFromText("LINESTRING(33.403889 35.273889)")),
|
||||
("Aadma", "pp", GeomFromText("LINESTRING(58.798333 22.663889)")),
|
||||
("Aadma Asundus", "pp", GeomFromText("LINESTRING(58.798333 22.663889)")),
|
||||
("Aadmoun", "pp", GeomFromText("LINESTRING(34.150000 35.650000)")),
|
||||
("Aadneram", "pp", GeomFromText("LINESTRING(59.016667 6.933333)")),
|
||||
("Aadneskaar", "pp", GeomFromText("LINESTRING(58.083333 6.983333)")),
|
||||
("Aadorf", "pp", GeomFromText("LINESTRING(47.483333 8.900000)")),
|
||||
("Aadorp", "pp", GeomFromText("LINESTRING(52.366667 6.633333)")),
|
||||
("Aadouane", "pp", GeomFromText("LINESTRING(32.816667 35.983333)")),
|
||||
("Aadoui", "pp", GeomFromText("LINESTRING(34.450000 35.983333)")),
|
||||
("Aadouiye", "pp", GeomFromText("LINESTRING(34.583333 36.183333)")),
|
||||
("Aadouss", "pp", GeomFromText("LINESTRING(33.512500 35.601389)")),
|
||||
("Aadra", "pp", GeomFromText("LINESTRING(33.616667 36.500000)")),
|
||||
("Aadzi", "pp", GeomFromText("LINESTRING(38.100000 64.850000)"));
|
||||
ALTER TABLE t1 ENABLE KEYS;
|
||||
INSERT INTO t1 (name, kind, line) VALUES ("austria", "pp", GeomFromText('LINESTRING(14.9906 48.9887,14.9946 48.9904,14.9947 48.9916)'));
|
||||
drop table t1;
|
||||
|
|
|
@ -135,35 +135,35 @@ CREATE TABLE t1 (
|
|||
ALTER TABLE t1 DISABLE KEYS;
|
||||
|
||||
INSERT INTO t1 (name, kind, line) VALUES
|
||||
("Aadaouane", "pp", GeomFromText("POINT(32.816667 35.983333)")),
|
||||
("Aadassiye", "pp", GeomFromText("POINT(35.816667 36.216667)")),
|
||||
("Aadbel", "pp", GeomFromText("POINT(34.533333 36.100000)")),
|
||||
("Aadchit", "pp", GeomFromText("POINT(33.347222 35.423611)")),
|
||||
("Aadchite", "pp", GeomFromText("POINT(33.347222 35.423611)")),
|
||||
("Aadchit el Qoussair", "pp", GeomFromText("POINT(33.283333 35.483333)")),
|
||||
("Aaddaye", "pp", GeomFromText("POINT(36.716667 40.833333)")),
|
||||
("'Aadeissa", "pp", GeomFromText("POINT(32.823889 35.698889)")),
|
||||
("Aaderup", "pp", GeomFromText("POINT(55.216667 11.766667)")),
|
||||
("Qalaat Aades", "pp", GeomFromText("POINT(33.503333 35.377500)")),
|
||||
("A ad'ino", "pp", GeomFromText("POINT(54.812222 38.209167)")),
|
||||
("Aadi Noia", "pp", GeomFromText("POINT(13.800000 39.833333)")),
|
||||
("Aad La Macta", "pp", GeomFromText("POINT(35.779444 -0.129167)")),
|
||||
("Aadland", "pp", GeomFromText("POINT(60.366667 5.483333)")),
|
||||
("Aadliye", "pp", GeomFromText("POINT(33.366667 36.333333)")),
|
||||
("Aadloun", "pp", GeomFromText("POINT(33.403889 35.273889)")),
|
||||
("Aadma", "pp", GeomFromText("POINT(58.798333 22.663889)")),
|
||||
("Aadma Asundus", "pp", GeomFromText("POINT(58.798333 22.663889)")),
|
||||
("Aadmoun", "pp", GeomFromText("POINT(34.150000 35.650000)")),
|
||||
("Aadneram", "pp", GeomFromText("POINT(59.016667 6.933333)")),
|
||||
("Aadneskaar", "pp", GeomFromText("POINT(58.083333 6.983333)")),
|
||||
("Aadorf", "pp", GeomFromText("POINT(47.483333 8.900000)")),
|
||||
("Aadorp", "pp", GeomFromText("POINT(52.366667 6.633333)")),
|
||||
("Aadouane", "pp", GeomFromText("POINT(32.816667 35.983333)")),
|
||||
("Aadoui", "pp", GeomFromText("POINT(34.450000 35.983333)")),
|
||||
("Aadouiye", "pp", GeomFromText("POINT(34.583333 36.183333)")),
|
||||
("Aadouss", "pp", GeomFromText("POINT(33.512500 35.601389)")),
|
||||
("Aadra", "pp", GeomFromText("POINT(33.616667 36.500000)")),
|
||||
("Aadzi", "pp", GeomFromText("POINT(38.100000 64.850000)"));
|
||||
("Aadaouane", "pp", GeomFromText("LINESTRING(32.816667 35.983333)")),
|
||||
("Aadassiye", "pp", GeomFromText("LINESTRING(35.816667 36.216667)")),
|
||||
("Aadbel", "pp", GeomFromText("LINESTRING(34.533333 36.100000)")),
|
||||
("Aadchit", "pp", GeomFromText("LINESTRING(33.347222 35.423611)")),
|
||||
("Aadchite", "pp", GeomFromText("LINESTRING(33.347222 35.423611)")),
|
||||
("Aadchit el Qoussair", "pp", GeomFromText("LINESTRING(33.283333 35.483333)")),
|
||||
("Aaddaye", "pp", GeomFromText("LINESTRING(36.716667 40.833333)")),
|
||||
("'Aadeissa", "pp", GeomFromText("LINESTRING(32.823889 35.698889)")),
|
||||
("Aaderup", "pp", GeomFromText("LINESTRING(55.216667 11.766667)")),
|
||||
("Qalaat Aades", "pp", GeomFromText("LINESTRING(33.503333 35.377500)")),
|
||||
("A ad'ino", "pp", GeomFromText("LINESTRING(54.812222 38.209167)")),
|
||||
("Aadi Noia", "pp", GeomFromText("LINESTRING(13.800000 39.833333)")),
|
||||
("Aad La Macta", "pp", GeomFromText("LINESTRING(35.779444 -0.129167)")),
|
||||
("Aadland", "pp", GeomFromText("LINESTRING(60.366667 5.483333)")),
|
||||
("Aadliye", "pp", GeomFromText("LINESTRING(33.366667 36.333333)")),
|
||||
("Aadloun", "pp", GeomFromText("LINESTRING(33.403889 35.273889)")),
|
||||
("Aadma", "pp", GeomFromText("LINESTRING(58.798333 22.663889)")),
|
||||
("Aadma Asundus", "pp", GeomFromText("LINESTRING(58.798333 22.663889)")),
|
||||
("Aadmoun", "pp", GeomFromText("LINESTRING(34.150000 35.650000)")),
|
||||
("Aadneram", "pp", GeomFromText("LINESTRING(59.016667 6.933333)")),
|
||||
("Aadneskaar", "pp", GeomFromText("LINESTRING(58.083333 6.983333)")),
|
||||
("Aadorf", "pp", GeomFromText("LINESTRING(47.483333 8.900000)")),
|
||||
("Aadorp", "pp", GeomFromText("LINESTRING(52.366667 6.633333)")),
|
||||
("Aadouane", "pp", GeomFromText("LINESTRING(32.816667 35.983333)")),
|
||||
("Aadoui", "pp", GeomFromText("LINESTRING(34.450000 35.983333)")),
|
||||
("Aadouiye", "pp", GeomFromText("LINESTRING(34.583333 36.183333)")),
|
||||
("Aadouss", "pp", GeomFromText("LINESTRING(33.512500 35.601389)")),
|
||||
("Aadra", "pp", GeomFromText("LINESTRING(33.616667 36.500000)")),
|
||||
("Aadzi", "pp", GeomFromText("LINESTRING(38.100000 64.850000)"));
|
||||
|
||||
ALTER TABLE t1 ENABLE KEYS;
|
||||
INSERT INTO t1 (name, kind, line) VALUES ("austria", "pp", GeomFromText('LINESTRING(14.9906 48.9887,14.9946 48.9904,14.9947 48.9916)'));
|
||||
|
|
|
@ -766,35 +766,35 @@ SPATIAL KEY (line)
|
|||
) transactional=1 row_format=page;
|
||||
ALTER TABLE t1 DISABLE KEYS;
|
||||
INSERT INTO t1 (name, kind, line) VALUES
|
||||
("Aadaouane", "pp", GeomFromText("POINT(32.816667 35.983333)")),
|
||||
("Aadassiye", "pp", GeomFromText("POINT(35.816667 36.216667)")),
|
||||
("Aadbel", "pp", GeomFromText("POINT(34.533333 36.100000)")),
|
||||
("Aadchit", "pp", GeomFromText("POINT(33.347222 35.423611)")),
|
||||
("Aadchite", "pp", GeomFromText("POINT(33.347222 35.423611)")),
|
||||
("Aadchit el Qoussair", "pp", GeomFromText("POINT(33.283333 35.483333)")),
|
||||
("Aaddaye", "pp", GeomFromText("POINT(36.716667 40.833333)")),
|
||||
("'Aadeissa", "pp", GeomFromText("POINT(32.823889 35.698889)")),
|
||||
("Aaderup", "pp", GeomFromText("POINT(55.216667 11.766667)")),
|
||||
("Qalaat Aades", "pp", GeomFromText("POINT(33.503333 35.377500)")),
|
||||
("A ad'ino", "pp", GeomFromText("POINT(54.812222 38.209167)")),
|
||||
("Aadi Noia", "pp", GeomFromText("POINT(13.800000 39.833333)")),
|
||||
("Aad La Macta", "pp", GeomFromText("POINT(35.779444 -0.129167)")),
|
||||
("Aadland", "pp", GeomFromText("POINT(60.366667 5.483333)")),
|
||||
("Aadliye", "pp", GeomFromText("POINT(33.366667 36.333333)")),
|
||||
("Aadloun", "pp", GeomFromText("POINT(33.403889 35.273889)")),
|
||||
("Aadma", "pp", GeomFromText("POINT(58.798333 22.663889)")),
|
||||
("Aadma Asundus", "pp", GeomFromText("POINT(58.798333 22.663889)")),
|
||||
("Aadmoun", "pp", GeomFromText("POINT(34.150000 35.650000)")),
|
||||
("Aadneram", "pp", GeomFromText("POINT(59.016667 6.933333)")),
|
||||
("Aadneskaar", "pp", GeomFromText("POINT(58.083333 6.983333)")),
|
||||
("Aadorf", "pp", GeomFromText("POINT(47.483333 8.900000)")),
|
||||
("Aadorp", "pp", GeomFromText("POINT(52.366667 6.633333)")),
|
||||
("Aadouane", "pp", GeomFromText("POINT(32.816667 35.983333)")),
|
||||
("Aadoui", "pp", GeomFromText("POINT(34.450000 35.983333)")),
|
||||
("Aadouiye", "pp", GeomFromText("POINT(34.583333 36.183333)")),
|
||||
("Aadouss", "pp", GeomFromText("POINT(33.512500 35.601389)")),
|
||||
("Aadra", "pp", GeomFromText("POINT(33.616667 36.500000)")),
|
||||
("Aadzi", "pp", GeomFromText("POINT(38.100000 64.850000)"));
|
||||
("Aadaouane", "pp", GeomFromText("LINESTRING(32.816667 35.983333)")),
|
||||
("Aadassiye", "pp", GeomFromText("LINESTRING(35.816667 36.216667)")),
|
||||
("Aadbel", "pp", GeomFromText("LINESTRING(34.533333 36.100000)")),
|
||||
("Aadchit", "pp", GeomFromText("LINESTRING(33.347222 35.423611)")),
|
||||
("Aadchite", "pp", GeomFromText("LINESTRING(33.347222 35.423611)")),
|
||||
("Aadchit el Qoussair", "pp", GeomFromText("LINESTRING(33.283333 35.483333)")),
|
||||
("Aaddaye", "pp", GeomFromText("LINESTRING(36.716667 40.833333)")),
|
||||
("'Aadeissa", "pp", GeomFromText("LINESTRING(32.823889 35.698889)")),
|
||||
("Aaderup", "pp", GeomFromText("LINESTRING(55.216667 11.766667)")),
|
||||
("Qalaat Aades", "pp", GeomFromText("LINESTRING(33.503333 35.377500)")),
|
||||
("A ad'ino", "pp", GeomFromText("LINESTRING(54.812222 38.209167)")),
|
||||
("Aadi Noia", "pp", GeomFromText("LINESTRING(13.800000 39.833333)")),
|
||||
("Aad La Macta", "pp", GeomFromText("LINESTRING(35.779444 -0.129167)")),
|
||||
("Aadland", "pp", GeomFromText("LINESTRING(60.366667 5.483333)")),
|
||||
("Aadliye", "pp", GeomFromText("LINESTRING(33.366667 36.333333)")),
|
||||
("Aadloun", "pp", GeomFromText("LINESTRING(33.403889 35.273889)")),
|
||||
("Aadma", "pp", GeomFromText("LINESTRING(58.798333 22.663889)")),
|
||||
("Aadma Asundus", "pp", GeomFromText("LINESTRING(58.798333 22.663889)")),
|
||||
("Aadmoun", "pp", GeomFromText("LINESTRING(34.150000 35.650000)")),
|
||||
("Aadneram", "pp", GeomFromText("LINESTRING(59.016667 6.933333)")),
|
||||
("Aadneskaar", "pp", GeomFromText("LINESTRING(58.083333 6.983333)")),
|
||||
("Aadorf", "pp", GeomFromText("LINESTRING(47.483333 8.900000)")),
|
||||
("Aadorp", "pp", GeomFromText("LINESTRING(52.366667 6.633333)")),
|
||||
("Aadouane", "pp", GeomFromText("LINESTRING(32.816667 35.983333)")),
|
||||
("Aadoui", "pp", GeomFromText("LINESTRING(34.450000 35.983333)")),
|
||||
("Aadouiye", "pp", GeomFromText("LINESTRING(34.583333 36.183333)")),
|
||||
("Aadouss", "pp", GeomFromText("LINESTRING(33.512500 35.601389)")),
|
||||
("Aadra", "pp", GeomFromText("LINESTRING(33.616667 36.500000)")),
|
||||
("Aadzi", "pp", GeomFromText("LINESTRING(38.100000 64.850000)"));
|
||||
ALTER TABLE t1 ENABLE KEYS;
|
||||
INSERT INTO t1 (name, kind, line) VALUES ("austria", "pp", GeomFromText('LINESTRING(14.9906 48.9887,14.9946 48.9904,14.9947 48.9916)'));
|
||||
drop table t1;
|
||||
|
|
|
@ -138,35 +138,35 @@ CREATE TABLE t1 (
|
|||
ALTER TABLE t1 DISABLE KEYS;
|
||||
|
||||
INSERT INTO t1 (name, kind, line) VALUES
|
||||
("Aadaouane", "pp", GeomFromText("POINT(32.816667 35.983333)")),
|
||||
("Aadassiye", "pp", GeomFromText("POINT(35.816667 36.216667)")),
|
||||
("Aadbel", "pp", GeomFromText("POINT(34.533333 36.100000)")),
|
||||
("Aadchit", "pp", GeomFromText("POINT(33.347222 35.423611)")),
|
||||
("Aadchite", "pp", GeomFromText("POINT(33.347222 35.423611)")),
|
||||
("Aadchit el Qoussair", "pp", GeomFromText("POINT(33.283333 35.483333)")),
|
||||
("Aaddaye", "pp", GeomFromText("POINT(36.716667 40.833333)")),
|
||||
("'Aadeissa", "pp", GeomFromText("POINT(32.823889 35.698889)")),
|
||||
("Aaderup", "pp", GeomFromText("POINT(55.216667 11.766667)")),
|
||||
("Qalaat Aades", "pp", GeomFromText("POINT(33.503333 35.377500)")),
|
||||
("A ad'ino", "pp", GeomFromText("POINT(54.812222 38.209167)")),
|
||||
("Aadi Noia", "pp", GeomFromText("POINT(13.800000 39.833333)")),
|
||||
("Aad La Macta", "pp", GeomFromText("POINT(35.779444 -0.129167)")),
|
||||
("Aadland", "pp", GeomFromText("POINT(60.366667 5.483333)")),
|
||||
("Aadliye", "pp", GeomFromText("POINT(33.366667 36.333333)")),
|
||||
("Aadloun", "pp", GeomFromText("POINT(33.403889 35.273889)")),
|
||||
("Aadma", "pp", GeomFromText("POINT(58.798333 22.663889)")),
|
||||
("Aadma Asundus", "pp", GeomFromText("POINT(58.798333 22.663889)")),
|
||||
("Aadmoun", "pp", GeomFromText("POINT(34.150000 35.650000)")),
|
||||
("Aadneram", "pp", GeomFromText("POINT(59.016667 6.933333)")),
|
||||
("Aadneskaar", "pp", GeomFromText("POINT(58.083333 6.983333)")),
|
||||
("Aadorf", "pp", GeomFromText("POINT(47.483333 8.900000)")),
|
||||
("Aadorp", "pp", GeomFromText("POINT(52.366667 6.633333)")),
|
||||
("Aadouane", "pp", GeomFromText("POINT(32.816667 35.983333)")),
|
||||
("Aadoui", "pp", GeomFromText("POINT(34.450000 35.983333)")),
|
||||
("Aadouiye", "pp", GeomFromText("POINT(34.583333 36.183333)")),
|
||||
("Aadouss", "pp", GeomFromText("POINT(33.512500 35.601389)")),
|
||||
("Aadra", "pp", GeomFromText("POINT(33.616667 36.500000)")),
|
||||
("Aadzi", "pp", GeomFromText("POINT(38.100000 64.850000)"));
|
||||
("Aadaouane", "pp", GeomFromText("LINESTRING(32.816667 35.983333)")),
|
||||
("Aadassiye", "pp", GeomFromText("LINESTRING(35.816667 36.216667)")),
|
||||
("Aadbel", "pp", GeomFromText("LINESTRING(34.533333 36.100000)")),
|
||||
("Aadchit", "pp", GeomFromText("LINESTRING(33.347222 35.423611)")),
|
||||
("Aadchite", "pp", GeomFromText("LINESTRING(33.347222 35.423611)")),
|
||||
("Aadchit el Qoussair", "pp", GeomFromText("LINESTRING(33.283333 35.483333)")),
|
||||
("Aaddaye", "pp", GeomFromText("LINESTRING(36.716667 40.833333)")),
|
||||
("'Aadeissa", "pp", GeomFromText("LINESTRING(32.823889 35.698889)")),
|
||||
("Aaderup", "pp", GeomFromText("LINESTRING(55.216667 11.766667)")),
|
||||
("Qalaat Aades", "pp", GeomFromText("LINESTRING(33.503333 35.377500)")),
|
||||
("A ad'ino", "pp", GeomFromText("LINESTRING(54.812222 38.209167)")),
|
||||
("Aadi Noia", "pp", GeomFromText("LINESTRING(13.800000 39.833333)")),
|
||||
("Aad La Macta", "pp", GeomFromText("LINESTRING(35.779444 -0.129167)")),
|
||||
("Aadland", "pp", GeomFromText("LINESTRING(60.366667 5.483333)")),
|
||||
("Aadliye", "pp", GeomFromText("LINESTRING(33.366667 36.333333)")),
|
||||
("Aadloun", "pp", GeomFromText("LINESTRING(33.403889 35.273889)")),
|
||||
("Aadma", "pp", GeomFromText("LINESTRING(58.798333 22.663889)")),
|
||||
("Aadma Asundus", "pp", GeomFromText("LINESTRING(58.798333 22.663889)")),
|
||||
("Aadmoun", "pp", GeomFromText("LINESTRING(34.150000 35.650000)")),
|
||||
("Aadneram", "pp", GeomFromText("LINESTRING(59.016667 6.933333)")),
|
||||
("Aadneskaar", "pp", GeomFromText("LINESTRING(58.083333 6.983333)")),
|
||||
("Aadorf", "pp", GeomFromText("LINESTRING(47.483333 8.900000)")),
|
||||
("Aadorp", "pp", GeomFromText("LINESTRING(52.366667 6.633333)")),
|
||||
("Aadouane", "pp", GeomFromText("LINESTRING(32.816667 35.983333)")),
|
||||
("Aadoui", "pp", GeomFromText("LINESTRING(34.450000 35.983333)")),
|
||||
("Aadouiye", "pp", GeomFromText("LINESTRING(34.583333 36.183333)")),
|
||||
("Aadouss", "pp", GeomFromText("LINESTRING(33.512500 35.601389)")),
|
||||
("Aadra", "pp", GeomFromText("LINESTRING(33.616667 36.500000)")),
|
||||
("Aadzi", "pp", GeomFromText("LINESTRING(38.100000 64.850000)"));
|
||||
|
||||
ALTER TABLE t1 ENABLE KEYS;
|
||||
INSERT INTO t1 (name, kind, line) VALUES ("austria", "pp", GeomFromText('LINESTRING(14.9906 48.9887,14.9946 48.9904,14.9947 48.9916)'));
|
||||
|
|
|
@ -766,35 +766,35 @@ SPATIAL KEY (line)
|
|||
) transactional=0 row_format=page;
|
||||
ALTER TABLE t1 DISABLE KEYS;
|
||||
INSERT INTO t1 (name, kind, line) VALUES
|
||||
("Aadaouane", "pp", GeomFromText("POINT(32.816667 35.983333)")),
|
||||
("Aadassiye", "pp", GeomFromText("POINT(35.816667 36.216667)")),
|
||||
("Aadbel", "pp", GeomFromText("POINT(34.533333 36.100000)")),
|
||||
("Aadchit", "pp", GeomFromText("POINT(33.347222 35.423611)")),
|
||||
("Aadchite", "pp", GeomFromText("POINT(33.347222 35.423611)")),
|
||||
("Aadchit el Qoussair", "pp", GeomFromText("POINT(33.283333 35.483333)")),
|
||||
("Aaddaye", "pp", GeomFromText("POINT(36.716667 40.833333)")),
|
||||
("'Aadeissa", "pp", GeomFromText("POINT(32.823889 35.698889)")),
|
||||
("Aaderup", "pp", GeomFromText("POINT(55.216667 11.766667)")),
|
||||
("Qalaat Aades", "pp", GeomFromText("POINT(33.503333 35.377500)")),
|
||||
("A ad'ino", "pp", GeomFromText("POINT(54.812222 38.209167)")),
|
||||
("Aadi Noia", "pp", GeomFromText("POINT(13.800000 39.833333)")),
|
||||
("Aad La Macta", "pp", GeomFromText("POINT(35.779444 -0.129167)")),
|
||||
("Aadland", "pp", GeomFromText("POINT(60.366667 5.483333)")),
|
||||
("Aadliye", "pp", GeomFromText("POINT(33.366667 36.333333)")),
|
||||
("Aadloun", "pp", GeomFromText("POINT(33.403889 35.273889)")),
|
||||
("Aadma", "pp", GeomFromText("POINT(58.798333 22.663889)")),
|
||||
("Aadma Asundus", "pp", GeomFromText("POINT(58.798333 22.663889)")),
|
||||
("Aadmoun", "pp", GeomFromText("POINT(34.150000 35.650000)")),
|
||||
("Aadneram", "pp", GeomFromText("POINT(59.016667 6.933333)")),
|
||||
("Aadneskaar", "pp", GeomFromText("POINT(58.083333 6.983333)")),
|
||||
("Aadorf", "pp", GeomFromText("POINT(47.483333 8.900000)")),
|
||||
("Aadorp", "pp", GeomFromText("POINT(52.366667 6.633333)")),
|
||||
("Aadouane", "pp", GeomFromText("POINT(32.816667 35.983333)")),
|
||||
("Aadoui", "pp", GeomFromText("POINT(34.450000 35.983333)")),
|
||||
("Aadouiye", "pp", GeomFromText("POINT(34.583333 36.183333)")),
|
||||
("Aadouss", "pp", GeomFromText("POINT(33.512500 35.601389)")),
|
||||
("Aadra", "pp", GeomFromText("POINT(33.616667 36.500000)")),
|
||||
("Aadzi", "pp", GeomFromText("POINT(38.100000 64.850000)"));
|
||||
("Aadaouane", "pp", GeomFromText("LINESTRING(32.816667 35.983333)")),
|
||||
("Aadassiye", "pp", GeomFromText("LINESTRING(35.816667 36.216667)")),
|
||||
("Aadbel", "pp", GeomFromText("LINESTRING(34.533333 36.100000)")),
|
||||
("Aadchit", "pp", GeomFromText("LINESTRING(33.347222 35.423611)")),
|
||||
("Aadchite", "pp", GeomFromText("LINESTRING(33.347222 35.423611)")),
|
||||
("Aadchit el Qoussair", "pp", GeomFromText("LINESTRING(33.283333 35.483333)")),
|
||||
("Aaddaye", "pp", GeomFromText("LINESTRING(36.716667 40.833333)")),
|
||||
("'Aadeissa", "pp", GeomFromText("LINESTRING(32.823889 35.698889)")),
|
||||
("Aaderup", "pp", GeomFromText("LINESTRING(55.216667 11.766667)")),
|
||||
("Qalaat Aades", "pp", GeomFromText("LINESTRING(33.503333 35.377500)")),
|
||||
("A ad'ino", "pp", GeomFromText("LINESTRING(54.812222 38.209167)")),
|
||||
("Aadi Noia", "pp", GeomFromText("LINESTRING(13.800000 39.833333)")),
|
||||
("Aad La Macta", "pp", GeomFromText("LINESTRING(35.779444 -0.129167)")),
|
||||
("Aadland", "pp", GeomFromText("LINESTRING(60.366667 5.483333)")),
|
||||
("Aadliye", "pp", GeomFromText("LINESTRING(33.366667 36.333333)")),
|
||||
("Aadloun", "pp", GeomFromText("LINESTRING(33.403889 35.273889)")),
|
||||
("Aadma", "pp", GeomFromText("LINESTRING(58.798333 22.663889)")),
|
||||
("Aadma Asundus", "pp", GeomFromText("LINESTRING(58.798333 22.663889)")),
|
||||
("Aadmoun", "pp", GeomFromText("LINESTRING(34.150000 35.650000)")),
|
||||
("Aadneram", "pp", GeomFromText("LINESTRING(59.016667 6.933333)")),
|
||||
("Aadneskaar", "pp", GeomFromText("LINESTRING(58.083333 6.983333)")),
|
||||
("Aadorf", "pp", GeomFromText("LINESTRING(47.483333 8.900000)")),
|
||||
("Aadorp", "pp", GeomFromText("LINESTRING(52.366667 6.633333)")),
|
||||
("Aadouane", "pp", GeomFromText("LINESTRING(32.816667 35.983333)")),
|
||||
("Aadoui", "pp", GeomFromText("LINESTRING(34.450000 35.983333)")),
|
||||
("Aadouiye", "pp", GeomFromText("LINESTRING(34.583333 36.183333)")),
|
||||
("Aadouss", "pp", GeomFromText("LINESTRING(33.512500 35.601389)")),
|
||||
("Aadra", "pp", GeomFromText("LINESTRING(33.616667 36.500000)")),
|
||||
("Aadzi", "pp", GeomFromText("LINESTRING(38.100000 64.850000)"));
|
||||
ALTER TABLE t1 ENABLE KEYS;
|
||||
INSERT INTO t1 (name, kind, line) VALUES ("austria", "pp", GeomFromText('LINESTRING(14.9906 48.9887,14.9946 48.9904,14.9947 48.9916)'));
|
||||
drop table t1;
|
||||
|
|
|
@ -135,35 +135,35 @@ CREATE TABLE t1 (
|
|||
ALTER TABLE t1 DISABLE KEYS;
|
||||
|
||||
INSERT INTO t1 (name, kind, line) VALUES
|
||||
("Aadaouane", "pp", GeomFromText("POINT(32.816667 35.983333)")),
|
||||
("Aadassiye", "pp", GeomFromText("POINT(35.816667 36.216667)")),
|
||||
("Aadbel", "pp", GeomFromText("POINT(34.533333 36.100000)")),
|
||||
("Aadchit", "pp", GeomFromText("POINT(33.347222 35.423611)")),
|
||||
("Aadchite", "pp", GeomFromText("POINT(33.347222 35.423611)")),
|
||||
("Aadchit el Qoussair", "pp", GeomFromText("POINT(33.283333 35.483333)")),
|
||||
("Aaddaye", "pp", GeomFromText("POINT(36.716667 40.833333)")),
|
||||
("'Aadeissa", "pp", GeomFromText("POINT(32.823889 35.698889)")),
|
||||
("Aaderup", "pp", GeomFromText("POINT(55.216667 11.766667)")),
|
||||
("Qalaat Aades", "pp", GeomFromText("POINT(33.503333 35.377500)")),
|
||||
("A ad'ino", "pp", GeomFromText("POINT(54.812222 38.209167)")),
|
||||
("Aadi Noia", "pp", GeomFromText("POINT(13.800000 39.833333)")),
|
||||
("Aad La Macta", "pp", GeomFromText("POINT(35.779444 -0.129167)")),
|
||||
("Aadland", "pp", GeomFromText("POINT(60.366667 5.483333)")),
|
||||
("Aadliye", "pp", GeomFromText("POINT(33.366667 36.333333)")),
|
||||
("Aadloun", "pp", GeomFromText("POINT(33.403889 35.273889)")),
|
||||
("Aadma", "pp", GeomFromText("POINT(58.798333 22.663889)")),
|
||||
("Aadma Asundus", "pp", GeomFromText("POINT(58.798333 22.663889)")),
|
||||
("Aadmoun", "pp", GeomFromText("POINT(34.150000 35.650000)")),
|
||||
("Aadneram", "pp", GeomFromText("POINT(59.016667 6.933333)")),
|
||||
("Aadneskaar", "pp", GeomFromText("POINT(58.083333 6.983333)")),
|
||||
("Aadorf", "pp", GeomFromText("POINT(47.483333 8.900000)")),
|
||||
("Aadorp", "pp", GeomFromText("POINT(52.366667 6.633333)")),
|
||||
("Aadouane", "pp", GeomFromText("POINT(32.816667 35.983333)")),
|
||||
("Aadoui", "pp", GeomFromText("POINT(34.450000 35.983333)")),
|
||||
("Aadouiye", "pp", GeomFromText("POINT(34.583333 36.183333)")),
|
||||
("Aadouss", "pp", GeomFromText("POINT(33.512500 35.601389)")),
|
||||
("Aadra", "pp", GeomFromText("POINT(33.616667 36.500000)")),
|
||||
("Aadzi", "pp", GeomFromText("POINT(38.100000 64.850000)"));
|
||||
("Aadaouane", "pp", GeomFromText("LINESTRING(32.816667 35.983333)")),
|
||||
("Aadassiye", "pp", GeomFromText("LINESTRING(35.816667 36.216667)")),
|
||||
("Aadbel", "pp", GeomFromText("LINESTRING(34.533333 36.100000)")),
|
||||
("Aadchit", "pp", GeomFromText("LINESTRING(33.347222 35.423611)")),
|
||||
("Aadchite", "pp", GeomFromText("LINESTRING(33.347222 35.423611)")),
|
||||
("Aadchit el Qoussair", "pp", GeomFromText("LINESTRING(33.283333 35.483333)")),
|
||||
("Aaddaye", "pp", GeomFromText("LINESTRING(36.716667 40.833333)")),
|
||||
("'Aadeissa", "pp", GeomFromText("LINESTRING(32.823889 35.698889)")),
|
||||
("Aaderup", "pp", GeomFromText("LINESTRING(55.216667 11.766667)")),
|
||||
("Qalaat Aades", "pp", GeomFromText("LINESTRING(33.503333 35.377500)")),
|
||||
("A ad'ino", "pp", GeomFromText("LINESTRING(54.812222 38.209167)")),
|
||||
("Aadi Noia", "pp", GeomFromText("LINESTRING(13.800000 39.833333)")),
|
||||
("Aad La Macta", "pp", GeomFromText("LINESTRING(35.779444 -0.129167)")),
|
||||
("Aadland", "pp", GeomFromText("LINESTRING(60.366667 5.483333)")),
|
||||
("Aadliye", "pp", GeomFromText("LINESTRING(33.366667 36.333333)")),
|
||||
("Aadloun", "pp", GeomFromText("LINESTRING(33.403889 35.273889)")),
|
||||
("Aadma", "pp", GeomFromText("LINESTRING(58.798333 22.663889)")),
|
||||
("Aadma Asundus", "pp", GeomFromText("LINESTRING(58.798333 22.663889)")),
|
||||
("Aadmoun", "pp", GeomFromText("LINESTRING(34.150000 35.650000)")),
|
||||
("Aadneram", "pp", GeomFromText("LINESTRING(59.016667 6.933333)")),
|
||||
("Aadneskaar", "pp", GeomFromText("LINESTRING(58.083333 6.983333)")),
|
||||
("Aadorf", "pp", GeomFromText("LINESTRING(47.483333 8.900000)")),
|
||||
("Aadorp", "pp", GeomFromText("LINESTRING(52.366667 6.633333)")),
|
||||
("Aadouane", "pp", GeomFromText("LINESTRING(32.816667 35.983333)")),
|
||||
("Aadoui", "pp", GeomFromText("LINESTRING(34.450000 35.983333)")),
|
||||
("Aadouiye", "pp", GeomFromText("LINESTRING(34.583333 36.183333)")),
|
||||
("Aadouss", "pp", GeomFromText("LINESTRING(33.512500 35.601389)")),
|
||||
("Aadra", "pp", GeomFromText("LINESTRING(33.616667 36.500000)")),
|
||||
("Aadzi", "pp", GeomFromText("LINESTRING(38.100000 64.850000)"));
|
||||
|
||||
ALTER TABLE t1 ENABLE KEYS;
|
||||
INSERT INTO t1 (name, kind, line) VALUES ("austria", "pp", GeomFromText('LINESTRING(14.9906 48.9887,14.9946 48.9904,14.9947 48.9916)'));
|
||||
|
|
|
@ -4,7 +4,7 @@ create database mysqltest;
|
|||
use mysqltest;
|
||||
* shut down mysqld, removed logs, restarted it
|
||||
CREATE TABLE t1 (
|
||||
line LINESTRING NOT NULL,
|
||||
line POINT NOT NULL,
|
||||
kind ENUM('po', 'pp', 'rr', 'dr', 'rd', 'ts', 'cl') NOT NULL DEFAULT 'po',
|
||||
name VARCHAR(32)
|
||||
,SPATIAL key (line)
|
||||
|
|
|
@ -31,7 +31,7 @@ use mysqltest;
|
|||
let $mms_tables=2;
|
||||
|
||||
CREATE TABLE t1 (
|
||||
line LINESTRING NOT NULL,
|
||||
line POINT NOT NULL,
|
||||
kind ENUM('po', 'pp', 'rr', 'dr', 'rd', 'ts', 'cl') NOT NULL DEFAULT 'po',
|
||||
name VARCHAR(32)
|
||||
,SPATIAL key (line)
|
||||
|
|
|
@ -2167,19 +2167,19 @@ t1 CREATE TABLE `t1` (
|
|||
) ENGINE=Aria DEFAULT CHARSET=latin1 PAGE_CHECKSUM=0 TRANSACTIONAL=1
|
||||
drop table t1;
|
||||
CREATE TABLE t1 (line LINESTRING NOT NULL) engine=aria;
|
||||
INSERT INTO t1 VALUES (GeomFromText("POINT(0 0)"));
|
||||
INSERT INTO t1 VALUES (GeomFromText("LINESTRING(0 0)"));
|
||||
checksum table t1;
|
||||
Table Checksum
|
||||
test.t1 326284887
|
||||
test.t1 310616673
|
||||
CREATE TABLE t2 (line LINESTRING NOT NULL) engine=aria;
|
||||
INSERT INTO t2 VALUES (GeomFromText("POINT(0 0)"));
|
||||
INSERT INTO t2 VALUES (GeomFromText("LINESTRING(0 0)"));
|
||||
checksum table t2;
|
||||
Table Checksum
|
||||
test.t2 326284887
|
||||
test.t2 310616673
|
||||
CREATE TABLE t3 select * from t1;
|
||||
checksum table t3;
|
||||
Table Checksum
|
||||
test.t3 326284887
|
||||
test.t3 310616673
|
||||
drop table t1,t2,t3;
|
||||
End of 5.1 tests
|
||||
create table t2(a varchar(255),key(a))engine=aria row_format=dynamic transactional=0;
|
||||
|
|
|
@ -1437,10 +1437,10 @@ drop table t1;
|
|||
#
|
||||
|
||||
CREATE TABLE t1 (line LINESTRING NOT NULL) engine=aria;
|
||||
INSERT INTO t1 VALUES (GeomFromText("POINT(0 0)"));
|
||||
INSERT INTO t1 VALUES (GeomFromText("LINESTRING(0 0)"));
|
||||
checksum table t1;
|
||||
CREATE TABLE t2 (line LINESTRING NOT NULL) engine=aria;
|
||||
INSERT INTO t2 VALUES (GeomFromText("POINT(0 0)"));
|
||||
INSERT INTO t2 VALUES (GeomFromText("LINESTRING(0 0)"));
|
||||
checksum table t2;
|
||||
CREATE TABLE t3 select * from t1;
|
||||
checksum table t3;
|
||||
|
|
|
@ -37566,7 +37566,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 OPTIMIZE PARTITION part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 optimize note Table does not support optimize, doing recreate + analyze instead
|
||||
test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed.
|
||||
test.t1 optimize status OK
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
|
@ -38026,7 +38026,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 OPTIMIZE PARTITION part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 optimize note Table does not support optimize, doing recreate + analyze instead
|
||||
test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed.
|
||||
test.t1 optimize status OK
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
|
@ -38497,7 +38497,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 OPTIMIZE PARTITION part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 optimize note Table does not support optimize, doing recreate + analyze instead
|
||||
test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed.
|
||||
test.t1 optimize status OK
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
|
@ -38969,7 +38969,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 OPTIMIZE PARTITION part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 optimize note Table does not support optimize, doing recreate + analyze instead
|
||||
test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed.
|
||||
test.t1 optimize status OK
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
|
@ -39435,7 +39435,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 OPTIMIZE PARTITION part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 optimize note Table does not support optimize, doing recreate + analyze instead
|
||||
test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed.
|
||||
test.t1 optimize status OK
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
|
@ -39907,7 +39907,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 OPTIMIZE PARTITION part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 optimize note Table does not support optimize, doing recreate + analyze instead
|
||||
test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed.
|
||||
test.t1 optimize status OK
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
|
@ -40384,7 +40384,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 OPTIMIZE PARTITION part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 optimize note Table does not support optimize, doing recreate + analyze instead
|
||||
test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed.
|
||||
test.t1 optimize status OK
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
|
@ -40859,7 +40859,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 OPTIMIZE PARTITION part_1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 optimize note Table does not support optimize, doing recreate + analyze instead
|
||||
test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed.
|
||||
test.t1 optimize status OK
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
|
@ -41324,7 +41324,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_2;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 optimize note Table does not support optimize, doing recreate + analyze instead
|
||||
test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed.
|
||||
test.t1 optimize status OK
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
|
@ -41784,7 +41784,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_2;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 optimize note Table does not support optimize, doing recreate + analyze instead
|
||||
test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed.
|
||||
test.t1 optimize status OK
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
|
@ -42255,7 +42255,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_2;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 optimize note Table does not support optimize, doing recreate + analyze instead
|
||||
test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed.
|
||||
test.t1 optimize status OK
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
|
@ -42727,7 +42727,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_2;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 optimize note Table does not support optimize, doing recreate + analyze instead
|
||||
test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed.
|
||||
test.t1 optimize status OK
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
|
@ -43193,7 +43193,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_2;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 optimize note Table does not support optimize, doing recreate + analyze instead
|
||||
test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed.
|
||||
test.t1 optimize status OK
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
|
@ -43665,7 +43665,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_2;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 optimize note Table does not support optimize, doing recreate + analyze instead
|
||||
test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed.
|
||||
test.t1 optimize status OK
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
|
@ -44142,7 +44142,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_2;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 optimize note Table does not support optimize, doing recreate + analyze instead
|
||||
test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed.
|
||||
test.t1 optimize status OK
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
|
@ -44617,7 +44617,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 OPTIMIZE PARTITION part_1,part_2;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 optimize note Table does not support optimize, doing recreate + analyze instead
|
||||
test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed.
|
||||
test.t1 optimize status OK
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
|
@ -52582,7 +52582,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 OPTIMIZE PARTITION ALL;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 optimize note Table does not support optimize, doing recreate + analyze instead
|
||||
test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed.
|
||||
test.t1 optimize status OK
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
|
@ -53042,7 +53042,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 OPTIMIZE PARTITION ALL;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 optimize note Table does not support optimize, doing recreate + analyze instead
|
||||
test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed.
|
||||
test.t1 optimize status OK
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
|
@ -53513,7 +53513,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 OPTIMIZE PARTITION ALL;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 optimize note Table does not support optimize, doing recreate + analyze instead
|
||||
test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed.
|
||||
test.t1 optimize status OK
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
|
@ -53985,7 +53985,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 OPTIMIZE PARTITION ALL;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 optimize note Table does not support optimize, doing recreate + analyze instead
|
||||
test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed.
|
||||
test.t1 optimize status OK
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
|
@ -54451,7 +54451,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 OPTIMIZE PARTITION ALL;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 optimize note Table does not support optimize, doing recreate + analyze instead
|
||||
test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed.
|
||||
test.t1 optimize status OK
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
|
@ -54923,7 +54923,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 OPTIMIZE PARTITION ALL;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 optimize note Table does not support optimize, doing recreate + analyze instead
|
||||
test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed.
|
||||
test.t1 optimize status OK
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
|
@ -55400,7 +55400,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 OPTIMIZE PARTITION ALL;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 optimize note Table does not support optimize, doing recreate + analyze instead
|
||||
test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed.
|
||||
test.t1 optimize status OK
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
|
@ -55875,7 +55875,7 @@ SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
|||
WHERE f_int1 BETWEEN 1 AND @max_row_div2 - 1;
|
||||
ALTER TABLE t1 OPTIMIZE PARTITION ALL;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 optimize note Table does not support optimize, doing recreate + analyze instead
|
||||
test.t1 optimize note Table does not support optimize on partitions. All partitions will be rebuilt and analyzed.
|
||||
test.t1 optimize status OK
|
||||
INSERT INTO t1(f_int1,f_int2,f_char1,f_char2,f_charbig)
|
||||
SELECT f_int1,f_int2,f_char1,f_char2,f_charbig FROM t0_template
|
||||
|
|
|
@ -0,0 +1,63 @@
|
|||
show databases;
|
||||
Database
|
||||
information_schema
|
||||
mtr
|
||||
mysql
|
||||
performance_schema
|
||||
test
|
||||
select count(*) from performance_schema.performance_timers;
|
||||
count(*)
|
||||
5
|
||||
select count(*) from performance_schema.setup_consumers;
|
||||
count(*)
|
||||
8
|
||||
select count(*) > 0 from performance_schema.setup_instruments;
|
||||
count(*) > 0
|
||||
1
|
||||
select count(*) from performance_schema.setup_timers;
|
||||
count(*)
|
||||
1
|
||||
select * from performance_schema.cond_instances;
|
||||
select * from performance_schema.events_waits_current;
|
||||
select * from performance_schema.events_waits_history;
|
||||
select * from performance_schema.events_waits_history_long;
|
||||
select * from performance_schema.events_waits_summary_by_instance;
|
||||
select * from performance_schema.events_waits_summary_by_thread_by_event_name;
|
||||
select * from performance_schema.events_waits_summary_global_by_event_name;
|
||||
select * from performance_schema.file_instances;
|
||||
select * from performance_schema.file_summary_by_event_name;
|
||||
select * from performance_schema.file_summary_by_instance;
|
||||
select * from performance_schema.mutex_instances;
|
||||
select * from performance_schema.performance_timers;
|
||||
select * from performance_schema.rwlock_instances;
|
||||
select * from performance_schema.setup_consumers;
|
||||
select * from performance_schema.setup_instruments;
|
||||
select * from performance_schema.setup_timers;
|
||||
select * from performance_schema.threads;
|
||||
show variables like "performance_schema%";
|
||||
Variable_name Value
|
||||
performance_schema ON
|
||||
performance_schema_events_waits_history_long_size 10000
|
||||
performance_schema_events_waits_history_size 0
|
||||
performance_schema_max_cond_classes 80
|
||||
performance_schema_max_cond_instances 1000
|
||||
performance_schema_max_file_classes 50
|
||||
performance_schema_max_file_handles 32768
|
||||
performance_schema_max_file_instances 10000
|
||||
performance_schema_max_mutex_classes 200
|
||||
performance_schema_max_mutex_instances 10000
|
||||
performance_schema_max_rwlock_classes 30
|
||||
performance_schema_max_rwlock_instances 10000
|
||||
performance_schema_max_table_handles 1000
|
||||
performance_schema_max_table_instances 500
|
||||
performance_schema_max_thread_classes 50
|
||||
performance_schema_max_thread_instances 1000
|
||||
show engine PERFORMANCE_SCHEMA status;
|
||||
show status like "performance_schema%";
|
||||
show variables like "performance_schema_events_waits_history_size";
|
||||
Variable_name Value
|
||||
performance_schema_events_waits_history_size 0
|
||||
select count(*) from performance_schema.events_waits_history;
|
||||
count(*)
|
||||
0
|
||||
truncate table performance_schema.events_waits_history;
|
|
@ -0,0 +1,63 @@
|
|||
show databases;
|
||||
Database
|
||||
information_schema
|
||||
mtr
|
||||
mysql
|
||||
performance_schema
|
||||
test
|
||||
select count(*) from performance_schema.performance_timers;
|
||||
count(*)
|
||||
5
|
||||
select count(*) from performance_schema.setup_consumers;
|
||||
count(*)
|
||||
8
|
||||
select count(*) > 0 from performance_schema.setup_instruments;
|
||||
count(*) > 0
|
||||
1
|
||||
select count(*) from performance_schema.setup_timers;
|
||||
count(*)
|
||||
1
|
||||
select * from performance_schema.cond_instances;
|
||||
select * from performance_schema.events_waits_current;
|
||||
select * from performance_schema.events_waits_history;
|
||||
select * from performance_schema.events_waits_history_long;
|
||||
select * from performance_schema.events_waits_summary_by_instance;
|
||||
select * from performance_schema.events_waits_summary_by_thread_by_event_name;
|
||||
select * from performance_schema.events_waits_summary_global_by_event_name;
|
||||
select * from performance_schema.file_instances;
|
||||
select * from performance_schema.file_summary_by_event_name;
|
||||
select * from performance_schema.file_summary_by_instance;
|
||||
select * from performance_schema.mutex_instances;
|
||||
select * from performance_schema.performance_timers;
|
||||
select * from performance_schema.rwlock_instances;
|
||||
select * from performance_schema.setup_consumers;
|
||||
select * from performance_schema.setup_instruments;
|
||||
select * from performance_schema.setup_timers;
|
||||
select * from performance_schema.threads;
|
||||
show variables like "performance_schema%";
|
||||
Variable_name Value
|
||||
performance_schema ON
|
||||
performance_schema_events_waits_history_long_size 0
|
||||
performance_schema_events_waits_history_size 10
|
||||
performance_schema_max_cond_classes 80
|
||||
performance_schema_max_cond_instances 1000
|
||||
performance_schema_max_file_classes 50
|
||||
performance_schema_max_file_handles 32768
|
||||
performance_schema_max_file_instances 10000
|
||||
performance_schema_max_mutex_classes 200
|
||||
performance_schema_max_mutex_instances 10000
|
||||
performance_schema_max_rwlock_classes 30
|
||||
performance_schema_max_rwlock_instances 10000
|
||||
performance_schema_max_table_handles 1000
|
||||
performance_schema_max_table_instances 500
|
||||
performance_schema_max_thread_classes 50
|
||||
performance_schema_max_thread_instances 1000
|
||||
show engine PERFORMANCE_SCHEMA status;
|
||||
show status like "performance_schema%";
|
||||
show variables like "performance_schema_events_waits_history_long_size";
|
||||
Variable_name Value
|
||||
performance_schema_events_waits_history_long_size 0
|
||||
select count(*) from performance_schema.events_waits_history_long;
|
||||
count(*)
|
||||
0
|
||||
truncate table performance_schema.events_waits_history_long;
|
122
mysql-test/suite/perfschema/r/start_server_nothing.result
Normal file
122
mysql-test/suite/perfschema/r/start_server_nothing.result
Normal file
|
@ -0,0 +1,122 @@
|
|||
show databases;
|
||||
Database
|
||||
information_schema
|
||||
mtr
|
||||
mysql
|
||||
performance_schema
|
||||
test
|
||||
select count(*) from performance_schema.performance_timers;
|
||||
count(*)
|
||||
5
|
||||
select count(*) from performance_schema.setup_consumers;
|
||||
count(*)
|
||||
8
|
||||
select count(*) > 0 from performance_schema.setup_instruments;
|
||||
count(*) > 0
|
||||
0
|
||||
select count(*) from performance_schema.setup_timers;
|
||||
count(*)
|
||||
1
|
||||
select * from performance_schema.cond_instances;
|
||||
select * from performance_schema.events_waits_current;
|
||||
select * from performance_schema.events_waits_history;
|
||||
select * from performance_schema.events_waits_history_long;
|
||||
select * from performance_schema.events_waits_summary_by_instance;
|
||||
select * from performance_schema.events_waits_summary_by_thread_by_event_name;
|
||||
select * from performance_schema.events_waits_summary_global_by_event_name;
|
||||
select * from performance_schema.file_instances;
|
||||
select * from performance_schema.file_summary_by_event_name;
|
||||
select * from performance_schema.file_summary_by_instance;
|
||||
select * from performance_schema.mutex_instances;
|
||||
select * from performance_schema.performance_timers;
|
||||
select * from performance_schema.rwlock_instances;
|
||||
select * from performance_schema.setup_consumers;
|
||||
select * from performance_schema.setup_instruments;
|
||||
select * from performance_schema.setup_timers;
|
||||
select * from performance_schema.threads;
|
||||
show variables like "performance_schema%";
|
||||
Variable_name Value
|
||||
performance_schema ON
|
||||
performance_schema_events_waits_history_long_size 0
|
||||
performance_schema_events_waits_history_size 0
|
||||
performance_schema_max_cond_classes 0
|
||||
performance_schema_max_cond_instances 0
|
||||
performance_schema_max_file_classes 0
|
||||
performance_schema_max_file_handles 0
|
||||
performance_schema_max_file_instances 0
|
||||
performance_schema_max_mutex_classes 0
|
||||
performance_schema_max_mutex_instances 0
|
||||
performance_schema_max_rwlock_classes 0
|
||||
performance_schema_max_rwlock_instances 0
|
||||
performance_schema_max_table_handles 1000
|
||||
performance_schema_max_table_instances 500
|
||||
performance_schema_max_thread_classes 0
|
||||
performance_schema_max_thread_instances 0
|
||||
show engine PERFORMANCE_SCHEMA status;
|
||||
show status like "performance_schema%";
|
||||
show variables like "performance_schema%";
|
||||
Variable_name Value
|
||||
performance_schema ON
|
||||
performance_schema_events_waits_history_long_size 0
|
||||
performance_schema_events_waits_history_size 0
|
||||
performance_schema_max_cond_classes 0
|
||||
performance_schema_max_cond_instances 0
|
||||
performance_schema_max_file_classes 0
|
||||
performance_schema_max_file_handles 0
|
||||
performance_schema_max_file_instances 0
|
||||
performance_schema_max_mutex_classes 0
|
||||
performance_schema_max_mutex_instances 0
|
||||
performance_schema_max_rwlock_classes 0
|
||||
performance_schema_max_rwlock_instances 0
|
||||
performance_schema_max_table_handles 1000
|
||||
performance_schema_max_table_instances 500
|
||||
performance_schema_max_thread_classes 0
|
||||
performance_schema_max_thread_instances 0
|
||||
select * from performance_schema.setup_instruments;
|
||||
NAME ENABLED TIMED
|
||||
select TIMER_NAME from performance_schema.performance_timers;
|
||||
TIMER_NAME
|
||||
CYCLE
|
||||
NANOSECOND
|
||||
MICROSECOND
|
||||
MILLISECOND
|
||||
TICK
|
||||
select * from performance_schema.setup_consumers;
|
||||
NAME ENABLED
|
||||
events_waits_current YES
|
||||
events_waits_history YES
|
||||
events_waits_history_long YES
|
||||
events_waits_summary_by_thread_by_event_name YES
|
||||
events_waits_summary_by_event_name YES
|
||||
events_waits_summary_by_instance YES
|
||||
file_summary_by_event_name YES
|
||||
file_summary_by_instance YES
|
||||
select NAME from performance_schema.setup_timers;
|
||||
NAME
|
||||
wait
|
||||
select * from performance_schema.cond_instances;
|
||||
NAME OBJECT_INSTANCE_BEGIN
|
||||
select * from performance_schema.events_waits_current;
|
||||
THREAD_ID EVENT_ID EVENT_NAME SOURCE TIMER_START TIMER_END TIMER_WAIT SPINS OBJECT_SCHEMA OBJECT_NAME OBJECT_TYPE OBJECT_INSTANCE_BEGIN NESTING_EVENT_ID OPERATION NUMBER_OF_BYTES FLAGS
|
||||
select * from performance_schema.events_waits_history;
|
||||
THREAD_ID EVENT_ID EVENT_NAME SOURCE TIMER_START TIMER_END TIMER_WAIT SPINS OBJECT_SCHEMA OBJECT_NAME OBJECT_TYPE OBJECT_INSTANCE_BEGIN NESTING_EVENT_ID OPERATION NUMBER_OF_BYTES FLAGS
|
||||
select * from performance_schema.events_waits_history_long;
|
||||
THREAD_ID EVENT_ID EVENT_NAME SOURCE TIMER_START TIMER_END TIMER_WAIT SPINS OBJECT_SCHEMA OBJECT_NAME OBJECT_TYPE OBJECT_INSTANCE_BEGIN NESTING_EVENT_ID OPERATION NUMBER_OF_BYTES FLAGS
|
||||
select * from performance_schema.events_waits_summary_by_instance;
|
||||
EVENT_NAME OBJECT_INSTANCE_BEGIN COUNT_STAR SUM_TIMER_WAIT MIN_TIMER_WAIT AVG_TIMER_WAIT MAX_TIMER_WAIT
|
||||
select * from performance_schema.events_waits_summary_by_thread_by_event_name;
|
||||
THREAD_ID EVENT_NAME COUNT_STAR SUM_TIMER_WAIT MIN_TIMER_WAIT AVG_TIMER_WAIT MAX_TIMER_WAIT
|
||||
select * from performance_schema.events_waits_summary_global_by_event_name;
|
||||
EVENT_NAME COUNT_STAR SUM_TIMER_WAIT MIN_TIMER_WAIT AVG_TIMER_WAIT MAX_TIMER_WAIT
|
||||
select * from performance_schema.file_instances;
|
||||
FILE_NAME EVENT_NAME OPEN_COUNT
|
||||
select * from performance_schema.file_summary_by_event_name;
|
||||
EVENT_NAME COUNT_READ COUNT_WRITE SUM_NUMBER_OF_BYTES_READ SUM_NUMBER_OF_BYTES_WRITE
|
||||
select * from performance_schema.file_summary_by_instance;
|
||||
FILE_NAME EVENT_NAME COUNT_READ COUNT_WRITE SUM_NUMBER_OF_BYTES_READ SUM_NUMBER_OF_BYTES_WRITE
|
||||
select * from performance_schema.mutex_instances;
|
||||
NAME OBJECT_INSTANCE_BEGIN LOCKED_BY_THREAD_ID
|
||||
select * from performance_schema.rwlock_instances;
|
||||
NAME OBJECT_INSTANCE_BEGIN WRITE_LOCKED_BY_THREAD_ID READ_LOCKED_BY_COUNT
|
||||
select * from performance_schema.threads;
|
||||
THREAD_ID PROCESSLIST_ID NAME
|
|
@ -0,0 +1,2 @@
|
|||
--loose-enable-performance-schema
|
||||
--loose-performance_schema_events_waits_history_size=0
|
|
@ -0,0 +1,14 @@
|
|||
# Tests for PERFORMANCE_SCHEMA
|
||||
|
||||
--source include/not_embedded.inc
|
||||
--source include/have_perfschema.inc
|
||||
|
||||
--source ../include/start_server_common.inc
|
||||
|
||||
# Expect no history
|
||||
show variables like "performance_schema_events_waits_history_size";
|
||||
select count(*) from performance_schema.events_waits_history;
|
||||
|
||||
# Valid operation, edge case
|
||||
truncate table performance_schema.events_waits_history;
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
--loose-enable-performance-schema
|
||||
--loose-performance_schema_events_waits_history_long_size=0
|
|
@ -0,0 +1,14 @@
|
|||
# Tests for PERFORMANCE_SCHEMA
|
||||
|
||||
--source include/not_embedded.inc
|
||||
--source include/have_perfschema.inc
|
||||
|
||||
--source ../include/start_server_common.inc
|
||||
|
||||
# Expect no history long
|
||||
show variables like "performance_schema_events_waits_history_long_size";
|
||||
select count(*) from performance_schema.events_waits_history_long;
|
||||
|
||||
# Valid operation, edge case
|
||||
truncate table performance_schema.events_waits_history_long;
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
--loose-enable-performance-schema
|
||||
|
||||
--loose-performance_schema_events_waits_history_long_size=0
|
||||
--loose-performance_schema_events_waits_history_size=0
|
||||
|
||||
--loose-performance_schema_max_mutex_classes=0
|
||||
--loose-performance_schema_max_rwlock_classes=0
|
||||
--loose-performance_schema_max_cond_classes=0
|
||||
--loose-performance_schema_max_file_classes=0
|
||||
--loose-performance_schema_max_thread_classes=0
|
||||
|
||||
--loose-performance_schema_max_mutex_instances=0
|
||||
--loose-performance_schema_max_rwlock_instances=0
|
||||
--loose-performance_schema_max_cond_instances=0
|
||||
--loose-performance_schema_max_file_instances=0
|
||||
--loose-performance_schema_max_thread_instances=0
|
||||
|
||||
--loose-performance_schema_max_file_handles=0
|
||||
|
30
mysql-test/suite/perfschema/t/start_server_nothing.test
Normal file
30
mysql-test/suite/perfschema/t/start_server_nothing.test
Normal file
|
@ -0,0 +1,30 @@
|
|||
# Tests for PERFORMANCE_SCHEMA
|
||||
|
||||
--source include/not_embedded.inc
|
||||
--source include/have_perfschema.inc
|
||||
|
||||
--source ../include/start_server_common.inc
|
||||
|
||||
show variables like "performance_schema%";
|
||||
|
||||
# Not empty
|
||||
select * from performance_schema.setup_instruments;
|
||||
select TIMER_NAME from performance_schema.performance_timers;
|
||||
select * from performance_schema.setup_consumers;
|
||||
select NAME from performance_schema.setup_timers;
|
||||
|
||||
# All empty
|
||||
select * from performance_schema.cond_instances;
|
||||
select * from performance_schema.events_waits_current;
|
||||
select * from performance_schema.events_waits_history;
|
||||
select * from performance_schema.events_waits_history_long;
|
||||
select * from performance_schema.events_waits_summary_by_instance;
|
||||
select * from performance_schema.events_waits_summary_by_thread_by_event_name;
|
||||
select * from performance_schema.events_waits_summary_global_by_event_name;
|
||||
select * from performance_schema.file_instances;
|
||||
select * from performance_schema.file_summary_by_event_name;
|
||||
select * from performance_schema.file_summary_by_instance;
|
||||
select * from performance_schema.mutex_instances;
|
||||
select * from performance_schema.rwlock_instances;
|
||||
select * from performance_schema.threads;
|
||||
|
|
@ -13,5 +13,4 @@
|
|||
rpl_row_create_table : Bug#11759274 2010-02-27 andrei failed different way than earlier with bug#45576
|
||||
rpl_spec_variables : BUG#11755836 2009-10-27 jasonh rpl_spec_variables fails on PB2 hpux
|
||||
rpl_get_master_version_and_clock : Bug#11766137 Jan 05 2011 joro Valgrind warnings rpl_get_master_version_and_clock
|
||||
rpl_row_until : BUG#59543 Jan 26 2011 alfranio Replication test from eits suite rpl_row_until times out
|
||||
rpl_stm_until : BUG#59543 Jan 26 2011 alfranio Replication test from eits suite rpl_row_until times out
|
||||
|
|
|
@ -35,6 +35,7 @@ KEY `event_id` (`event_id`),
|
|||
KEY `visit_id` (`visit_id`),
|
||||
KEY `data` (`data`)
|
||||
) ENGINE=MyISAM AUTO_INCREMENT=33900731 DEFAULT CHARSET=latin1;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
BINLOG '
|
||||
|
@ -47,6 +48,7 @@ Bk3vRhe0AQAAWgAAABEMyQkQAJlXFwIAAAEABv/AIE4AvvVDAQZN70YAK0Rvd25sb2Fkcy9NeVNR
|
|||
TC00LjEvbXlzcWwtNC4xLjEyYS13aW4zMi56aXBPaAIC
|
||||
'/*!*/;
|
||||
SET INSERT_ID=21231039/*!*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
use track/*!*/;
|
||||
SET TIMESTAMP=1190087942/*!*/;
|
||||
SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=1, @@session.unique_checks=1/*!*/;
|
||||
|
|
|
@ -26,6 +26,7 @@ a b c
|
|||
0000-00-00 00:00:00.0000 0 2022-02-02 02:02:02.65
|
||||
drop table t1;
|
||||
include/rpl_end.inc
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -95,3 +96,4 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
|
|
|
@ -154,6 +154,7 @@ master-bin.000001 # Query # # BEGIN
|
|||
master-bin.000001 # Begin_load_query # # ;file_id=#;block_len=#
|
||||
master-bin.000001 # Execute_load_query # # use `test`; LOAD DATA INFILE 'MYSQLTEST_VARDIR/tmp/f\'le.txt' INTO TABLE `db1``; select 'oops!'`.`t``1` FIELDS TERMINATED BY ',' ENCLOSED BY '\'' ESCAPED BY '\\' LINES TERMINATED BY '\n' (`a``1`, `b``2`) SET `c``3`= concat('|', "b""a'z", "!") ;file_id=#
|
||||
master-bin.000001 # Query # # COMMIT
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -197,6 +198,7 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
SELECT * FROM `db1``; select 'oops!'`.`t``1`;
|
||||
a`1 b`2 c`3
|
||||
fo\o bar |b"a'z!
|
||||
|
@ -246,6 +248,7 @@ master-bin.000001 # User var # # @```c`=-123450123456789012345678901234567890123
|
|||
master-bin.000001 # User var # # @```d```=_latin1 0x78787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878 COLLATE latin1_swedish_ci
|
||||
master-bin.000001 # Query # # use `db1``; select 'oops!'`; INSERT INTO t1 VALUES (@`a``1`+1, @`a``2`*100, @`a``3`-1, @`a``4`-1, @`b```/2, @```c`, substr(@```d```, 2, 98))
|
||||
master-bin.000001 # Query # # COMMIT
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -291,6 +294,7 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
SELECT * FROM `db1``; select 'oops!'`.t1 ORDER BY a1;
|
||||
a1 a2 a3 a4 b c d
|
||||
-9223372036854775808 42 9223372036854775807 18446744073709551615 -1.234560123456789e125 -1234501234567890123456789012345678901234567890123456789.0123456789 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||||
|
@ -337,6 +341,7 @@ Log_name Pos Event_type Server_id End_log_pos Info
|
|||
master-bin.000002 # Query # # BEGIN
|
||||
master-bin.000002 # Query # # use `test`; INSERT INTO t1 VALUES(1)
|
||||
master-bin.000002 # Query # # COMMIT
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -363,5 +368,6 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
DROP TABLE t1;
|
||||
include/rpl_end.inc
|
||||
|
|
|
@ -2,10 +2,12 @@ include/master-slave.inc
|
|||
[connection master]
|
||||
include/rpl_restart_server.inc [server_number=2 parameters: --report-port=9000]
|
||||
include/start_slave.inc
|
||||
include/wait_for_slave_param.inc [Slave_IO_State]
|
||||
[Slave restarted with the report-port set to some value]
|
||||
include/assert.inc [The value shown for the slave's port number is user specified port number which is the value set for report-port.]
|
||||
include/rpl_restart_server.inc [server_number=2]
|
||||
include/start_slave.inc
|
||||
include/wait_for_slave_param.inc [Slave_IO_State]
|
||||
[Slave restarted with the report-port set to the value of slave's port number]
|
||||
include/assert.inc [The default value shown for the slave's port number is the actual port number of the slave.]
|
||||
include/rpl_end.inc
|
||||
|
|
|
@ -150,6 +150,7 @@ c1 c3 c4 c5
|
|||
5 2006-02-22 00:00:00 Tested in Texas 11
|
||||
|
||||
--- Test 2 position test --
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -170,8 +171,10 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
|
||||
--- Test 3 First Remote test --
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -201,6 +204,7 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
|
||||
--- Test 4 Second Remote test --
|
||||
DROP TABLE t1;
|
||||
|
@ -274,6 +278,7 @@ c1 c3 c4 c5
|
|||
5 2006-02-22 00:00:00 Tested in Texas 11
|
||||
|
||||
--- Test 5 LOAD DATA --
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -281,8 +286,10 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
|
||||
--- Test 6 reading stdin --
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -312,8 +319,10 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
|
||||
--- Test 7 reading stdin w/position --
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -334,6 +343,7 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
|
||||
--- Test 8 switch internal charset --
|
||||
stop slave;
|
||||
|
|
|
@ -652,6 +652,7 @@ show function status like '%mysqltestbug36570%';
|
|||
Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
|
||||
test mysqltestbug36570_f1 FUNCTION root@localhost t t DEFINER latin1 latin1_swedish_ci latin1_swedish_ci
|
||||
flush logs;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
DELIMITER /*!*/;
|
||||
|
@ -1178,6 +1179,7 @@ DELIMITER ;
|
|||
# End of log file
|
||||
ROLLBACK /* added by mysqlbinlog */;
|
||||
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
use test;
|
||||
drop procedure mysqltestbug36570_p1;
|
||||
drop procedure ` mysqltestbug36570_p2`;
|
||||
|
|
|
@ -40,6 +40,7 @@ CREATE TABLE `visits_events` (
|
|||
KEY `data` (`data`)
|
||||
) ENGINE=MyISAM AUTO_INCREMENT=33900731 DEFAULT CHARSET=latin1;
|
||||
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/;
|
||||
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
|
||||
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
|
||||
--delimiter /*!*/;
|
||||
|
@ -119,6 +120,7 @@ SET INSERT_ID=21231039/*!*/;
|
|||
# 9c90ded 2d 63 6f 6e 6e 65 63 74 6f 72 2d 6a 61 76 61 2d |.connector.java.|
|
||||
# 9c90dfd 33 2e 30 2e 31 37 2d 67 61 2e 7a 69 70 |3.0.17.ga.zip|
|
||||
# Query thread_id=28278824 exec_time=0 error_code=0
|
||||
/*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/;
|
||||
use track/*!*/;
|
||||
SET TIMESTAMP=1190087942/*!*/;
|
||||
SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=1, @@session.unique_checks=1/*!*/;
|
||||
|
|
|
@ -32,6 +32,9 @@ connection master;
|
|||
|
||||
connection slave;
|
||||
--source include/start_slave.inc
|
||||
--let $slave_param= Slave_IO_State
|
||||
--let $slave_param_value= Waiting for master to send event
|
||||
--source include/wait_for_slave_param.inc
|
||||
|
||||
--echo [Slave restarted with the report-port set to some value]
|
||||
connection master;
|
||||
|
@ -52,6 +55,9 @@ connection master;
|
|||
|
||||
connection slave;
|
||||
--source include/start_slave.inc
|
||||
--let $slave_param= Slave_IO_State
|
||||
--let $slave_param_value= Waiting for master to send event
|
||||
--source include/wait_for_slave_param.inc
|
||||
|
||||
connection master;
|
||||
sync_slave_with_master;
|
||||
|
|
|
@ -10,6 +10,5 @@
|
|||
#
|
||||
##############################################################################
|
||||
|
||||
innodb_trx_rseg_n_slots_debug_basic: variable innodb_trx_rseg_n_slots_debug is removed in MariaDB
|
||||
innodb_flush_checkpoint_debug_basic: removed from XtraDB-26.0
|
||||
|
||||
|
|
|
@ -0,0 +1,58 @@
|
|||
SET @start_global_value = @@global.innodb_limit_optimistic_insert_debug;
|
||||
SELECT @start_global_value;
|
||||
@start_global_value
|
||||
0
|
||||
select @@global.innodb_limit_optimistic_insert_debug;
|
||||
@@global.innodb_limit_optimistic_insert_debug
|
||||
0
|
||||
select @@session.innodb_limit_optimistic_insert_debug;
|
||||
ERROR HY000: Variable 'innodb_limit_optimistic_insert_debug' is a GLOBAL variable
|
||||
show global variables like 'innodb_limit_optimistic_insert_debug';
|
||||
Variable_name Value
|
||||
innodb_limit_optimistic_insert_debug 0
|
||||
show session variables like 'innodb_limit_optimistic_insert_debug';
|
||||
Variable_name Value
|
||||
innodb_limit_optimistic_insert_debug 0
|
||||
select * from information_schema.global_variables where variable_name='innodb_limit_optimistic_insert_debug';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
INNODB_LIMIT_OPTIMISTIC_INSERT_DEBUG 0
|
||||
select * from information_schema.session_variables where variable_name='innodb_limit_optimistic_insert_debug';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
INNODB_LIMIT_OPTIMISTIC_INSERT_DEBUG 0
|
||||
set global innodb_limit_optimistic_insert_debug=1;
|
||||
select @@global.innodb_limit_optimistic_insert_debug;
|
||||
@@global.innodb_limit_optimistic_insert_debug
|
||||
1
|
||||
select * from information_schema.global_variables where variable_name='innodb_limit_optimistic_insert_debug';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
INNODB_LIMIT_OPTIMISTIC_INSERT_DEBUG 1
|
||||
select * from information_schema.session_variables where variable_name='innodb_limit_optimistic_insert_debug';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
INNODB_LIMIT_OPTIMISTIC_INSERT_DEBUG 1
|
||||
set @@global.innodb_limit_optimistic_insert_debug=0;
|
||||
select @@global.innodb_limit_optimistic_insert_debug;
|
||||
@@global.innodb_limit_optimistic_insert_debug
|
||||
0
|
||||
select * from information_schema.global_variables where variable_name='innodb_limit_optimistic_insert_debug';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
INNODB_LIMIT_OPTIMISTIC_INSERT_DEBUG 0
|
||||
select * from information_schema.session_variables where variable_name='innodb_limit_optimistic_insert_debug';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
INNODB_LIMIT_OPTIMISTIC_INSERT_DEBUG 0
|
||||
set session innodb_limit_optimistic_insert_debug='some';
|
||||
ERROR HY000: Variable 'innodb_limit_optimistic_insert_debug' is a GLOBAL variable and should be set with SET GLOBAL
|
||||
set @@session.innodb_limit_optimistic_insert_debug='some';
|
||||
ERROR HY000: Variable 'innodb_limit_optimistic_insert_debug' is a GLOBAL variable and should be set with SET GLOBAL
|
||||
set global innodb_limit_optimistic_insert_debug=1.1;
|
||||
ERROR 42000: Incorrect argument type to variable 'innodb_limit_optimistic_insert_debug'
|
||||
set global innodb_limit_optimistic_insert_debug='foo';
|
||||
ERROR 42000: Incorrect argument type to variable 'innodb_limit_optimistic_insert_debug'
|
||||
set global innodb_limit_optimistic_insert_debug=-2;
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect innodb_limit_optimistic_insert_d value: '-2'
|
||||
set global innodb_limit_optimistic_insert_debug=1e1;
|
||||
ERROR 42000: Incorrect argument type to variable 'innodb_limit_optimistic_insert_debug'
|
||||
SET @@global.innodb_limit_optimistic_insert_debug = @start_global_value;
|
||||
SELECT @@global.innodb_limit_optimistic_insert_debug;
|
||||
@@global.innodb_limit_optimistic_insert_debug
|
||||
0
|
|
@ -0,0 +1,22 @@
|
|||
SELECT @@innodb_print_all_deadlocks;
|
||||
@@innodb_print_all_deadlocks
|
||||
0
|
||||
SET GLOBAL innodb_print_all_deadlocks=1;
|
||||
CREATE TABLE t1 (c1 INT, PRIMARY KEY (c1)) ENGINE=INNODB;
|
||||
INSERT INTO t1 VALUES (123);
|
||||
CREATE TABLE t2 (c2 INT, PRIMARY KEY (c2)) ENGINE=INNODB;
|
||||
INSERT INTO t2 VALUES (456);
|
||||
BEGIN;
|
||||
SELECT * FROM t1 FOR UPDATE;
|
||||
c1
|
||||
123
|
||||
BEGIN;
|
||||
SELECT * FROM t2 FOR UPDATE;
|
||||
c2
|
||||
456
|
||||
SELECT * FROM t2 FOR UPDATE;
|
||||
SELECT * FROM t1 FOR UPDATE;
|
||||
ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
|
||||
DROP TABLE t2;
|
||||
DROP TABLE t1;
|
||||
SET GLOBAL innodb_print_all_deadlocks=default;
|
|
@ -0,0 +1,62 @@
|
|||
SET @start_global_value = @@global.innodb_trx_purge_view_update_only_debug;
|
||||
SELECT @start_global_value;
|
||||
@start_global_value
|
||||
0
|
||||
select @@global.innodb_trx_purge_view_update_only_debug in (0, 1);
|
||||
@@global.innodb_trx_purge_view_update_only_debug in (0, 1)
|
||||
1
|
||||
select @@global.innodb_trx_purge_view_update_only_debug;
|
||||
@@global.innodb_trx_purge_view_update_only_debug
|
||||
0
|
||||
select @@session.innodb_trx_purge_view_update_only_debug;
|
||||
ERROR HY000: Variable 'innodb_trx_purge_view_update_only_debug' is a GLOBAL variable
|
||||
show global variables like 'innodb_trx_purge_view_update_only_debug';
|
||||
Variable_name Value
|
||||
innodb_trx_purge_view_update_only_debug OFF
|
||||
show session variables like 'innodb_trx_purge_view_update_only_debug';
|
||||
Variable_name Value
|
||||
innodb_trx_purge_view_update_only_debug OFF
|
||||
select * from information_schema.global_variables where variable_name='innodb_trx_purge_view_update_only_debug';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
INNODB_TRX_PURGE_VIEW_UPDATE_ONLY_DEBUG OFF
|
||||
select * from information_schema.session_variables where variable_name='innodb_trx_purge_view_update_only_debug';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
INNODB_TRX_PURGE_VIEW_UPDATE_ONLY_DEBUG OFF
|
||||
set global innodb_trx_purge_view_update_only_debug=1;
|
||||
select @@global.innodb_trx_purge_view_update_only_debug;
|
||||
@@global.innodb_trx_purge_view_update_only_debug
|
||||
1
|
||||
select * from information_schema.global_variables where variable_name='innodb_trx_purge_view_update_only_debug';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
INNODB_TRX_PURGE_VIEW_UPDATE_ONLY_DEBUG ON
|
||||
select * from information_schema.session_variables where variable_name='innodb_trx_purge_view_update_only_debug';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
INNODB_TRX_PURGE_VIEW_UPDATE_ONLY_DEBUG ON
|
||||
set @@global.innodb_trx_purge_view_update_only_debug=0;
|
||||
select @@global.innodb_trx_purge_view_update_only_debug;
|
||||
@@global.innodb_trx_purge_view_update_only_debug
|
||||
0
|
||||
select * from information_schema.global_variables where variable_name='innodb_trx_purge_view_update_only_debug';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
INNODB_TRX_PURGE_VIEW_UPDATE_ONLY_DEBUG OFF
|
||||
select * from information_schema.session_variables where variable_name='innodb_trx_purge_view_update_only_debug';
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
INNODB_TRX_PURGE_VIEW_UPDATE_ONLY_DEBUG OFF
|
||||
set session innodb_trx_purge_view_update_only_debug='some';
|
||||
ERROR HY000: Variable 'innodb_trx_purge_view_update_only_debug' is a GLOBAL variable and should be set with SET GLOBAL
|
||||
set @@session.innodb_trx_purge_view_update_only_debug='some';
|
||||
ERROR HY000: Variable 'innodb_trx_purge_view_update_only_debug' is a GLOBAL variable and should be set with SET GLOBAL
|
||||
set global innodb_trx_purge_view_update_only_debug=1.1;
|
||||
ERROR 42000: Incorrect argument type to variable 'innodb_trx_purge_view_update_only_debug'
|
||||
set global innodb_trx_purge_view_update_only_debug='foo';
|
||||
ERROR 42000: Variable 'innodb_trx_purge_view_update_only_debug' can't be set to the value of 'foo'
|
||||
set global innodb_trx_purge_view_update_only_debug=-2;
|
||||
ERROR 42000: Variable 'innodb_trx_purge_view_update_only_debug' can't be set to the value of '-2'
|
||||
set global innodb_trx_purge_view_update_only_debug=1e1;
|
||||
ERROR 42000: Incorrect argument type to variable 'innodb_trx_purge_view_update_only_debug'
|
||||
set global innodb_trx_purge_view_update_only_debug=2;
|
||||
ERROR 42000: Variable 'innodb_trx_purge_view_update_only_debug' can't be set to the value of '2'
|
||||
SET @@global.innodb_trx_purge_view_update_only_debug = @start_global_value;
|
||||
SELECT @@global.innodb_trx_purge_view_update_only_debug;
|
||||
@@global.innodb_trx_purge_view_update_only_debug
|
||||
0
|
|
@ -1,14 +0,0 @@
|
|||
SET @global_start_value = @@global.ndb_log_update_as_write;
|
||||
ERROR HY000: Unknown system variable 'ndb_log_update_as_write'
|
||||
SELECT @@global.ndb_log_update_as_write;
|
||||
ERROR HY000: Unknown system variable 'ndb_log_update_as_write'
|
||||
'Bug: The value is not a system variable or atleast not supported in version 5.1.22'
|
||||
'#--------------------FN_DYNVARS_102_01------------------------#'
|
||||
'#---------------------FN_DYNVARS_102_02-------------------------#'
|
||||
'#--------------------FN_DYNVARS_102_03------------------------#'
|
||||
'#--------------------FN_DYNVARS_102_04-------------------------#'
|
||||
'#-------------------FN_DYNVARS_102_05----------------------------#'
|
||||
'#----------------------FN_DYNVARS_102_06------------------------#'
|
||||
'#----------------------FN_DYNVARS_102_07------------------------#'
|
||||
'#---------------------FN_DYNVARS_102_08-------------------------#'
|
||||
'#---------------------FN_DYNVARS_102_09----------------------#'
|
|
@ -1,14 +0,0 @@
|
|||
SET @global_start_value = @@global.ndb_log_updated_only;
|
||||
ERROR HY000: Unknown system variable 'ndb_log_updated_only'
|
||||
SELECT @@global.ndb_log_updated_only;
|
||||
ERROR HY000: Unknown system variable 'ndb_log_updated_only'
|
||||
'Bug: The value is not a system variable or atleast not supported in version 5.1.22'
|
||||
'#--------------------FN_DYNVARS_103_01------------------------#'
|
||||
'#---------------------FN_DYNVARS_103_02-------------------------#'
|
||||
'#--------------------FN_DYNVARS_103_03------------------------#'
|
||||
'#--------------------FN_DYNVARS_103_04-------------------------#'
|
||||
'#-------------------FN_DYNVARS_103_05----------------------------#'
|
||||
'#----------------------FN_DYNVARS_103_06------------------------#'
|
||||
'#----------------------FN_DYNVARS_103_07------------------------#'
|
||||
'#---------------------FN_DYNVARS_103_08-------------------------#'
|
||||
'#---------------------FN_DYNVARS_103_09----------------------#'
|
119
mysql-test/suite/sys_vars/r/pseudo_slave_mode_basic.result
Normal file
119
mysql-test/suite/sys_vars/r/pseudo_slave_mode_basic.result
Normal file
|
@ -0,0 +1,119 @@
|
|||
SET @session_start_value = @@session.pseudo_slave_mode;
|
||||
SELECT @session_start_value;
|
||||
@session_start_value
|
||||
0
|
||||
'#--------------------FN_DYNVARS_156_01------------------------#'
|
||||
SET @@session.pseudo_slave_mode = 0;
|
||||
Warnings:
|
||||
Warning 1231 'pseudo_slave_mode' change was ineffective.
|
||||
SET @@session.pseudo_slave_mode = DEFAULT;
|
||||
Warnings:
|
||||
Warning 1231 'pseudo_slave_mode' change was ineffective.
|
||||
SELECT @@session.pseudo_slave_mode;
|
||||
@@session.pseudo_slave_mode
|
||||
0
|
||||
SET @@session.pseudo_slave_mode = 1;
|
||||
SET @@session.pseudo_slave_mode = DEFAULT;
|
||||
Warnings:
|
||||
Warning 1231 Slave applier execution mode not active, statement ineffective.
|
||||
SELECT @@session.pseudo_slave_mode;
|
||||
@@session.pseudo_slave_mode
|
||||
0
|
||||
'#---------------------FN_DYNVARS_156_02-------------------------#'
|
||||
SET pseudo_slave_mode = 1;
|
||||
SELECT @@pseudo_slave_mode;
|
||||
@@pseudo_slave_mode
|
||||
1
|
||||
SELECT session.pseudo_slave_mode;
|
||||
ERROR 42S02: Unknown table 'session' in field list
|
||||
SELECT local.pseudo_slave_mode;
|
||||
ERROR 42S02: Unknown table 'local' in field list
|
||||
SET session pseudo_slave_mode = 0;
|
||||
Warnings:
|
||||
Warning 1231 Slave applier execution mode not active, statement ineffective.
|
||||
SELECT @@session.pseudo_slave_mode;
|
||||
@@session.pseudo_slave_mode
|
||||
0
|
||||
'#--------------------FN_DYNVARS_156_03------------------------#'
|
||||
SET @@session.pseudo_slave_mode = 0;
|
||||
Warnings:
|
||||
Warning 1231 'pseudo_slave_mode' change was ineffective.
|
||||
SELECT @@session.pseudo_slave_mode;
|
||||
@@session.pseudo_slave_mode
|
||||
0
|
||||
SET @@session.pseudo_slave_mode = 1;
|
||||
SELECT @@session.pseudo_slave_mode;
|
||||
@@session.pseudo_slave_mode
|
||||
1
|
||||
'#--------------------FN_DYNVARS_156_04-------------------------#'
|
||||
SET @@session.pseudo_slave_mode = -1;
|
||||
ERROR 42000: Variable 'pseudo_slave_mode' can't be set to the value of '-1'
|
||||
SET @@session.pseudo_slave_mode = 2;
|
||||
ERROR 42000: Variable 'pseudo_slave_mode' can't be set to the value of '2'
|
||||
SET @@session.pseudo_slave_mode = "T";
|
||||
ERROR 42000: Variable 'pseudo_slave_mode' can't be set to the value of 'T'
|
||||
SET @@session.pseudo_slave_mode = "Y";
|
||||
ERROR 42000: Variable 'pseudo_slave_mode' can't be set to the value of 'Y'
|
||||
SET @@session.pseudo_slave_mode = TRÜE;
|
||||
ERROR 42000: Variable 'pseudo_slave_mode' can't be set to the value of 'TRÜE'
|
||||
SET @@session.pseudo_slave_mode = ÕN;
|
||||
ERROR 42000: Variable 'pseudo_slave_mode' can't be set to the value of 'ÕN'
|
||||
SET @@session.pseudo_slave_mode = OF;
|
||||
ERROR 42000: Variable 'pseudo_slave_mode' can't be set to the value of 'OF'
|
||||
SET @@session.pseudo_slave_mode = ÓFF;
|
||||
ERROR 42000: Variable 'pseudo_slave_mode' can't be set to the value of 'ÓFF'
|
||||
SET @@session.pseudo_slave_mode = '¹';
|
||||
ERROR 42000: Variable 'pseudo_slave_mode' can't be set to the value of '¹'
|
||||
SET @@session.pseudo_slave_mode = NO;
|
||||
ERROR 42000: Variable 'pseudo_slave_mode' can't be set to the value of 'NO'
|
||||
'#-------------------FN_DYNVARS_156_05----------------------------#'
|
||||
SET @@global.pseudo_slave_mode = 0;
|
||||
ERROR HY000: Variable 'pseudo_slave_mode' is a SESSION variable and can't be used with SET GLOBAL
|
||||
SELECT @@global.pseudo_slave_mode;
|
||||
ERROR HY000: Variable 'pseudo_slave_mode' is a SESSION variable
|
||||
'#----------------------FN_DYNVARS_156_06------------------------#'
|
||||
SELECT count(VARIABLE_VALUE) FROM INFORMATION_SCHEMA.SESSION_VARIABLES WHERE VARIABLE_NAME='pseudo_slave_mode';
|
||||
count(VARIABLE_VALUE)
|
||||
1
|
||||
'#----------------------FN_DYNVARS_156_07------------------------#'
|
||||
SELECT IF(@@session.pseudo_slave_mode, "ON", "OFF") = VARIABLE_VALUE
|
||||
FROM INFORMATION_SCHEMA.SESSION_VARIABLES
|
||||
WHERE VARIABLE_NAME='pseudo_slave_mode';
|
||||
IF(@@session.pseudo_slave_mode, "ON", "OFF") = VARIABLE_VALUE
|
||||
1
|
||||
SELECT @@session.pseudo_slave_mode;
|
||||
@@session.pseudo_slave_mode
|
||||
1
|
||||
SELECT VARIABLE_VALUE
|
||||
FROM INFORMATION_SCHEMA.SESSION_VARIABLES
|
||||
WHERE VARIABLE_NAME='pseudo_slave_mode';
|
||||
VARIABLE_VALUE
|
||||
ON
|
||||
'#---------------------FN_DYNVARS_156_08-------------------------#'
|
||||
SET @@session.pseudo_slave_mode = OFF;
|
||||
Warnings:
|
||||
Warning 1231 Slave applier execution mode not active, statement ineffective.
|
||||
SELECT @@session.pseudo_slave_mode;
|
||||
@@session.pseudo_slave_mode
|
||||
0
|
||||
SET @@session.pseudo_slave_mode = ON;
|
||||
SELECT @@session.pseudo_slave_mode;
|
||||
@@session.pseudo_slave_mode
|
||||
1
|
||||
'#---------------------FN_DYNVARS_156_09----------------------#'
|
||||
SET @@session.pseudo_slave_mode = TRUE;
|
||||
SELECT @@session.pseudo_slave_mode;
|
||||
@@session.pseudo_slave_mode
|
||||
1
|
||||
SET @@session.pseudo_slave_mode = FALSE;
|
||||
Warnings:
|
||||
Warning 1231 Slave applier execution mode not active, statement ineffective.
|
||||
SELECT @@session.pseudo_slave_mode;
|
||||
@@session.pseudo_slave_mode
|
||||
0
|
||||
SET @@session.pseudo_slave_mode = @session_start_value;
|
||||
Warnings:
|
||||
Warning 1231 'pseudo_slave_mode' change was ineffective.
|
||||
SELECT @@session.pseudo_slave_mode;
|
||||
@@session.pseudo_slave_mode
|
||||
0
|
|
@ -0,0 +1,54 @@
|
|||
--source include/have_innodb.inc
|
||||
--source include/have_debug.inc
|
||||
if (`select plugin_auth_version <= "1.1.8-29.3" from information_schema.plugins where plugin_name='innodb'`)
|
||||
{
|
||||
--skip Not fixed in XtraDB 1.1.8-29.3 or earlier
|
||||
}
|
||||
|
||||
SET @start_global_value = @@global.innodb_limit_optimistic_insert_debug;
|
||||
SELECT @start_global_value;
|
||||
|
||||
#
|
||||
# exists as global only
|
||||
#
|
||||
select @@global.innodb_limit_optimistic_insert_debug;
|
||||
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
||||
select @@session.innodb_limit_optimistic_insert_debug;
|
||||
show global variables like 'innodb_limit_optimistic_insert_debug';
|
||||
show session variables like 'innodb_limit_optimistic_insert_debug';
|
||||
select * from information_schema.global_variables where variable_name='innodb_limit_optimistic_insert_debug';
|
||||
select * from information_schema.session_variables where variable_name='innodb_limit_optimistic_insert_debug';
|
||||
|
||||
#
|
||||
# show that it's writable
|
||||
#
|
||||
set global innodb_limit_optimistic_insert_debug=1;
|
||||
select @@global.innodb_limit_optimistic_insert_debug;
|
||||
select * from information_schema.global_variables where variable_name='innodb_limit_optimistic_insert_debug';
|
||||
select * from information_schema.session_variables where variable_name='innodb_limit_optimistic_insert_debug';
|
||||
set @@global.innodb_limit_optimistic_insert_debug=0;
|
||||
select @@global.innodb_limit_optimistic_insert_debug;
|
||||
select * from information_schema.global_variables where variable_name='innodb_limit_optimistic_insert_debug';
|
||||
select * from information_schema.session_variables where variable_name='innodb_limit_optimistic_insert_debug';
|
||||
--error ER_GLOBAL_VARIABLE
|
||||
set session innodb_limit_optimistic_insert_debug='some';
|
||||
--error ER_GLOBAL_VARIABLE
|
||||
set @@session.innodb_limit_optimistic_insert_debug='some';
|
||||
|
||||
#
|
||||
# incorrect types
|
||||
#
|
||||
--error ER_WRONG_TYPE_FOR_VAR
|
||||
set global innodb_limit_optimistic_insert_debug=1.1;
|
||||
--error ER_WRONG_TYPE_FOR_VAR
|
||||
set global innodb_limit_optimistic_insert_debug='foo';
|
||||
set global innodb_limit_optimistic_insert_debug=-2;
|
||||
--error ER_WRONG_TYPE_FOR_VAR
|
||||
set global innodb_limit_optimistic_insert_debug=1e1;
|
||||
|
||||
#
|
||||
# Cleanup
|
||||
#
|
||||
|
||||
SET @@global.innodb_limit_optimistic_insert_debug = @start_global_value;
|
||||
SELECT @@global.innodb_limit_optimistic_insert_debug;
|
|
@ -0,0 +1,52 @@
|
|||
#
|
||||
# innodb_print_all_deadlocks
|
||||
#
|
||||
|
||||
-- source include/have_innodb.inc
|
||||
if (`select plugin_auth_version <= "1.1.8-29.3" from information_schema.plugins where plugin_name='innodb'`)
|
||||
{
|
||||
--skip Not fixed in XtraDB 1.1.8-29.3 or earlier
|
||||
}
|
||||
|
||||
SELECT @@innodb_print_all_deadlocks;
|
||||
|
||||
SET GLOBAL innodb_print_all_deadlocks=1;
|
||||
|
||||
CREATE TABLE t1 (c1 INT, PRIMARY KEY (c1)) ENGINE=INNODB;
|
||||
INSERT INTO t1 VALUES (123);
|
||||
|
||||
CREATE TABLE t2 (c2 INT, PRIMARY KEY (c2)) ENGINE=INNODB;
|
||||
INSERT INTO t2 VALUES (456);
|
||||
|
||||
-- connect (con1,localhost,root,,)
|
||||
-- connect (con2,localhost,root,,)
|
||||
|
||||
-- connection con1
|
||||
BEGIN;
|
||||
SELECT * FROM t1 FOR UPDATE;
|
||||
|
||||
-- connection con2
|
||||
BEGIN;
|
||||
SELECT * FROM t2 FOR UPDATE;
|
||||
|
||||
-- connection con1
|
||||
-- send
|
||||
SELECT * FROM t2 FOR UPDATE;
|
||||
|
||||
-- connection con2
|
||||
let $wait_condition=
|
||||
SELECT COUNT(*) = 1 FROM INFORMATION_SCHEMA.PROCESSLIST
|
||||
WHERE state = 'Sending data' AND info = 'SELECT * FROM t2 FOR UPDATE';
|
||||
-- source include/wait_condition.inc
|
||||
-- error ER_LOCK_DEADLOCK
|
||||
SELECT * FROM t1 FOR UPDATE;
|
||||
|
||||
-- connection default
|
||||
|
||||
-- disconnect con1
|
||||
-- disconnect con2
|
||||
|
||||
DROP TABLE t2;
|
||||
DROP TABLE t1;
|
||||
|
||||
SET GLOBAL innodb_print_all_deadlocks=default;
|
|
@ -0,0 +1,58 @@
|
|||
--source include/have_innodb.inc
|
||||
--source include/have_debug.inc
|
||||
if (`select plugin_auth_version <= "1.1.8-29.3" from information_schema.plugins where plugin_name='innodb'`)
|
||||
{
|
||||
--skip Not fixed in XtraDB 1.1.8-29.3 or earlier
|
||||
}
|
||||
|
||||
SET @start_global_value = @@global.innodb_trx_purge_view_update_only_debug;
|
||||
SELECT @start_global_value;
|
||||
|
||||
#
|
||||
# exists as global only
|
||||
#
|
||||
select @@global.innodb_trx_purge_view_update_only_debug in (0, 1);
|
||||
select @@global.innodb_trx_purge_view_update_only_debug;
|
||||
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
||||
select @@session.innodb_trx_purge_view_update_only_debug;
|
||||
show global variables like 'innodb_trx_purge_view_update_only_debug';
|
||||
show session variables like 'innodb_trx_purge_view_update_only_debug';
|
||||
select * from information_schema.global_variables where variable_name='innodb_trx_purge_view_update_only_debug';
|
||||
select * from information_schema.session_variables where variable_name='innodb_trx_purge_view_update_only_debug';
|
||||
|
||||
#
|
||||
# show that it's writable
|
||||
#
|
||||
set global innodb_trx_purge_view_update_only_debug=1;
|
||||
select @@global.innodb_trx_purge_view_update_only_debug;
|
||||
select * from information_schema.global_variables where variable_name='innodb_trx_purge_view_update_only_debug';
|
||||
select * from information_schema.session_variables where variable_name='innodb_trx_purge_view_update_only_debug';
|
||||
set @@global.innodb_trx_purge_view_update_only_debug=0;
|
||||
select @@global.innodb_trx_purge_view_update_only_debug;
|
||||
select * from information_schema.global_variables where variable_name='innodb_trx_purge_view_update_only_debug';
|
||||
select * from information_schema.session_variables where variable_name='innodb_trx_purge_view_update_only_debug';
|
||||
--error ER_GLOBAL_VARIABLE
|
||||
set session innodb_trx_purge_view_update_only_debug='some';
|
||||
--error ER_GLOBAL_VARIABLE
|
||||
set @@session.innodb_trx_purge_view_update_only_debug='some';
|
||||
|
||||
#
|
||||
# incorrect types
|
||||
#
|
||||
--error ER_WRONG_TYPE_FOR_VAR
|
||||
set global innodb_trx_purge_view_update_only_debug=1.1;
|
||||
--error ER_WRONG_VALUE_FOR_VAR
|
||||
set global innodb_trx_purge_view_update_only_debug='foo';
|
||||
--error ER_WRONG_VALUE_FOR_VAR
|
||||
set global innodb_trx_purge_view_update_only_debug=-2;
|
||||
--error ER_WRONG_TYPE_FOR_VAR
|
||||
set global innodb_trx_purge_view_update_only_debug=1e1;
|
||||
--error ER_WRONG_VALUE_FOR_VAR
|
||||
set global innodb_trx_purge_view_update_only_debug=2;
|
||||
|
||||
#
|
||||
# Cleanup
|
||||
#
|
||||
|
||||
SET @@global.innodb_trx_purge_view_update_only_debug = @start_global_value;
|
||||
SELECT @@global.innodb_trx_purge_view_update_only_debug;
|
|
@ -1,216 +0,0 @@
|
|||
############## mysql-test\t\ndb_log_update_as_write_basic.test ###############
|
||||
# #
|
||||
# Variable Name: ndb_log_update_as_write #
|
||||
# Scope: GLOBAL #
|
||||
# Access Type: Dynamic #
|
||||
# Data Type: boolean #
|
||||
# Default Value: #
|
||||
# Range: #
|
||||
# #
|
||||
# #
|
||||
# Creation Date: 2008-02-07 #
|
||||
# Author: Rizwan #
|
||||
# #
|
||||
# Description: Test Cases of Dynamic System Variable ndb_log_update_as_write #
|
||||
# that checks the behavior of this variable in the following ways#
|
||||
# * Default Value #
|
||||
# * Valid & Invalid values #
|
||||
# * Scope & Access method #
|
||||
# * Data Integrity #
|
||||
# #
|
||||
# Reference: http://dev.mysql.com/doc/refman/5.1/en/ #
|
||||
# server-system-variables.html #
|
||||
# #
|
||||
###############################################################################
|
||||
############## mysql-test\t\ndb_log_update_as_write_basic.test ################
|
||||
# #
|
||||
# Variable Name: ndb_log_update_as_write #
|
||||
# Scope: GLOBAL & SESSION #
|
||||
# Access Type: Dynamic #
|
||||
# Data Type: Numeric #
|
||||
# Default Value: 1 #
|
||||
# Range: 1 - 65536 #
|
||||
# #
|
||||
# #
|
||||
# Creation Date: 2008-02-07 #
|
||||
# Author: Rizwan Maredia #
|
||||
# #
|
||||
# Description: Test Cases of Dynamic System Variable ndb_log_update_as_write #
|
||||
# that checks the behavior of this variable in the following ways #
|
||||
# * Default Value #
|
||||
# * Valid & Invalid values #
|
||||
# * Scope & Access method #
|
||||
# * Data Integrity #
|
||||
# #
|
||||
# Reference: http://dev.mysql.com/doc/refman/5.1/en/ #
|
||||
# server-system-variables.html #
|
||||
# #
|
||||
################################################################################
|
||||
################# mysql-test\t\ndb_log_update_as_write_basic.test ######
|
||||
# #
|
||||
# #
|
||||
# Creation Date: 2008-02-07 #
|
||||
# Author: Rizwan Maredia #
|
||||
# #
|
||||
# Description: Test Cases of Dynamic System Variable #
|
||||
# ndb_log_update_as_write that check behavior of this #
|
||||
# variable with valid values, invalid values, #
|
||||
# accessing variable with scope that is #
|
||||
# allowed and with scope that is now allowed. #
|
||||
# Scope: Global #
|
||||
# Reference: http://dev.mysql.com/doc/refman/5.1/en/server-system #
|
||||
# -variables.html #
|
||||
# #
|
||||
########################################################################
|
||||
|
||||
--source include/load_sysvars.inc
|
||||
|
||||
########################################################################
|
||||
# START OF ndb_log_update_as_write TESTS #
|
||||
########################################################################
|
||||
|
||||
|
||||
################################################################################
|
||||
# Saving initial value of ndb_log_update_as_write in a temporary variable #
|
||||
################################################################################
|
||||
|
||||
|
||||
--Error ER_UNKNOWN_SYSTEM_VARIABLE
|
||||
SET @global_start_value = @@global.ndb_log_update_as_write;
|
||||
--Error ER_UNKNOWN_SYSTEM_VARIABLE
|
||||
SELECT @@global.ndb_log_update_as_write;
|
||||
|
||||
--echo 'Bug: The value is not a system variable or atleast not supported in version 5.1.22'
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_102_01------------------------#'
|
||||
########################################################################
|
||||
# Display the DEFAULT value of ndb_log_update_as_write #
|
||||
########################################################################
|
||||
|
||||
#SET @@ndb_log_update_as_write = 0;
|
||||
#SET @@ndb_log_update_as_write = DEFAULT;
|
||||
#SELECT @@ndb_log_update_as_write;
|
||||
#
|
||||
#SET @@ndb_log_update_as_write = 1;
|
||||
#SET @@ndb_log_update_as_write = DEFAULT;
|
||||
#SELECT @@ndb_log_update_as_write;
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_102_02-------------------------#'
|
||||
#############################################################################
|
||||
# Check if ndb_log_update_as_write can be accessed with and without @@ sign #
|
||||
#############################################################################
|
||||
|
||||
#SET ndb_log_update_as_write = 1;
|
||||
#SELECT @@ndb_log_update_as_write;
|
||||
#--Error ER_UNKNOWN_TABLE
|
||||
#SELECT global.ndb_log_update_as_write;
|
||||
#
|
||||
#SET global ndb_log_update_as_write = 1;
|
||||
#SELECT @@global.ndb_log_update_as_write;
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_102_03------------------------#'
|
||||
########################################################################
|
||||
# Change the value of ndb_log_update_as_write to a valid value #
|
||||
########################################################################
|
||||
|
||||
#SET @@global.ndb_log_update_as_write = 0;
|
||||
#SELECT @@global.ndb_log_update_as_write;
|
||||
#SET @@global.ndb_log_update_as_write = 1;
|
||||
#SELECT @@global.ndb_log_update_as_write;
|
||||
## a value of 2 is used to just flush logs and then shutdown cold.
|
||||
#SET @@global.ndb_log_update_as_write = 2;
|
||||
#SELECT @@global.ndb_log_update_as_write;
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_102_04-------------------------#'
|
||||
###########################################################################
|
||||
# Change the value of ndb_log_update_as_write to invalid value #
|
||||
###########################################################################
|
||||
|
||||
#--Error ER_WRONG_VALUE_FOR_VAR
|
||||
#SET @@global.ndb_log_update_as_write = -1;
|
||||
#--Error ER_WRONG_VALUE_FOR_VAR
|
||||
#SET @@global.ndb_log_update_as_write = TRU;
|
||||
#--Error ER_WRONG_VALUE_FOR_VAR
|
||||
#SET @@global.ndb_log_update_as_write = TRUE_F;
|
||||
#--Error ER_WRONG_VALUE_FOR_VAR
|
||||
#SET @@global.ndb_log_update_as_write = FALS;
|
||||
#--Error ER_WRONG_VALUE_FOR_VAR
|
||||
#SET @@global.ndb_log_update_as_write = OON;
|
||||
#--Error ER_WRONG_VALUE_FOR_VAR
|
||||
#SET @@global.ndb_log_update_as_write = ONN;
|
||||
#--Error ER_WRONG_VALUE_FOR_VAR
|
||||
#SET @@global.ndb_log_update_as_write = OOFF;
|
||||
#--Error ER_WRONG_VALUE_FOR_VAR
|
||||
#SET @@global.ndb_log_update_as_write = 0FF;
|
||||
#--Error ER_WRONG_VALUE_FOR_VAR
|
||||
#SET @@global.ndb_log_update_as_write = ' 1';
|
||||
#--Error ER_WRONG_VALUE_FOR_VAR
|
||||
#SET @@global.ndb_log_update_as_write = "0 ";
|
||||
|
||||
|
||||
|
||||
--echo '#-------------------FN_DYNVARS_102_05----------------------------#'
|
||||
###########################################################################
|
||||
# Test if accessing session ndb_log_update_as_write gives error #
|
||||
###########################################################################
|
||||
|
||||
#--Error ER_LOCAL_VARIABLE
|
||||
#SET @@session.ndb_log_update_as_write = 0;
|
||||
#--Error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
||||
#SET @@ndb_log_update_as_write = 0;
|
||||
#--Error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
||||
#SET @@local.ndb_log_update_as_write = 0;
|
||||
#--Error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
||||
#SELECT @@session.ndb_log_update_as_write;
|
||||
#--Error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
||||
#SELECT @@local.ndb_log_update_as_write;
|
||||
|
||||
--echo '#----------------------FN_DYNVARS_102_06------------------------#'
|
||||
#########################################################################
|
||||
# Check if the value in SESSION Table contains variable value #
|
||||
#########################################################################
|
||||
|
||||
#SELECT count(VARIABLE_VALUE) AS res_is_0 FROM INFORMATION_SCHEMA.SESSION_VARIABLES WHERE VARIABLE_NAME='ndb_log_update_as_write';
|
||||
|
||||
|
||||
--echo '#----------------------FN_DYNVARS_102_07------------------------#'
|
||||
#########################################################################
|
||||
# Check if the value in GLOBAL Table matches value in variable #
|
||||
#########################################################################
|
||||
|
||||
#SELECT @@global.ndb_log_update_as_write = VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES WHERE VARIABLE_NAME='ndb_log_update_as_write';
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_102_08-------------------------#'
|
||||
###################################################################
|
||||
# Check if ON and OFF values can be used on variable #
|
||||
###################################################################
|
||||
|
||||
#SET @@ndb_log_update_as_write = OFF;
|
||||
#SELECT @@ndb_log_update_as_write;
|
||||
#SET @@ndb_log_update_as_write = ON;
|
||||
#SELECT @@ndb_log_update_as_write;
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_102_09----------------------#'
|
||||
###################################################################
|
||||
# Check if TRUE and FALSE values can be used on variable #
|
||||
###################################################################
|
||||
|
||||
#SET @@ndb_log_update_as_write = TRUE;
|
||||
#SELECT @@ndb_log_update_as_write;
|
||||
#SET @@ndb_log_update_as_write = 'FALSE';
|
||||
#SELECT @@ndb_log_update_as_write;
|
||||
|
||||
##############################
|
||||
# Restore initial value #
|
||||
##############################
|
||||
|
||||
#SET @@ndb_log_update_as_write = @global_start_value;
|
||||
#SELECT @@ndb_log_update_as_write;
|
||||
|
||||
########################################################################
|
||||
# END OF ndb_log_update_as_write TESTS #
|
||||
########################################################################
|
|
@ -1,216 +0,0 @@
|
|||
############## mysql-test\t\ndb_log_updated_only_basic.test ###############
|
||||
# #
|
||||
# Variable Name: ndb_log_updated_only #
|
||||
# Scope: GLOBAL #
|
||||
# Access Type: Dynamic #
|
||||
# Data Type: boolean #
|
||||
# Default Value: #
|
||||
# Range: #
|
||||
# #
|
||||
# #
|
||||
# Creation Date: 2008-02-07 #
|
||||
# Author: Rizwan #
|
||||
# #
|
||||
# Description: Test Cases of Dynamic System Variable ndb_log_updated_only #
|
||||
# that checks the behavior of this variable in the following ways#
|
||||
# * Default Value #
|
||||
# * Valid & Invalid values #
|
||||
# * Scope & Access method #
|
||||
# * Data Integrity #
|
||||
# #
|
||||
# Reference: http://dev.mysql.com/doc/refman/5.1/en/ #
|
||||
# server-system-variables.html #
|
||||
# #
|
||||
###############################################################################
|
||||
############## mysql-test\t\ndb_log_updated_only_basic.test ################
|
||||
# #
|
||||
# Variable Name: ndb_log_updated_only #
|
||||
# Scope: GLOBAL & SESSION #
|
||||
# Access Type: Dynamic #
|
||||
# Data Type: Numeric #
|
||||
# Default Value: 1 #
|
||||
# Range: 1 - 65536 #
|
||||
# #
|
||||
# #
|
||||
# Creation Date: 2008-02-07 #
|
||||
# Author: Rizwan Maredia #
|
||||
# #
|
||||
# Description: Test Cases of Dynamic System Variable ndb_log_updated_only #
|
||||
# that checks the behavior of this variable in the following ways #
|
||||
# * Default Value #
|
||||
# * Valid & Invalid values #
|
||||
# * Scope & Access method #
|
||||
# * Data Integrity #
|
||||
# #
|
||||
# Reference: http://dev.mysql.com/doc/refman/5.1/en/ #
|
||||
# server-system-variables.html #
|
||||
# #
|
||||
################################################################################
|
||||
################# mysql-test\t\ndb_log_updated_only_basic.test #########
|
||||
# #
|
||||
# #
|
||||
# Creation Date: 2008-02-07 #
|
||||
# Author: Rizwan Maredia #
|
||||
# #
|
||||
# Description: Test Cases of Dynamic System Variable #
|
||||
# ndb_log_updated_only that check behavior of this #
|
||||
# variable with valid values, invalid values, #
|
||||
# accessing variable with scope that is #
|
||||
# allowed and with scope that is now allowed. #
|
||||
# Scope: Global #
|
||||
# Reference: http://dev.mysql.com/doc/refman/5.1/en/server-system #
|
||||
# -variables.html #
|
||||
# #
|
||||
########################################################################
|
||||
|
||||
--source include/load_sysvars.inc
|
||||
|
||||
########################################################################
|
||||
# START OF ndb_log_updated_only TESTS #
|
||||
########################################################################
|
||||
|
||||
|
||||
################################################################################
|
||||
# Saving initial value of ndb_log_updated_only in a temporary variable #
|
||||
################################################################################
|
||||
|
||||
|
||||
--Error ER_UNKNOWN_SYSTEM_VARIABLE
|
||||
SET @global_start_value = @@global.ndb_log_updated_only;
|
||||
--Error ER_UNKNOWN_SYSTEM_VARIABLE
|
||||
SELECT @@global.ndb_log_updated_only;
|
||||
|
||||
--echo 'Bug: The value is not a system variable or atleast not supported in version 5.1.22'
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_103_01------------------------#'
|
||||
########################################################################
|
||||
# Display the DEFAULT value of ndb_log_updated_only #
|
||||
########################################################################
|
||||
|
||||
#SET @@ndb_log_updated_only = 0;
|
||||
#SET @@ndb_log_updated_only = DEFAULT;
|
||||
#SELECT @@ndb_log_updated_only;
|
||||
#
|
||||
#SET @@ndb_log_updated_only = 1;
|
||||
#SET @@ndb_log_updated_only = DEFAULT;
|
||||
#SELECT @@ndb_log_updated_only;
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_103_02-------------------------#'
|
||||
#############################################################################
|
||||
# Check if ndb_log_updated_only can be accessed with and without @@ sign #
|
||||
#############################################################################
|
||||
|
||||
#SET ndb_log_updated_only = 1;
|
||||
#SELECT @@ndb_log_updated_only;
|
||||
#--Error ER_UNKNOWN_TABLE
|
||||
#SELECT global.ndb_log_updated_only;
|
||||
#
|
||||
#SET global ndb_log_updated_only = 1;
|
||||
#SELECT @@global.ndb_log_updated_only;
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_103_03------------------------#'
|
||||
########################################################################
|
||||
# Change the value of ndb_log_updated_only to a valid value #
|
||||
########################################################################
|
||||
|
||||
#SET @@global.ndb_log_updated_only = 0;
|
||||
#SELECT @@global.ndb_log_updated_only;
|
||||
#SET @@global.ndb_log_updated_only = 1;
|
||||
#SELECT @@global.ndb_log_updated_only;
|
||||
## a value of 2 is used to just flush logs and then shutdown cold.
|
||||
#SET @@global.ndb_log_updated_only = 2;
|
||||
#SELECT @@global.ndb_log_updated_only;
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_103_04-------------------------#'
|
||||
###########################################################################
|
||||
# Change the value of ndb_log_updated_only to invalid value #
|
||||
###########################################################################
|
||||
|
||||
#--Error ER_WRONG_VALUE_FOR_VAR
|
||||
#SET @@global.ndb_log_updated_only = -1;
|
||||
#--Error ER_WRONG_VALUE_FOR_VAR
|
||||
#SET @@global.ndb_log_updated_only = TRU;
|
||||
#--Error ER_WRONG_VALUE_FOR_VAR
|
||||
#SET @@global.ndb_log_updated_only = TRUE_F;
|
||||
#--Error ER_WRONG_VALUE_FOR_VAR
|
||||
#SET @@global.ndb_log_updated_only = FALS;
|
||||
#--Error ER_WRONG_VALUE_FOR_VAR
|
||||
#SET @@global.ndb_log_updated_only = OON;
|
||||
#--Error ER_WRONG_VALUE_FOR_VAR
|
||||
#SET @@global.ndb_log_updated_only = ONN;
|
||||
#--Error ER_WRONG_VALUE_FOR_VAR
|
||||
#SET @@global.ndb_log_updated_only = OOFF;
|
||||
#--Error ER_WRONG_VALUE_FOR_VAR
|
||||
#SET @@global.ndb_log_updated_only = 0FF;
|
||||
#--Error ER_WRONG_VALUE_FOR_VAR
|
||||
#SET @@global.ndb_log_updated_only = ' 1';
|
||||
#--Error ER_WRONG_VALUE_FOR_VAR
|
||||
#SET @@global.ndb_log_updated_only = "0 ";
|
||||
|
||||
|
||||
|
||||
--echo '#-------------------FN_DYNVARS_103_05----------------------------#'
|
||||
###########################################################################
|
||||
# Test if accessing session ndb_log_updated_only gives error #
|
||||
###########################################################################
|
||||
|
||||
#--Error ER_LOCAL_VARIABLE
|
||||
#SET @@session.ndb_log_updated_only = 0;
|
||||
#--Error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
||||
#SET @@ndb_log_updated_only = 0;
|
||||
#--Error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
||||
#SET @@local.ndb_log_updated_only = 0;
|
||||
#--Error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
||||
#SELECT @@session.ndb_log_updated_only;
|
||||
#--Error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
||||
#SELECT @@local.ndb_log_updated_only;
|
||||
|
||||
--echo '#----------------------FN_DYNVARS_103_06------------------------#'
|
||||
#########################################################################
|
||||
# Check if the value in SESSION Table contains variable value #
|
||||
#########################################################################
|
||||
|
||||
#SELECT count(VARIABLE_VALUE) AS res_is_0 FROM INFORMATION_SCHEMA.SESSION_VARIABLES WHERE VARIABLE_NAME='ndb_log_updated_only';
|
||||
|
||||
|
||||
--echo '#----------------------FN_DYNVARS_103_07------------------------#'
|
||||
#########################################################################
|
||||
# Check if the value in GLOBAL Table matches value in variable #
|
||||
#########################################################################
|
||||
|
||||
#SELECT @@global.ndb_log_updated_only = VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES WHERE VARIABLE_NAME='ndb_log_updated_only';
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_103_08-------------------------#'
|
||||
###################################################################
|
||||
# Check if ON and OFF values can be used on variable #
|
||||
###################################################################
|
||||
|
||||
#SET @@ndb_log_updated_only = OFF;
|
||||
#SELECT @@ndb_log_updated_only;
|
||||
#SET @@ndb_log_updated_only = ON;
|
||||
#SELECT @@ndb_log_updated_only;
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_103_09----------------------#'
|
||||
###################################################################
|
||||
# Check if TRUE and FALSE values can be used on variable #
|
||||
###################################################################
|
||||
|
||||
#SET @@ndb_log_updated_only = TRUE;
|
||||
#SELECT @@ndb_log_updated_only;
|
||||
#SET @@ndb_log_updated_only = 'FALSE';
|
||||
#SELECT @@ndb_log_updated_only;
|
||||
|
||||
##############################
|
||||
# Restore initial value #
|
||||
##############################
|
||||
|
||||
#SET @@ndb_log_updated_only = @global_start_value;
|
||||
#SELECT @@ndb_log_updated_only;
|
||||
|
||||
########################################################################
|
||||
# END OF ndb_log_updated_only TESTS #
|
||||
########################################################################
|
168
mysql-test/suite/sys_vars/t/pseudo_slave_mode_basic.test
Normal file
168
mysql-test/suite/sys_vars/t/pseudo_slave_mode_basic.test
Normal file
|
@ -0,0 +1,168 @@
|
|||
####################### mysql-test\t\pseudo_slave_mode_basic.test ###################
|
||||
# #
|
||||
# Variable Name: pseudo_slave_mode #
|
||||
# Scope: SESSION #
|
||||
# Access Type: Dynamic #
|
||||
# Data Type: boolean #
|
||||
# Default Value: #
|
||||
# Valid Values: 0,1 #
|
||||
# #
|
||||
# #
|
||||
# Creation Date: 2012-11-16 #
|
||||
# #
|
||||
# Description: Test Cases of Dynamic System Variable pseudo_slave_mode #
|
||||
# that checks the behavior of this variable in the following ways#
|
||||
# * Default Value #
|
||||
# * Valid & Invalid values #
|
||||
# * Scope & Access method #
|
||||
# * Data Integrity #
|
||||
# #
|
||||
# Reference: http://dev.mysql.com/doc/refman/5.5/en/ #
|
||||
# server-system-variables.html #
|
||||
# #
|
||||
###############################################################################
|
||||
|
||||
--source include/load_sysvars.inc
|
||||
|
||||
########################################################################
|
||||
# START OF pseudo_slave_mode TESTS #
|
||||
########################################################################
|
||||
|
||||
|
||||
##############################################################################
|
||||
# Saving initial value of pseudo_slave_mode in a temporary variable #
|
||||
##############################################################################
|
||||
|
||||
SET @session_start_value = @@session.pseudo_slave_mode;
|
||||
SELECT @session_start_value;
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_156_01------------------------#'
|
||||
########################################################################
|
||||
# Display the DEFAULT value of pseudo_slave_mode #
|
||||
########################################################################
|
||||
|
||||
SET @@session.pseudo_slave_mode = 0;
|
||||
SET @@session.pseudo_slave_mode = DEFAULT;
|
||||
SELECT @@session.pseudo_slave_mode;
|
||||
|
||||
SET @@session.pseudo_slave_mode = 1;
|
||||
SET @@session.pseudo_slave_mode = DEFAULT;
|
||||
SELECT @@session.pseudo_slave_mode;
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_156_02-------------------------#'
|
||||
#############################################################################
|
||||
# Check if pseudo_slave_mode can be accessed with and without @@ sign #
|
||||
#############################################################################
|
||||
|
||||
SET pseudo_slave_mode = 1;
|
||||
SELECT @@pseudo_slave_mode;
|
||||
|
||||
--Error ER_UNKNOWN_TABLE
|
||||
SELECT session.pseudo_slave_mode;
|
||||
|
||||
--Error ER_UNKNOWN_TABLE
|
||||
SELECT local.pseudo_slave_mode;
|
||||
|
||||
SET session pseudo_slave_mode = 0;
|
||||
SELECT @@session.pseudo_slave_mode;
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_156_03------------------------#'
|
||||
########################################################################
|
||||
# change the value of pseudo_slave_mode to a valid value #
|
||||
########################################################################
|
||||
|
||||
SET @@session.pseudo_slave_mode = 0;
|
||||
SELECT @@session.pseudo_slave_mode;
|
||||
SET @@session.pseudo_slave_mode = 1;
|
||||
SELECT @@session.pseudo_slave_mode;
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_156_04-------------------------#'
|
||||
###########################################################################
|
||||
# Change the value of pseudo_slave_mode to invalid value #
|
||||
###########################################################################
|
||||
|
||||
--Error ER_WRONG_VALUE_FOR_VAR
|
||||
SET @@session.pseudo_slave_mode = -1;
|
||||
--Error ER_WRONG_VALUE_FOR_VAR
|
||||
SET @@session.pseudo_slave_mode = 2;
|
||||
--Error ER_WRONG_VALUE_FOR_VAR
|
||||
SET @@session.pseudo_slave_mode = "T";
|
||||
--Error ER_WRONG_VALUE_FOR_VAR
|
||||
SET @@session.pseudo_slave_mode = "Y";
|
||||
--Error ER_WRONG_VALUE_FOR_VAR
|
||||
SET @@session.pseudo_slave_mode = TRÜE;
|
||||
--Error ER_WRONG_VALUE_FOR_VAR
|
||||
SET @@session.pseudo_slave_mode = ÕN;
|
||||
--Error ER_WRONG_VALUE_FOR_VAR
|
||||
SET @@session.pseudo_slave_mode = OF;
|
||||
--Error ER_WRONG_VALUE_FOR_VAR
|
||||
SET @@session.pseudo_slave_mode = ÓFF;
|
||||
--Error ER_WRONG_VALUE_FOR_VAR
|
||||
SET @@session.pseudo_slave_mode = '¹';
|
||||
--Error ER_WRONG_VALUE_FOR_VAR
|
||||
SET @@session.pseudo_slave_mode = NO;
|
||||
|
||||
|
||||
--echo '#-------------------FN_DYNVARS_156_05----------------------------#'
|
||||
###########################################################################
|
||||
# Test if accessing global pseudo_slave_mode gives error #
|
||||
###########################################################################
|
||||
|
||||
--error ER_LOCAL_VARIABLE
|
||||
SET @@global.pseudo_slave_mode = 0;
|
||||
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
||||
SELECT @@global.pseudo_slave_mode;
|
||||
|
||||
--echo '#----------------------FN_DYNVARS_156_06------------------------#'
|
||||
#########################################################################
|
||||
# Check if the value in SESSION Table contains variable value #
|
||||
#########################################################################
|
||||
|
||||
SELECT count(VARIABLE_VALUE) FROM INFORMATION_SCHEMA.SESSION_VARIABLES WHERE VARIABLE_NAME='pseudo_slave_mode';
|
||||
|
||||
--echo '#----------------------FN_DYNVARS_156_07------------------------#'
|
||||
#########################################################################
|
||||
# Check if the value in SESSION Table matches value in variable #
|
||||
#########################################################################
|
||||
|
||||
SELECT IF(@@session.pseudo_slave_mode, "ON", "OFF") = VARIABLE_VALUE
|
||||
FROM INFORMATION_SCHEMA.SESSION_VARIABLES
|
||||
WHERE VARIABLE_NAME='pseudo_slave_mode';
|
||||
SELECT @@session.pseudo_slave_mode;
|
||||
SELECT VARIABLE_VALUE
|
||||
FROM INFORMATION_SCHEMA.SESSION_VARIABLES
|
||||
WHERE VARIABLE_NAME='pseudo_slave_mode';
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_156_08-------------------------#'
|
||||
###################################################################
|
||||
# Check if ON and OFF values can be used on variable #
|
||||
###################################################################
|
||||
|
||||
SET @@session.pseudo_slave_mode = OFF;
|
||||
SELECT @@session.pseudo_slave_mode;
|
||||
SET @@session.pseudo_slave_mode = ON;
|
||||
SELECT @@session.pseudo_slave_mode;
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_156_09----------------------#'
|
||||
###################################################################
|
||||
# Check if TRUE and FALSE values can be used on variable #
|
||||
###################################################################
|
||||
|
||||
SET @@session.pseudo_slave_mode = TRUE;
|
||||
SELECT @@session.pseudo_slave_mode;
|
||||
SET @@session.pseudo_slave_mode = FALSE;
|
||||
SELECT @@session.pseudo_slave_mode;
|
||||
|
||||
##############################
|
||||
# Restore initial value #
|
||||
##############################
|
||||
|
||||
SET @@session.pseudo_slave_mode = @session_start_value;
|
||||
SELECT @@session.pseudo_slave_mode;
|
||||
|
||||
###############################################################
|
||||
# END OF pseudo_slave_mode TESTS #
|
||||
###############################################################
|
|
@ -5,19 +5,19 @@
|
|||
CREATE TABLE t1 (
|
||||
`a` int(11) DEFAULT NULL,
|
||||
`col432` bit(8) DEFAULT NULL,
|
||||
`col433` multipoint DEFAULT NULL,
|
||||
`col434` polygon DEFAULT NULL,
|
||||
`col433` geometry DEFAULT NULL,
|
||||
`col434` geometry DEFAULT NULL,
|
||||
`col435` decimal(50,17) unsigned DEFAULT NULL,
|
||||
`col436` geometry NOT NULL,
|
||||
`col437` tinyblob NOT NULL,
|
||||
`col438` multipolygon DEFAULT NULL,
|
||||
`col438` geometry DEFAULT NULL,
|
||||
`col439` mediumblob NOT NULL,
|
||||
`col440` tinyblob NOT NULL,
|
||||
`col441` double unsigned DEFAULT NULL
|
||||
);
|
||||
|
||||
CREATE TABLE t2 (
|
||||
`a` multipoint DEFAULT NULL,
|
||||
`a` geometry DEFAULT NULL,
|
||||
`col460` date DEFAULT NULL,
|
||||
`col461` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||
`col462` date NOT NULL,
|
||||
|
@ -34,7 +34,7 @@ CREATE TABLE t3 (
|
|||
`col579` bit(38) NOT NULL,
|
||||
`col580` varchar(93) NOT NULL,
|
||||
`col581` datetime DEFAULT NULL,
|
||||
`col583` multipolygon DEFAULT NULL,
|
||||
`col583` geometry DEFAULT NULL,
|
||||
`col584` bit(47) NOT NULL
|
||||
);
|
||||
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue