mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
5.2 merge
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
# Copyright (c) 2000, 2011, Oracle and/or its affiliates.
|
||||
# Copyright (c) 2009-2011, Monty Program Ab
|
||||
# Copyright (c) 2000, 2013, Oracle and/or its affiliates.
|
||||
# Copyright (c) 2009, 2013, Monty Program Ab
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the GNU Library General Public
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Copyright (c) 2007 MySQL AB, 2009, 2010 Sun Microsystems, Inc.
|
||||
# Copyright (c) 2007 MySQL AB
|
||||
#
|
||||
# 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
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Copyright (c) 2007, 2010, Oracle and/or its affiliates
|
||||
# Copyright (c) 2007, 2008 MySQL AB
|
||||
#
|
||||
# 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
|
||||
|
6
mysql-test/include/have_innodb_change_buffering.inc
Normal file
6
mysql-test/include/have_innodb_change_buffering.inc
Normal file
@ -0,0 +1,6 @@
|
||||
if (!`SHOW VARIABLES LIKE 'innodb_change_buffering_debug'`)
|
||||
{
|
||||
# innodb_change_buffering_debug is enabled by UNIV_DEBUG or
|
||||
# UNIV_IBUF_DEBUG
|
||||
--skip Test requires binary with UNIV_DEBUG enabled
|
||||
}
|
11
mysql-test/include/have_valgrind.inc
Normal file
11
mysql-test/include/have_valgrind.inc
Normal file
@ -0,0 +1,11 @@
|
||||
# include/have_valgrind.inc
|
||||
#
|
||||
# If some test should be run with only valgrind then skip it while running test
|
||||
# without it.
|
||||
#
|
||||
|
||||
if (!$VALGRIND_TEST) {
|
||||
--skip Need "--valgrind"
|
||||
}
|
||||
|
||||
|
@ -7,7 +7,6 @@
|
||||
# well as extra connections server_1_1, server_2_1, ...,
|
||||
# server_N_1. server_I and server_I_1 are connections to the same
|
||||
# server.
|
||||
# - Sets up @@auto_increment_increment and @@auto_increment_increment.
|
||||
# - Verifies that @@server_id of all servers are different.
|
||||
# - Calls RESET MASTER, RESET SLAVE, USE test, CHANGE MASTER, START SLAVE.
|
||||
# - Sets the connection to server_1 before exiting.
|
||||
@ -179,8 +178,6 @@ while ($_rpl_server)
|
||||
RESET MASTER;
|
||||
RESET SLAVE;
|
||||
}
|
||||
eval SET auto_increment_increment= $rpl_server_count;
|
||||
eval SET auto_increment_offset= $_rpl_server;
|
||||
|
||||
--dec $_rpl_server
|
||||
}
|
||||
|
66
mysql-test/include/search_pattern_in_file.inc
Normal file
66
mysql-test/include/search_pattern_in_file.inc
Normal file
@ -0,0 +1,66 @@
|
||||
# Purpose:
|
||||
# Simple search with Perl for a pattern in some file.
|
||||
#
|
||||
# The advantages compared to thinkable auxiliary constructs using the
|
||||
# mysqltest language and SQL are:
|
||||
# 1. We do not need a running MySQL server.
|
||||
# 2. SQL causes "noise" during debugging and increases the size of logs.
|
||||
# Perl code does not disturb at all.
|
||||
#
|
||||
# The environment variables SEARCH_FILE and SEARCH_PATTERN must be set
|
||||
# before sourcing this routine.
|
||||
#
|
||||
# In case of
|
||||
# - SEARCH_FILE and/or SEARCH_PATTERN is not set
|
||||
# - SEARCH_FILE cannot be opened
|
||||
# - SEARCH_FILE does not contain SEARCH_PATTERN
|
||||
# the test will abort immediate.
|
||||
# MTR will report something like
|
||||
# ....
|
||||
# worker[1] Using MTR_BUILD_THREAD 300, with reserved ports 13000..13009
|
||||
# main.1st [ pass ] 3
|
||||
# innodb.innodb_page_size [ fail ]
|
||||
# Test ended at 2011-11-11 18:15:58
|
||||
#
|
||||
# CURRENT_TEST: innodb.innodb_page_size
|
||||
# # ERROR: The file '<name>' does not contain the expected pattern <pattern>
|
||||
# mysqltest: In included file "./include/search_pattern_in_file.inc":
|
||||
# included from ./include/search_pattern_in_file.inc at line 36:
|
||||
# At line 25: command "perl" failed with error 255. my_errno=175
|
||||
#
|
||||
# The result from queries just before the failure was:
|
||||
# ...
|
||||
# - saving '<some path>' to '<some path>'
|
||||
# main.1st [ pass ] 2
|
||||
#
|
||||
# Typical use case (check invalid server startup options):
|
||||
# let $error_log= $MYSQLTEST_VARDIR/log/my_restart.err;
|
||||
# --error 0,1
|
||||
# --remove_file $error_log
|
||||
# let SEARCH_FILE= $error_log;
|
||||
# # Stop the server
|
||||
# let $restart_file= $MYSQLTEST_VARDIR/tmp/mysqld.1.expect;
|
||||
# --exec echo "wait" > $restart_file
|
||||
# --shutdown_server 10
|
||||
# --source include/wait_until_disconnected.inc
|
||||
#
|
||||
# --error 1
|
||||
# --exec $MYSQLD_CMD <whatever wrong setting> > $error_log 2>&1
|
||||
# # The server restart aborts
|
||||
# let SEARCH_PATTERN= \[ERROR\] Aborting;
|
||||
# --source include/search_pattern_in_file.inc
|
||||
#
|
||||
# Created: 2011-11-11 mleich
|
||||
#
|
||||
|
||||
perl;
|
||||
use strict;
|
||||
my $search_file= $ENV{'SEARCH_FILE'} or die "SEARCH_FILE not set";
|
||||
my $search_pattern= $ENV{'SEARCH_PATTERN'} or die "SEARCH_PATTERN not set";
|
||||
open(FILE, "$search_file") or die("Unable to open '$search_file': $!\n");
|
||||
read(FILE, my $file_content, 50000, 0);
|
||||
close(FILE);
|
||||
if ( not $file_content =~ m{$search_pattern} ) {
|
||||
die("# ERROR: The file '$search_file' does not contain the expected pattern $search_pattern\n->$file_content<-\n");
|
||||
}
|
||||
EOF
|
@ -1,5 +1,5 @@
|
||||
# -*- cperl -*-
|
||||
# Copyright (c) 2007, 2011, Oracle and/or its affiliates.
|
||||
# Copyright (c) 2007, 2012, 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
|
||||
|
@ -1,5 +1,5 @@
|
||||
# Copyright (C) 2008 MySQL AB
|
||||
# Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
# Copyright (c) 2006, 2010, 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
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (c) 2008, 2010, Oracle and/or its affiliates
|
||||
/* Copyright (c) 2008, 2012, 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
|
||||
|
@ -1,5 +1,5 @@
|
||||
# -*- cperl -*-
|
||||
# Copyright (c) 2005, 2011, Oracle and/or its affiliates
|
||||
# Copyright (c) 2005, 2012, 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
|
||||
|
@ -1,5 +1,5 @@
|
||||
# -*- cperl -*-
|
||||
# Copyright (C) 2004-2008 MySQL AB
|
||||
# Copyright (c) 2004, 2006, 2008 MySQL AB
|
||||
#
|
||||
# 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
|
||||
|
@ -1,7 +1,7 @@
|
||||
#!/usr/bin/perl
|
||||
# -*- cperl -*-
|
||||
|
||||
# Copyright (c) 2008, 2009 Sun Microsystems, Inc.
|
||||
# Copyright (c) 2008-2010 Sun Microsystems, Inc.
|
||||
# Use is subject to license terms.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
@ -4178,7 +4178,7 @@ sub mysqld_arguments ($$$$) {
|
||||
}
|
||||
|
||||
mtr_add_arg($args, "%s--key_buffer_size=1M", $prefix);
|
||||
mtr_add_arg($args, "%s--sort_buffer=256K", $prefix);
|
||||
mtr_add_arg($args, "%s--sort_buffer_size=256K", $prefix);
|
||||
mtr_add_arg($args, "%s--max_heap_table_size=1M", $prefix);
|
||||
|
||||
if ( $opt_ssl_supported )
|
||||
|
@ -1,8 +1,8 @@
|
||||
#!/usr/bin/perl
|
||||
# -*- cperl -*-
|
||||
|
||||
# Copyright (c) 2004, 2012, Oracle and/or its affiliates.
|
||||
# Copyright (c) 2009, 2011, Monty Program Ab
|
||||
# Copyright (c) 2004, 2013, Oracle and/or its affiliates.
|
||||
# Copyright (c) 2009, 2013, Monty Program Ab
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the GNU Library General Public
|
||||
@ -668,9 +668,11 @@ sub run_test_server ($$$) {
|
||||
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";
|
||||
if ( $result->is_failed() ) {
|
||||
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');
|
||||
@ -1914,7 +1916,17 @@ sub executable_setup () {
|
||||
}
|
||||
else
|
||||
{
|
||||
$exe_mysqltest= mtr_exe_exists("$path_client_bindir/mysqltest");
|
||||
if ( defined $ENV{'MYSQL_TEST'} )
|
||||
{
|
||||
$exe_mysqltest=$ENV{'MYSQL_TEST'};
|
||||
print "===========================================================\n";
|
||||
print "WARNING:The mysqltest binary is fetched from $exe_mysqltest\n";
|
||||
print "===========================================================\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
$exe_mysqltest= mtr_exe_exists("$path_client_bindir/mysqltest");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@ -3877,6 +3889,7 @@ my %old_env;
|
||||
|
||||
sub run_testcase ($$) {
|
||||
my ($tinfo, $server_socket)= @_;
|
||||
my $print_freq=20;
|
||||
|
||||
mtr_verbose("Running test:", $tinfo->{name});
|
||||
|
||||
@ -4054,6 +4067,7 @@ sub run_testcase ($$) {
|
||||
my $test= start_mysqltest($tinfo);
|
||||
# Set only when we have to keep waiting after expectedly died server
|
||||
my $keep_waiting_proc = 0;
|
||||
my $print_timeout= start_timer($print_freq * 60);
|
||||
|
||||
while (1)
|
||||
{
|
||||
@ -4078,7 +4092,22 @@ sub run_testcase ($$) {
|
||||
}
|
||||
if (! $keep_waiting_proc)
|
||||
{
|
||||
$proc= My::SafeProcess->wait_any_timeout($test_timeout);
|
||||
if($test_timeout > $print_timeout)
|
||||
{
|
||||
$proc= My::SafeProcess->wait_any_timeout($print_timeout);
|
||||
if ( $proc->{timeout} )
|
||||
{
|
||||
#print out that the test is still on
|
||||
mtr_print("Test still running: $tinfo->{name}");
|
||||
#reset the timer
|
||||
$print_timeout= start_timer($print_freq * 60);
|
||||
next;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$proc= My::SafeProcess->wait_any_timeout($test_timeout);
|
||||
}
|
||||
}
|
||||
|
||||
# Will be restored if we need to keep waiting
|
||||
|
@ -733,6 +733,24 @@ WHERE CAST(a as BINARY)=x'62736D697468'
|
||||
AND CAST(a AS BINARY)=x'65736D697468';
|
||||
a
|
||||
DROP TABLE t1;
|
||||
#
|
||||
# Bug#13581962 HIGH MEMORY USAGE ATTEMPT, THEN CRASH WITH
|
||||
# LONGTEXT, UNION, USER VARIABLE
|
||||
# Bug#14096619 UNABLE TO RESTORE DATABASE DUMP
|
||||
#
|
||||
CREATE TABLE t1 AS SELECT CONCAT(CAST(REPEAT('9', 1000) AS SIGNED)),
|
||||
CONCAT(CAST(REPEAT('9', 1000) AS UNSIGNED));
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect INTEGER value: '99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999'
|
||||
Warning 1292 Truncated incorrect INTEGER value: '99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999'
|
||||
SHOW CREATE TABLE t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`CONCAT(CAST(REPEAT('9', 1000) AS SIGNED))` varbinary(21) NOT NULL DEFAULT '',
|
||||
`CONCAT(CAST(REPEAT('9', 1000) AS UNSIGNED))` varbinary(21) NOT NULL DEFAULT ''
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
DROP TABLE t1;
|
||||
# End of test for Bug#13581962, Bug#14096619
|
||||
End of 5.1 tests
|
||||
select cast("2101-00-01 02:03:04" as datetime);
|
||||
cast("2101-00-01 02:03:04" as datetime)
|
||||
|
@ -2620,13 +2620,13 @@ Warning 1292 Truncated incorrect DECIMAL value: ''
|
||||
# and other crashes
|
||||
#
|
||||
CREATE TABLE t1 ( a TEXT );
|
||||
SELECT 'aaaaaaaaaaaaaa' INTO OUTFILE 'bug58165.txt';
|
||||
SELECT 'aaaaaaaaaaaaaa' INTO OUTFILE 'MYSQLTEST_VARDIR/tmp/bug58165.txt';;
|
||||
SELECT insert( substring_index( 'a', 'a', 'b' ), 1, 0, 'x' );
|
||||
insert( substring_index( 'a', 'a', 'b' ), 1, 0, 'x' )
|
||||
x
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect INTEGER value: 'b'
|
||||
LOAD DATA INFILE 'bug58165.txt' INTO TABLE t1;
|
||||
LOAD DATA INFILE 'MYSQLTEST_VARDIR/tmp/bug58165.txt' INTO TABLE t1;;
|
||||
SELECT * FROM t1;
|
||||
a
|
||||
aaaaaaaaaaaaaa
|
||||
|
@ -1604,6 +1604,38 @@ EXECUTE prep_stmt;
|
||||
f
|
||||
1
|
||||
DROP TABLE t1;
|
||||
#
|
||||
# Bug#13068506 - QUERY WITH GROUP BY ON NON-AGGR COLUMN RETURNS
|
||||
# WRONG RESULT
|
||||
#
|
||||
CREATE TABLE t1 (i1 int);
|
||||
INSERT INTO t1 VALUES (100), (101);
|
||||
CREATE TABLE t2 (i2 int, i3 int);
|
||||
INSERT INTO t2 VALUES (20,1),(10,2);
|
||||
CREATE TABLE t3 (i4 int(11));
|
||||
INSERT INTO t3 VALUES (1),(2);
|
||||
|
||||
SELECT (
|
||||
SELECT MAX( t2.i2 )
|
||||
FROM t3 RIGHT JOIN t2 ON ( t2.i3 = 2 )
|
||||
WHERE t2.i3 <> t1.i1
|
||||
) AS field1
|
||||
FROM t1;;
|
||||
field1
|
||||
20
|
||||
20
|
||||
|
||||
SELECT (
|
||||
SELECT MAX( t2.i2 )
|
||||
FROM t3 RIGHT JOIN t2 ON ( t2.i3 = 2 )
|
||||
WHERE t2.i3 <> t1.i1
|
||||
) AS field1
|
||||
FROM t1 GROUP BY field1;;
|
||||
field1
|
||||
20
|
||||
|
||||
drop table t1,t2,t3;
|
||||
# End of test for Bug#13068506
|
||||
End of 5.1 tests
|
||||
#
|
||||
# LP BUG#994392: Wrong result with RIGHT/LEFT JOIN and ALL subquery
|
||||
|
@ -1615,6 +1615,38 @@ EXECUTE prep_stmt;
|
||||
f
|
||||
1
|
||||
DROP TABLE t1;
|
||||
#
|
||||
# Bug#13068506 - QUERY WITH GROUP BY ON NON-AGGR COLUMN RETURNS
|
||||
# WRONG RESULT
|
||||
#
|
||||
CREATE TABLE t1 (i1 int);
|
||||
INSERT INTO t1 VALUES (100), (101);
|
||||
CREATE TABLE t2 (i2 int, i3 int);
|
||||
INSERT INTO t2 VALUES (20,1),(10,2);
|
||||
CREATE TABLE t3 (i4 int(11));
|
||||
INSERT INTO t3 VALUES (1),(2);
|
||||
|
||||
SELECT (
|
||||
SELECT MAX( t2.i2 )
|
||||
FROM t3 RIGHT JOIN t2 ON ( t2.i3 = 2 )
|
||||
WHERE t2.i3 <> t1.i1
|
||||
) AS field1
|
||||
FROM t1;;
|
||||
field1
|
||||
20
|
||||
20
|
||||
|
||||
SELECT (
|
||||
SELECT MAX( t2.i2 )
|
||||
FROM t3 RIGHT JOIN t2 ON ( t2.i3 = 2 )
|
||||
WHERE t2.i3 <> t1.i1
|
||||
) AS field1
|
||||
FROM t1 GROUP BY field1;;
|
||||
field1
|
||||
20
|
||||
|
||||
drop table t1,t2,t3;
|
||||
# End of test for Bug#13068506
|
||||
End of 5.1 tests
|
||||
#
|
||||
# LP BUG#994392: Wrong result with RIGHT/LEFT JOIN and ALL subquery
|
||||
|
@ -2073,7 +2073,7 @@ DROP TABLE IF EXISTS `v2`;
|
||||
SET @saved_cs_client = @@character_set_client;
|
||||
SET character_set_client = utf8;
|
||||
/*!50001 CREATE TABLE `v2` (
|
||||
`a` varchar(30)
|
||||
`a` tinyint NOT NULL
|
||||
) ENGINE=MyISAM */;
|
||||
SET character_set_client = @saved_cs_client;
|
||||
/*!50001 DROP TABLE IF EXISTS `v2`*/;
|
||||
@ -2167,7 +2167,7 @@ DROP TABLE IF EXISTS `v1`;
|
||||
SET @saved_cs_client = @@character_set_client;
|
||||
SET character_set_client = utf8;
|
||||
/*!50001 CREATE TABLE `v1` (
|
||||
`a` int(11)
|
||||
`a` tinyint NOT NULL
|
||||
) ENGINE=MyISAM */;
|
||||
SET character_set_client = @saved_cs_client;
|
||||
/*!50001 DROP TABLE IF EXISTS `v1`*/;
|
||||
@ -2241,7 +2241,7 @@ DROP TABLE IF EXISTS `v2`;
|
||||
SET @saved_cs_client = @@character_set_client;
|
||||
SET character_set_client = utf8;
|
||||
/*!50001 CREATE TABLE `v2` (
|
||||
`a` varchar(30)
|
||||
`a` tinyint NOT NULL
|
||||
) ENGINE=MyISAM */;
|
||||
SET character_set_client = @saved_cs_client;
|
||||
/*!50001 DROP TABLE IF EXISTS `v2`*/;
|
||||
@ -2355,9 +2355,9 @@ DROP TABLE IF EXISTS `v1`;
|
||||
SET @saved_cs_client = @@character_set_client;
|
||||
SET character_set_client = utf8;
|
||||
/*!50001 CREATE TABLE `v1` (
|
||||
`a` int(11),
|
||||
`b` int(11),
|
||||
`c` varchar(30)
|
||||
`a` tinyint NOT NULL,
|
||||
`b` tinyint NOT NULL,
|
||||
`c` tinyint NOT NULL
|
||||
) ENGINE=MyISAM */;
|
||||
SET character_set_client = @saved_cs_client;
|
||||
DROP TABLE IF EXISTS `v2`;
|
||||
@ -2365,7 +2365,7 @@ DROP TABLE IF EXISTS `v2`;
|
||||
SET @saved_cs_client = @@character_set_client;
|
||||
SET character_set_client = utf8;
|
||||
/*!50001 CREATE TABLE `v2` (
|
||||
`a` int(11)
|
||||
`a` tinyint NOT NULL
|
||||
) ENGINE=MyISAM */;
|
||||
SET character_set_client = @saved_cs_client;
|
||||
DROP TABLE IF EXISTS `v3`;
|
||||
@ -2373,9 +2373,9 @@ DROP TABLE IF EXISTS `v3`;
|
||||
SET @saved_cs_client = @@character_set_client;
|
||||
SET character_set_client = utf8;
|
||||
/*!50001 CREATE TABLE `v3` (
|
||||
`a` int(11),
|
||||
`b` int(11),
|
||||
`c` varchar(30)
|
||||
`a` tinyint NOT NULL,
|
||||
`b` tinyint NOT NULL,
|
||||
`c` tinyint NOT NULL
|
||||
) ENGINE=MyISAM */;
|
||||
SET character_set_client = @saved_cs_client;
|
||||
/*!50001 DROP TABLE IF EXISTS `v1`*/;
|
||||
@ -3112,9 +3112,9 @@ DROP TABLE IF EXISTS `v0`;
|
||||
SET @saved_cs_client = @@character_set_client;
|
||||
SET character_set_client = utf8;
|
||||
/*!50001 CREATE TABLE `v0` (
|
||||
`a` int(11),
|
||||
`b` varchar(32),
|
||||
`c` varchar(32)
|
||||
`a` tinyint NOT NULL,
|
||||
`b` tinyint NOT NULL,
|
||||
`c` tinyint NOT NULL
|
||||
) ENGINE=MyISAM */;
|
||||
SET character_set_client = @saved_cs_client;
|
||||
DROP TABLE IF EXISTS `v1`;
|
||||
@ -3122,9 +3122,9 @@ DROP TABLE IF EXISTS `v1`;
|
||||
SET @saved_cs_client = @@character_set_client;
|
||||
SET character_set_client = utf8;
|
||||
/*!50001 CREATE TABLE `v1` (
|
||||
`a` int(11),
|
||||
`b` varchar(32),
|
||||
`c` varchar(32)
|
||||
`a` tinyint NOT NULL,
|
||||
`b` tinyint NOT NULL,
|
||||
`c` tinyint NOT NULL
|
||||
) ENGINE=MyISAM */;
|
||||
SET character_set_client = @saved_cs_client;
|
||||
DROP TABLE IF EXISTS `v2`;
|
||||
@ -3132,9 +3132,9 @@ DROP TABLE IF EXISTS `v2`;
|
||||
SET @saved_cs_client = @@character_set_client;
|
||||
SET character_set_client = utf8;
|
||||
/*!50001 CREATE TABLE `v2` (
|
||||
`a` int(11),
|
||||
`b` varchar(32),
|
||||
`c` varchar(32)
|
||||
`a` tinyint NOT NULL,
|
||||
`b` tinyint NOT NULL,
|
||||
`c` tinyint NOT NULL
|
||||
) ENGINE=MyISAM */;
|
||||
SET character_set_client = @saved_cs_client;
|
||||
|
||||
@ -3514,7 +3514,7 @@ DROP TABLE IF EXISTS `v1`;
|
||||
SET @saved_cs_client = @@character_set_client;
|
||||
SET character_set_client = utf8;
|
||||
/*!50001 CREATE TABLE `v1` (
|
||||
`id` int(11)
|
||||
`id` tinyint NOT NULL
|
||||
) ENGINE=MyISAM */;
|
||||
SET character_set_client = @saved_cs_client;
|
||||
|
||||
@ -3574,7 +3574,7 @@ USE `mysqldump_views`;
|
||||
SET @saved_cs_client = @@character_set_client;
|
||||
SET character_set_client = utf8;
|
||||
/*!50001 CREATE TABLE `nasishnasifu` (
|
||||
`id` bigint(20) unsigned
|
||||
`id` tinyint NOT NULL
|
||||
) ENGINE=MyISAM */;
|
||||
SET character_set_client = @saved_cs_client;
|
||||
|
||||
@ -3967,7 +3967,7 @@ DROP TABLE IF EXISTS `v2`;
|
||||
SET @saved_cs_client = @@character_set_client;
|
||||
SET character_set_client = utf8;
|
||||
/*!50001 CREATE TABLE `v2` (
|
||||
`c` int(11)
|
||||
`c` tinyint NOT NULL
|
||||
) ENGINE=MyISAM */;
|
||||
SET character_set_client = @saved_cs_client;
|
||||
/*!50001 DROP TABLE IF EXISTS `v2`*/;
|
||||
@ -4384,7 +4384,7 @@ DROP TABLE IF EXISTS `v1`;
|
||||
SET @saved_cs_client = @@character_set_client;
|
||||
SET character_set_client = utf8;
|
||||
/*!50001 CREATE TABLE `v1` (
|
||||
`id` int(11)
|
||||
`id` tinyint NOT NULL
|
||||
) ENGINE=MyISAM */;
|
||||
SET character_set_client = @saved_cs_client;
|
||||
|
||||
|
@ -663,10 +663,10 @@ test.t1 check Error Incorrect information in file: './test/t1.frm'
|
||||
test.t1 check error Corrupt
|
||||
SELECT * FROM t1;
|
||||
ERROR HY000: File './test/t1.par' not found (Errcode: 2)
|
||||
# Note that it is currently impossible to drop a partitioned table
|
||||
# without the .par file
|
||||
# Note that we will remove the frm file when we detect that
|
||||
# .par file has been deleted.
|
||||
DROP TABLE t1;
|
||||
ERROR HY000: File './test/t1.par' not found (Errcode: 2)
|
||||
ERROR 42S02: Unknown table 't1'
|
||||
#
|
||||
# Bug#49477: Assertion `0' failed in ha_partition.cc:5530
|
||||
# with temporary table and partitions
|
||||
|
@ -348,9 +348,9 @@ select @a:=f3, count(f3) from t1 group by 1 desc;
|
||||
1.5 4
|
||||
select @a:=f4, count(f4) from t1 group by 1 desc;
|
||||
@a:=f4 count(f4)
|
||||
1.6 1
|
||||
1.6 1
|
||||
1.6 2
|
||||
4.6 1
|
||||
3.6 2
|
||||
2.6 1
|
||||
1.6 4
|
||||
drop table t1;
|
||||
create table t1 (f1 int);
|
||||
|
@ -21,11 +21,9 @@ reset master;
|
||||
update t1 set a=2 /* will be "killed" after work has been done */;
|
||||
|
||||
# a proof the query is binlogged with no error
|
||||
#todo: introduce a suite private macro that provides numeric values
|
||||
# for some constants like the offset of the first real event
|
||||
# that is different between severs versions.
|
||||
--let $binlog_load_data= query_get_value(SHOW BINLOG EVENTS, Pos, 2)
|
||||
let $MYSQLD_DATADIR= `select @@datadir`;
|
||||
--exec $MYSQL_BINLOG --force-if-open --start-position=$binlog_start_pos $MYSQLD_DATADIR/master-bin.000001 > $MYSQLTEST_VARDIR/tmp/binlog_killed_bug27571.binlog
|
||||
--exec $MYSQL_BINLOG --force-if-open --start-position=$binlog_load_data $MYSQLD_DATADIR/master-bin.000001 > $MYSQLTEST_VARDIR/tmp/binlog_killed_bug27571.binlog
|
||||
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
|
||||
eval select
|
||||
(@a:=load_file("$MYSQLTEST_VARDIR/tmp/binlog_killed_bug27571.binlog"))
|
||||
@ -49,11 +47,12 @@ reset master;
|
||||
load data infile '../../std_data/rpl_loaddata.dat' into table t2 /* will be "killed" in the middle */;
|
||||
|
||||
|
||||
--let $binlog_load_data= query_get_value(SHOW BINLOG EVENTS, Pos, 2)
|
||||
# a proof the query is binlogged with an error
|
||||
|
||||
source include/show_binlog_events.inc;
|
||||
|
||||
--exec $MYSQL_BINLOG --force-if-open --start-position=98 $MYSQLD_DATADIR/master-bin.000001 > $MYSQLTEST_VARDIR/tmp/binlog_killed_bug27571.binlog
|
||||
--mkdir $MYSQLTEST_VARDIR/tmp/binlog_killed_bug27571
|
||||
--exec $MYSQL_BINLOG --local-load=$MYSQLTEST_VARDIR/tmp/binlog_killed_bug27571 --force-if-open --start-position=$binlog_load_data $MYSQLD_DATADIR/master-bin.000001 > $MYSQLTEST_VARDIR/tmp/binlog_killed_bug27571.binlog
|
||||
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
|
||||
eval select
|
||||
(@a:=load_file("$MYSQLTEST_VARDIR/tmp/binlog_killed_bug27571.binlog"))
|
||||
@ -65,6 +64,8 @@ eval select $error_code /* must return 0 to mean the killed query is in */;
|
||||
# cleanup for the sub-case
|
||||
remove_file $MYSQLTEST_VARDIR/tmp/binlog_killed_bug27571.binlog;
|
||||
|
||||
--remove_files_wildcard $MYSQLTEST_VARDIR/tmp/binlog_killed_bug27571 *
|
||||
--rmdir $MYSQLTEST_VARDIR/tmp/binlog_killed_bug27571
|
||||
|
||||
drop table t1,t2;
|
||||
|
||||
|
@ -66,7 +66,7 @@ NULL mysql general_log user_host 2 NULL NO mediumtext 16777215 16777215 NULL NUL
|
||||
NULL mysql help_category help_category_id 1 NULL NO smallint NULL NULL 5 0 NULL NULL NULL smallint(5) unsigned PRI select,insert,update,references
|
||||
NULL mysql help_category name 2 NULL NO char 64 192 NULL NULL NULL utf8 utf8_general_ci char(64) UNI select,insert,update,references
|
||||
NULL mysql help_category parent_category_id 3 NULL YES smallint NULL NULL 5 0 NULL NULL NULL smallint(5) unsigned select,insert,update,references
|
||||
NULL mysql help_category url 4 NULL NO char 128 384 NULL NULL NULL utf8 utf8_general_ci char(128) select,insert,update,references
|
||||
NULL mysql help_category url 4 NULL NO text 65535 65535 NULL NULL NULL utf8 utf8_general_ci text select,insert,update,references
|
||||
NULL mysql help_keyword help_keyword_id 1 NULL NO int NULL NULL 10 0 NULL NULL NULL int(10) unsigned PRI select,insert,update,references
|
||||
NULL mysql help_keyword name 2 NULL NO char 64 192 NULL NULL NULL utf8 utf8_general_ci char(64) UNI select,insert,update,references
|
||||
NULL mysql help_relation help_keyword_id 2 NULL NO int NULL NULL 10 0 NULL NULL NULL int(10) unsigned PRI select,insert,update,references
|
||||
@ -76,7 +76,7 @@ NULL mysql help_topic example 5 NULL NO text 65535 65535 NULL NULL NULL utf8 utf
|
||||
NULL mysql help_topic help_category_id 3 NULL NO smallint NULL NULL 5 0 NULL NULL NULL smallint(5) unsigned select,insert,update,references
|
||||
NULL mysql help_topic help_topic_id 1 NULL NO int NULL NULL 10 0 NULL NULL NULL int(10) unsigned PRI select,insert,update,references
|
||||
NULL mysql help_topic name 2 NULL NO char 64 192 NULL NULL NULL utf8 utf8_general_ci char(64) UNI select,insert,update,references
|
||||
NULL mysql help_topic url 6 NULL NO char 128 384 NULL NULL NULL utf8 utf8_general_ci char(128) select,insert,update,references
|
||||
NULL mysql help_topic url 6 NULL NO text 65535 65535 NULL NULL NULL utf8 utf8_general_ci text select,insert,update,references
|
||||
NULL mysql host Alter_priv 12 N NO enum 1 3 NULL NULL NULL utf8 utf8_general_ci enum('N','Y') select,insert,update,references
|
||||
NULL mysql host Alter_routine_priv 18 N NO enum 1 3 NULL NULL NULL utf8 utf8_general_ci enum('N','Y') select,insert,update,references
|
||||
NULL mysql host Create_priv 7 N NO enum 1 3 NULL NULL NULL utf8 utf8_general_ci enum('N','Y') select,insert,update,references
|
||||
@ -351,7 +351,7 @@ NULL mysql general_log server_id int NULL NULL NULL NULL int(10) unsigned
|
||||
NULL mysql help_category help_category_id smallint NULL NULL NULL NULL smallint(5) unsigned
|
||||
3.0000 mysql help_category name char 64 192 utf8 utf8_general_ci char(64)
|
||||
NULL mysql help_category parent_category_id smallint NULL NULL NULL NULL smallint(5) unsigned
|
||||
3.0000 mysql help_category url char 128 384 utf8 utf8_general_ci char(128)
|
||||
1.0000 mysql help_category url text 65535 65535 utf8 utf8_general_ci text
|
||||
NULL mysql help_keyword help_keyword_id int NULL NULL NULL NULL int(10) unsigned
|
||||
3.0000 mysql help_keyword name char 64 192 utf8 utf8_general_ci char(64)
|
||||
NULL mysql help_relation help_topic_id int NULL NULL NULL NULL int(10) unsigned
|
||||
@ -361,7 +361,7 @@ NULL mysql help_topic help_topic_id int NULL NULL NULL NULL int(10) unsigned
|
||||
NULL mysql help_topic help_category_id smallint NULL NULL NULL NULL smallint(5) unsigned
|
||||
1.0000 mysql help_topic description text 65535 65535 utf8 utf8_general_ci text
|
||||
1.0000 mysql help_topic example text 65535 65535 utf8 utf8_general_ci text
|
||||
3.0000 mysql help_topic url char 128 384 utf8 utf8_general_ci char(128)
|
||||
1.0000 mysql help_topic url text 65535 65535 utf8 utf8_general_ci text
|
||||
3.0000 mysql host Host char 60 180 utf8 utf8_bin char(60)
|
||||
3.0000 mysql host Db char 64 192 utf8 utf8_bin char(64)
|
||||
3.0000 mysql host Select_priv enum 1 3 utf8 utf8_general_ci enum('N','Y')
|
||||
|
@ -66,7 +66,7 @@ NULL mysql general_log user_host 2 NULL NO mediumtext 16777215 16777215 NULL NUL
|
||||
NULL mysql help_category help_category_id 1 NULL NO smallint NULL NULL 5 0 NULL NULL NULL smallint(5) unsigned PRI
|
||||
NULL mysql help_category name 2 NULL NO char 64 192 NULL NULL NULL utf8 utf8_general_ci char(64) UNI
|
||||
NULL mysql help_category parent_category_id 3 NULL YES smallint NULL NULL 5 0 NULL NULL NULL smallint(5) unsigned
|
||||
NULL mysql help_category url 4 NULL NO char 128 384 NULL NULL NULL utf8 utf8_general_ci char(128)
|
||||
NULL mysql help_category url 4 NULL NO text 65535 65535 NULL NULL NULL utf8 utf8_general_ci text
|
||||
NULL mysql help_keyword help_keyword_id 1 NULL NO int NULL NULL 10 0 NULL NULL NULL int(10) unsigned PRI
|
||||
NULL mysql help_keyword name 2 NULL NO char 64 192 NULL NULL NULL utf8 utf8_general_ci char(64) UNI
|
||||
NULL mysql help_relation help_keyword_id 2 NULL NO int NULL NULL 10 0 NULL NULL NULL int(10) unsigned PRI
|
||||
@ -76,7 +76,7 @@ NULL mysql help_topic example 5 NULL NO text 65535 65535 NULL NULL NULL utf8 utf
|
||||
NULL mysql help_topic help_category_id 3 NULL NO smallint NULL NULL 5 0 NULL NULL NULL smallint(5) unsigned
|
||||
NULL mysql help_topic help_topic_id 1 NULL NO int NULL NULL 10 0 NULL NULL NULL int(10) unsigned PRI
|
||||
NULL mysql help_topic name 2 NULL NO char 64 192 NULL NULL NULL utf8 utf8_general_ci char(64) UNI
|
||||
NULL mysql help_topic url 6 NULL NO char 128 384 NULL NULL NULL utf8 utf8_general_ci char(128)
|
||||
NULL mysql help_topic url 6 NULL NO text 65535 65535 NULL NULL NULL utf8 utf8_general_ci text
|
||||
NULL mysql host Alter_priv 12 N NO enum 1 3 NULL NULL NULL utf8 utf8_general_ci enum('N','Y')
|
||||
NULL mysql host Alter_routine_priv 18 N NO enum 1 3 NULL NULL NULL utf8 utf8_general_ci enum('N','Y')
|
||||
NULL mysql host Create_priv 7 N NO enum 1 3 NULL NULL NULL utf8 utf8_general_ci enum('N','Y')
|
||||
@ -197,7 +197,7 @@ NULL mysql user Lock_tables_priv 21 N NO enum 1 3 NULL NULL NULL utf8 utf8_gener
|
||||
NULL mysql user max_connections 38 0 NO int NULL NULL 10 0 NULL NULL NULL int(11) unsigned
|
||||
NULL mysql user max_questions 36 0 NO int NULL NULL 10 0 NULL NULL NULL int(11) unsigned
|
||||
NULL mysql user max_updates 37 0 NO int NULL NULL 10 0 NULL NULL NULL int(11) unsigned
|
||||
NULL mysql user max_user_connections 39 0 NO int NULL NULL 10 0 NULL NULL NULL int(11) unsigned
|
||||
NULL mysql user max_user_connections 39 0 NO int NULL NULL 10 0 NULL NULL NULL int(11)
|
||||
NULL mysql user Password 3 NO char 41 41 NULL NULL NULL latin1 latin1_bin char(41)
|
||||
NULL mysql user plugin 40 NO char 60 60 NULL NULL NULL latin1 latin1_swedish_ci char(60)
|
||||
NULL mysql user Process_priv 12 N NO enum 1 3 NULL NULL NULL utf8 utf8_general_ci enum('N','Y')
|
||||
@ -351,7 +351,7 @@ NULL mysql general_log server_id int NULL NULL NULL NULL int(10) unsigned
|
||||
NULL mysql help_category help_category_id smallint NULL NULL NULL NULL smallint(5) unsigned
|
||||
3.0000 mysql help_category name char 64 192 utf8 utf8_general_ci char(64)
|
||||
NULL mysql help_category parent_category_id smallint NULL NULL NULL NULL smallint(5) unsigned
|
||||
3.0000 mysql help_category url char 128 384 utf8 utf8_general_ci char(128)
|
||||
1.0000 mysql help_category url text 65535 65535 utf8 utf8_general_ci text
|
||||
NULL mysql help_keyword help_keyword_id int NULL NULL NULL NULL int(10) unsigned
|
||||
3.0000 mysql help_keyword name char 64 192 utf8 utf8_general_ci char(64)
|
||||
NULL mysql help_relation help_topic_id int NULL NULL NULL NULL int(10) unsigned
|
||||
@ -361,7 +361,7 @@ NULL mysql help_topic help_topic_id int NULL NULL NULL NULL int(10) unsigned
|
||||
NULL mysql help_topic help_category_id smallint NULL NULL NULL NULL smallint(5) unsigned
|
||||
1.0000 mysql help_topic description text 65535 65535 utf8 utf8_general_ci text
|
||||
1.0000 mysql help_topic example text 65535 65535 utf8 utf8_general_ci text
|
||||
3.0000 mysql help_topic url char 128 384 utf8 utf8_general_ci char(128)
|
||||
1.0000 mysql help_topic url text 65535 65535 utf8 utf8_general_ci text
|
||||
3.0000 mysql host Host char 60 180 utf8 utf8_bin char(60)
|
||||
3.0000 mysql host Db char 64 192 utf8 utf8_bin char(64)
|
||||
3.0000 mysql host Select_priv enum 1 3 utf8 utf8_general_ci enum('N','Y')
|
||||
@ -499,6 +499,6 @@ NULL mysql time_zone_transition_type Is_DST tinyint NULL NULL NULL NULL tinyint(
|
||||
NULL mysql user max_questions int NULL NULL NULL NULL int(11) unsigned
|
||||
NULL mysql user max_updates int NULL NULL NULL NULL int(11) unsigned
|
||||
NULL mysql user max_connections int NULL NULL NULL NULL int(11) unsigned
|
||||
NULL mysql user max_user_connections int NULL NULL NULL NULL int(11) unsigned
|
||||
NULL mysql user max_user_connections int NULL NULL NULL NULL int(11)
|
||||
1.0000 mysql user plugin char 60 60 latin1 latin1_swedish_ci char(60)
|
||||
1.0000 mysql user auth_string text 65535 65535 utf8 utf8_bin text
|
||||
|
@ -133,7 +133,7 @@ TABLE_NAME help_category
|
||||
TABLE_TYPE BASE TABLE
|
||||
ENGINE MYISAM_OR_MARIA
|
||||
VERSION 10
|
||||
ROW_FORMAT Fixed
|
||||
ROW_FORMAT Dynamic
|
||||
TABLE_ROWS #TBLR#
|
||||
AVG_ROW_LENGTH #ARL#
|
||||
DATA_LENGTH #DL#
|
||||
|
@ -133,7 +133,7 @@ TABLE_NAME help_category
|
||||
TABLE_TYPE BASE TABLE
|
||||
ENGINE MYISAM_OR_MARIA
|
||||
VERSION 10
|
||||
ROW_FORMAT Fixed
|
||||
ROW_FORMAT Dynamic
|
||||
TABLE_ROWS #TBLR#
|
||||
AVG_ROW_LENGTH #ARL#
|
||||
DATA_LENGTH #DL#
|
||||
@ -678,7 +678,7 @@ TABLE_NAME help_category
|
||||
TABLE_TYPE BASE TABLE
|
||||
ENGINE MYISAM_OR_MARIA
|
||||
VERSION 10
|
||||
ROW_FORMAT Fixed
|
||||
ROW_FORMAT Dynamic
|
||||
TABLE_ROWS #TBLR#
|
||||
AVG_ROW_LENGTH #ARL#
|
||||
DATA_LENGTH #DL#
|
||||
|
@ -7,6 +7,10 @@ if (`select count(*)=0 from information_schema.global_variables where variable_n
|
||||
--skip Test requires InnoDB built with UNIV_DEBUG definition.
|
||||
}
|
||||
|
||||
# Don't test under valgrind, undo slots of the previous test might exist still
|
||||
# and cause unstable result.
|
||||
--source include/not_valgrind.inc
|
||||
|
||||
call mtr.add_suppression("InnoDB: Warning: cannot find a free slot for an undo log. Do you have too");
|
||||
|
||||
--disable_query_log
|
||||
|
@ -7,6 +7,10 @@ if (`select count(*)=0 from information_schema.global_variables where variable_n
|
||||
--skip Test requires InnoDB built with UNIV_DEBUG definition.
|
||||
}
|
||||
|
||||
# Don't test under valgrind, undo slots of the previous test might exist still
|
||||
# and cause unstable result.
|
||||
--source include/not_valgrind.inc
|
||||
|
||||
call mtr.add_suppression("InnoDB: Warning: cannot find a free slot for an undo log. Do you have too");
|
||||
|
||||
--disable_query_log
|
||||
|
@ -1,6 +1,18 @@
|
||||
*** Set up circular replication on four servers ***
|
||||
include/rpl_init.inc [topology=1->2->3->4->1]
|
||||
|
||||
[connection server_4]
|
||||
SET auto_increment_increment= 4;
|
||||
SET auto_increment_offset= 4;
|
||||
[connection server_3]
|
||||
SET auto_increment_increment= 4;
|
||||
SET auto_increment_offset= 3;
|
||||
[connection server_2]
|
||||
SET auto_increment_increment= 4;
|
||||
SET auto_increment_offset= 2;
|
||||
[connection server_1]
|
||||
SET auto_increment_increment= 4;
|
||||
SET auto_increment_offset= 1;
|
||||
*** Preparing data ***
|
||||
CREATE TABLE t1 (a INT NOT NULL AUTO_INCREMENT, b VARCHAR(100), c INT NOT NULL, PRIMARY KEY(a)) ENGINE=MyISAM;
|
||||
CREATE TABLE t2 (a INT NOT NULL AUTO_INCREMENT, b VARCHAR(100), c INT NOT NULL, PRIMARY KEY(a)) ENGINE=InnoDB;
|
||||
|
15
mysql-test/suite/rpl/r/rpl_dump_events_twice_bug.result
Normal file
15
mysql-test/suite/rpl/r/rpl_dump_events_twice_bug.result
Normal file
@ -0,0 +1,15 @@
|
||||
include/master-slave.inc
|
||||
[connection master]
|
||||
CALL mtr.add_suppression("Failed to read an event from active binlog.*");
|
||||
SET @debug_saved= @@GLOBAL.DEBUG;
|
||||
CREATE TABLE t1(c1 INT);
|
||||
INSERT INTO t1 VALUES(1);
|
||||
[connection master]
|
||||
SET GLOBAL debug='+d,dump_fake_io_error';
|
||||
INSERT INTO t1 VALUES(2);
|
||||
INSERT INTO t1 VALUES(3);
|
||||
include/diff_tables.inc [master:t1, slave:t1]
|
||||
[connection master]
|
||||
SET @@GLOBAL.DEBUG= @debug_saved;
|
||||
DROP TABLE t1;
|
||||
include/rpl_end.inc
|
@ -32,5 +32,5 @@ SELECT COUNT(*) FROM mysqltest.t1;
|
||||
COUNT(*)
|
||||
2
|
||||
DROP DATABASE mysqltest;
|
||||
DROP TABLE test.t1;
|
||||
DROP TABLE IF EXISTS test.t1;
|
||||
include/rpl_end.inc
|
||||
|
@ -3,7 +3,7 @@ include/master-slave.inc
|
||||
create table if not exists t1 (n int);
|
||||
drop table t1;
|
||||
call mtr.add_suppression ("Slave I/O: Got fatal error 1236 from master when reading data from binary");
|
||||
call mtr.add_suppression ("Error in Log_event::read_log_event");
|
||||
CALL mtr.add_suppression("Failed to read an event from active binlog.*");
|
||||
show master status;
|
||||
File Position Binlog_Do_DB Binlog_Ignore_DB
|
||||
master-bin.000001 # <Binlog_Do_DB> <Binlog_Ignore_DB>
|
||||
|
14
mysql-test/suite/rpl/r/rpl_lost_events_on_rotate.result
Normal file
14
mysql-test/suite/rpl/r/rpl_lost_events_on_rotate.result
Normal file
@ -0,0 +1,14 @@
|
||||
include/master-slave.inc
|
||||
[connection master]
|
||||
SET @debug_saved= @@GLOBAL.DEBUG;
|
||||
CREATE TABLE t (i INT);
|
||||
SET GLOBAL DEBUG= "d,wait_after_binlog_EOF";
|
||||
INSERT INTO t VALUES (1);
|
||||
INSERT INTO t VALUES (2);
|
||||
FLUSH LOGS;
|
||||
SET DEBUG_SYNC= 'now SIGNAL signal.rotate_finished';
|
||||
include/diff_tables.inc [master:t,slave:t]
|
||||
SET @@GLOBAL.DEBUG= @debug_saved;
|
||||
SET DEBUG_SYNC= 'RESET';
|
||||
DROP TABLE t;
|
||||
include/rpl_end.inc
|
@ -27,12 +27,6 @@ n
|
||||
3
|
||||
4
|
||||
include/check_slave_param.inc [Exec_Master_Log_Pos]
|
||||
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
|
||||
@ -54,6 +48,18 @@ START SLAVE;
|
||||
START SLAVE UNTIL MASTER_LOG_FILE='master-bin.000001', MASTER_LOG_POS=MASTER_LOG_POS;
|
||||
Warnings:
|
||||
Note 1254 Slave is already running
|
||||
include/stop_slave.inc
|
||||
RESET SLAVE;
|
||||
include/start_slave.inc
|
||||
Warnings:
|
||||
Note 1254 Slave is already running
|
||||
include/rpl_reset.inc
|
||||
CREATE TABLE t1 (a INT);
|
||||
INSERT INTO t1 VALUES (1);
|
||||
include/stop_slave_sql.inc
|
||||
INSERT INTO t1 VALUES (2);
|
||||
INSERT INTO t1 VALUES (3);
|
||||
include/sync_slave_io_with_master.inc
|
||||
include/wait_for_slave_sql_to_stop.inc
|
||||
include/assert.inc [table t1 should have two rows.]
|
||||
include/start_slave.inc
|
||||
DROP TABLE t1;
|
||||
include/rpl_end.inc
|
||||
|
@ -94,17 +94,4 @@ one
|
||||
1
|
||||
drop table t1;
|
||||
start slave;
|
||||
include/rpl_reset.inc
|
||||
drop table if exists t1;
|
||||
stop slave;
|
||||
flush logs;
|
||||
flush logs;
|
||||
reset slave;
|
||||
start slave until master_log_file='master-bin.000001', master_log_pos=294 /* to stop right before DROP */;
|
||||
include/wait_for_slave_sql_to_stop.inc
|
||||
show tables /* t1 must exist */;
|
||||
Tables_in_test
|
||||
t1
|
||||
drop table t1;
|
||||
stop slave;
|
||||
include/rpl_end.inc
|
||||
|
@ -12,5 +12,3 @@
|
||||
|
||||
rpl_row_create_table : Bug#11759274 Feb 27 2010 andrei failed different way than earlier with bug#45576
|
||||
rpl_get_master_version_and_clock : Bug#11766137 Jan 05 2011 joro Valgrind warnings rpl_get_master_version_and_clock
|
||||
rpl_stm_until : BUG#59543 Jan 26 2011 alfranio Replication test from eits suite rpl_row_until times out
|
||||
rpl_row_until @macosx : BUG#15965353 RPL.RPL_ROW_UNTIL FAILS ON PB2 , PLATFORM= MACOSX10.6 X86_64 MAX
|
||||
|
@ -20,6 +20,18 @@
|
||||
--source include/rpl_init.inc
|
||||
--echo
|
||||
|
||||
#set auto inc variables at each server
|
||||
--let $_rpl_server= $rpl_server_count
|
||||
while ($_rpl_server)
|
||||
{
|
||||
--let $rpl_connection_name= server_$_rpl_server
|
||||
--source include/rpl_connection.inc
|
||||
eval SET auto_increment_increment= $rpl_server_count;
|
||||
eval SET auto_increment_offset= $_rpl_server;
|
||||
|
||||
--dec $_rpl_server
|
||||
}
|
||||
|
||||
# Preparing data.
|
||||
--echo *** Preparing data ***
|
||||
--connection server_1
|
||||
|
28
mysql-test/suite/rpl/t/rpl_dump_events_twice_bug.test
Normal file
28
mysql-test/suite/rpl/t/rpl_dump_events_twice_bug.test
Normal file
@ -0,0 +1,28 @@
|
||||
#
|
||||
# Verify dump thread can send events in active file, correctly after
|
||||
# encountering an IO error.
|
||||
#
|
||||
--source include/have_debug.inc
|
||||
--source include/master-slave.inc
|
||||
|
||||
CALL mtr.add_suppression("Failed to read an event from active binlog.*");
|
||||
SET @debug_saved= @@GLOBAL.DEBUG;
|
||||
|
||||
CREATE TABLE t1(c1 INT);
|
||||
INSERT INTO t1 VALUES(1);
|
||||
|
||||
--sync_slave_with_master
|
||||
|
||||
--source include/rpl_connection_master.inc
|
||||
SET GLOBAL debug='+d,dump_fake_io_error';
|
||||
INSERT INTO t1 VALUES(2);
|
||||
INSERT INTO t1 VALUES(3);
|
||||
|
||||
--sync_slave_with_master
|
||||
--let $diff_tables= master:t1, slave:t1
|
||||
--source include/diff_tables.inc
|
||||
|
||||
--source include/rpl_connection_master.inc
|
||||
SET @@GLOBAL.DEBUG= @debug_saved;
|
||||
DROP TABLE t1;
|
||||
--source include/rpl_end.inc
|
@ -46,7 +46,7 @@ SELECT COUNT(*) FROM mysqltest.t1;
|
||||
# Cleanup
|
||||
connection master;
|
||||
DROP DATABASE mysqltest;
|
||||
DROP TABLE test.t1;
|
||||
DROP TABLE IF EXISTS test.t1;
|
||||
sync_slave_with_master;
|
||||
|
||||
# End of test
|
||||
|
@ -20,7 +20,7 @@ create table if not exists t1 (n int);
|
||||
drop table t1;
|
||||
|
||||
call mtr.add_suppression ("Slave I/O: Got fatal error 1236 from master when reading data from binary");
|
||||
call mtr.add_suppression ("Error in Log_event::read_log_event");
|
||||
CALL mtr.add_suppression("Failed to read an event from active binlog.*");
|
||||
source include/show_master_status.inc;
|
||||
sync_slave_with_master;
|
||||
source include/stop_slave.inc;
|
||||
|
51
mysql-test/suite/rpl/t/rpl_lost_events_on_rotate.test
Normal file
51
mysql-test/suite/rpl/t/rpl_lost_events_on_rotate.test
Normal file
@ -0,0 +1,51 @@
|
||||
#
|
||||
# Whenever the mysql_binlog_send method (dump thread) reaches the
|
||||
# end of file when reading events from the binlog, before checking
|
||||
# if it should wait for more events, there was a test to check if
|
||||
# the file being read was still active, i.e, it was the last known
|
||||
# binlog. However, it was possible that something was written to
|
||||
# the binary log and then a rotation would happen, after EOF was
|
||||
# detected and before the check for active was performed. In this
|
||||
# case, the end of the binary log would not be read by the dump
|
||||
# thread, and this would cause the slave to lose updates.
|
||||
#
|
||||
# This test verifies that the problem has been fixed. It waits
|
||||
# during this window while forcing a rotation in the binlog.
|
||||
#
|
||||
--source include/have_debug.inc
|
||||
--source include/master-slave.inc
|
||||
|
||||
--connection master
|
||||
|
||||
SET @debug_saved= @@GLOBAL.DEBUG;
|
||||
|
||||
CREATE TABLE t (i INT);
|
||||
|
||||
# When reaching the EOF the dump thread will wait before deciding if
|
||||
# it should move to a new binlong file.
|
||||
SET GLOBAL DEBUG= "d,wait_after_binlog_EOF";
|
||||
|
||||
INSERT INTO t VALUES (1);
|
||||
|
||||
--sleep 1
|
||||
|
||||
# A insert and a rotate happens before the decision
|
||||
INSERT INTO t VALUES (2);
|
||||
FLUSH LOGS;
|
||||
|
||||
SET DEBUG_SYNC= 'now SIGNAL signal.rotate_finished';
|
||||
|
||||
--sync_slave_with_master
|
||||
|
||||
# All the rows should be sent to the slave.
|
||||
--let $diff_tables=master:t,slave:t
|
||||
--source include/diff_tables.inc
|
||||
|
||||
##Clean up
|
||||
--connection master
|
||||
|
||||
SET @@GLOBAL.DEBUG= @debug_saved;
|
||||
SET DEBUG_SYNC= 'RESET';
|
||||
|
||||
DROP TABLE t;
|
||||
--source include/rpl_end.inc
|
@ -2,7 +2,13 @@
|
||||
-- source include/have_binlog_format_row.inc
|
||||
-- source include/master-slave.inc
|
||||
|
||||
# Note: The test is dependent on binlog positions
|
||||
##############################################################################
|
||||
# The test is dependent on binlog positions. The test is divided into two
|
||||
# sections. The first section checks START SLAVE UNTIL MASTER_LOG_FILE =
|
||||
# 'log_name', MASTER_LOG_POS = log_pos followed by a couple of failure
|
||||
# scenarios. The second section checks START SLAVE UNTIL RELAY_LOG_FILE =
|
||||
# 'log_name', RELAY_LOG_POS = log_pos.
|
||||
##############################################################################
|
||||
|
||||
# Create some events on master
|
||||
connection master;
|
||||
@ -22,14 +28,8 @@ 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;
|
||||
let $master_pos_insert1_t2= query_get_value(SHOW MASTER STATUS, Position, 1);
|
||||
|
||||
# Save relay log position for query INSERT INTO t2 VALUES (1),(2);
|
||||
let $relay_log_file= query_get_value(show slave status, Relay_Log_File,1);
|
||||
let $relay_pos_insert1_t2= query_get_value(show slave status, Relay_Log_Pos, 1);
|
||||
|
||||
connection master;
|
||||
INSERT INTO t2 VALUES (3),(4);
|
||||
DROP TABLE t2;
|
||||
# Save master log position for query INSERT INTO t2 VALUES (1),(2);
|
||||
@ -68,17 +68,6 @@ SELECT * FROM t1;
|
||||
--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;
|
||||
--disable_query_log
|
||||
eval START SLAVE UNTIL RELAY_LOG_FILE='$relay_log_file', 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;
|
||||
--source include/wait_for_slave_to_start.inc
|
||||
@ -119,9 +108,49 @@ 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;
|
||||
--source include/start_slave.inc
|
||||
|
||||
--let $rpl_only_running_threads= 1
|
||||
##############################################################################
|
||||
# The second section - checks START SLAVE UNTIL RELAY_LOG_FILE =# 'log_name',
|
||||
# RELAY_LOG_POS = log_pos. This section of the test does the following:
|
||||
# 1) At master, create a table and inserts a value. Let slave replicate this.
|
||||
# 2) Stop slave sql thread.
|
||||
# 3) Insert some more values at master. Note that io thread copies this insert
|
||||
# 4) Use start slave until to start the sql thread and check if it
|
||||
# stops at the correct position.
|
||||
##############################################################################
|
||||
|
||||
--source include/rpl_reset.inc
|
||||
|
||||
--connection master
|
||||
CREATE TABLE t1 (a INT);
|
||||
INSERT INTO t1 VALUES (1);
|
||||
|
||||
--sync_slave_with_master
|
||||
--source include/stop_slave_sql.inc
|
||||
|
||||
--connection master
|
||||
INSERT INTO t1 VALUES (2);
|
||||
--let $master_log_pos= query_get_value(SHOW MASTER STATUS, Position, 1)
|
||||
INSERT INTO t1 VALUES (3);
|
||||
|
||||
--source include/sync_slave_io_with_master.inc
|
||||
|
||||
--let $relay_log_file= query_get_value(SHOW SLAVE STATUS, Relay_Log_File,1)
|
||||
--source include/get_relay_log_pos.inc
|
||||
|
||||
--disable_query_log
|
||||
--eval start slave until relay_log_file='$relay_log_file', relay_log_pos=$relay_log_pos
|
||||
--enable_query_log
|
||||
--source include/wait_for_slave_sql_to_stop.inc
|
||||
|
||||
--let $assert_cond= COUNT(*) = 2 FROM t1
|
||||
--let $assert_text= table t1 should have two rows.
|
||||
--source include/assert.inc
|
||||
|
||||
#cleanup
|
||||
--source include/start_slave.inc
|
||||
--connection master
|
||||
DROP TABLE t1;
|
||||
--sync_slave_with_master
|
||||
--source include/rpl_end.inc
|
||||
|
@ -184,44 +184,6 @@ connection slave;
|
||||
start slave;
|
||||
sync_with_master;
|
||||
|
||||
# Bug #47142 "slave start until" stops 1 event too late in 4.1 to 5.0 replication
|
||||
#
|
||||
# testing fixes that refine the start position of prior-5.0 master's event
|
||||
# and by that provide correct execution of
|
||||
# START SLAVE UNTIL ... master_log_pos= x;
|
||||
# Keep the test at the end of the file because it manipulates with binlog files
|
||||
# to substitute the genuine one with a prepared on 4.1 server.
|
||||
#
|
||||
|
||||
--source include/rpl_reset.inc
|
||||
|
||||
connection master;
|
||||
--disable_warnings
|
||||
drop table if exists t1; # there is create table t1 in bug47142_master-bin.000001
|
||||
--enable_warnings
|
||||
sync_slave_with_master;
|
||||
connection slave;
|
||||
stop slave;
|
||||
connection master;
|
||||
|
||||
flush logs;
|
||||
let $MYSQLD_DATADIR= `select @@datadir`;
|
||||
--remove_file $MYSQLD_DATADIR/master-bin.000001
|
||||
--copy_file $MYSQL_TEST_DIR/std_data/bug47142_master-bin.000001 $MYSQLD_DATADIR/master-bin.000001
|
||||
flush logs;
|
||||
|
||||
connection slave;
|
||||
reset slave;
|
||||
start slave until master_log_file='master-bin.000001', master_log_pos=294 /* to stop right before DROP */;
|
||||
--source include/wait_for_slave_sql_to_stop.inc
|
||||
|
||||
show tables /* t1 must exist */;
|
||||
|
||||
# clean-up of Bug #47142 testing
|
||||
|
||||
drop table t1; # drop on slave only, master does not have t1.
|
||||
stop slave;
|
||||
|
||||
# End of tests
|
||||
--let $rpl_only_running_threads= 1
|
||||
--source include/rpl_end.inc
|
||||
|
@ -0,0 +1,7 @@
|
||||
SELECT @@global.innodb_buffer_pool_evict;
|
||||
@@global.innodb_buffer_pool_evict
|
||||
|
||||
SET GLOBAL innodb_buffer_pool_evict = 'uncompressed';
|
||||
SELECT @@global.innodb_buffer_pool_evict;
|
||||
@@global.innodb_buffer_pool_evict
|
||||
|
@ -1,9 +1,5 @@
|
||||
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;
|
||||
include/master-slave.inc
|
||||
[connection master]
|
||||
connection slave
|
||||
SET @start_max_connections= @@global.max_connections;
|
||||
SET @start_init_slave= @@global.init_slave;
|
||||
@ -18,23 +14,19 @@ SELECT @@global.init_slave = 'SET @@global.max_connections = @@global.max_connec
|
||||
@@global.init_slave = 'SET @@global.max_connections = @@global.max_connections + 1'
|
||||
1
|
||||
Expect 1
|
||||
SELECT @@global.max_connections= @start_max_connections;
|
||||
@@global.max_connections= @start_max_connections
|
||||
1
|
||||
Expect 1
|
||||
include/assert.inc [@@global.max_connections = @start_max_connections]
|
||||
STOP SLAVE;
|
||||
RESET MASTER;
|
||||
RESET SLAVE;
|
||||
START SLAVE;
|
||||
SELECT @@global.max_connections = @start_max_connections + 1;
|
||||
@@global.max_connections = @start_max_connections + 1
|
||||
1
|
||||
Expect 1
|
||||
include/wait_for_slave_to_start.inc
|
||||
include/assert.inc [@@global.max_connections = @start_max_connections + 1]
|
||||
SET @@global.init_slave = "SET @a=5";
|
||||
STOP SLAVE;
|
||||
RESET MASTER;
|
||||
RESET SLAVE;
|
||||
START SLAVE;
|
||||
include/wait_for_slave_to_start.inc
|
||||
SHOW VARIABLES LIKE 'init_slave';
|
||||
Variable_name Value
|
||||
init_slave SET @a=5
|
||||
@ -44,3 +36,4 @@ NULL
|
||||
Expect NULL
|
||||
SET @@global.max_connections= @start_max_connections;
|
||||
SET @@global.init_slave= @start_init_slave;
|
||||
include/rpl_end.inc
|
||||
|
@ -9,5 +9,14 @@
|
||||
# Do not use any TAB characters for whitespace.
|
||||
#
|
||||
##############################################################################
|
||||
sys_vars.max_binlog_cache_size_basic_64 : bug#11763668 2010-08-31 Horst
|
||||
sys_vars.max_binlog_cache_size_basic_32 : bug#11763668 2010-08-31 Horst
|
||||
sys_vars.max_allowed_packet_basic : bug#16295372 2013-02-09 veduggir
|
||||
sys_vars.max_allowed_packet_func : bug#16295372 2013-02-09 veduggir
|
||||
sys_vars.net_buffer_length_basic : bug#16295372 2013-02-09 veduggir
|
||||
sys_vars.insert_id_basic : bug#16295418 2013-02-09 veduggir
|
||||
sys_vars.key_cache_age_threshold_basic_64 : bug#16295418 2013-02-09 veduggir
|
||||
sys_vars.key_cache_block_size_basic_64 : bug#16295418 2013-02-09 veduggir
|
||||
sys_vars.key_cache_division_limit_basic_64 : bug#16295418 2013-02-09 veduggir
|
||||
sys_vars.identity_basic : bug#16295418 2013-02-09 veduggir
|
||||
sys_vars.key_buffer_size_basic_64 : bug#16295418 2013-02-09 veduggir
|
||||
sys_vars.key_buffer_size_func : bug#16295418 2013-02-09 veduggir
|
||||
sys_vars.timestamp_basic_64 : bug#16295457 2013-02-09 veduggir
|
||||
|
@ -0,0 +1,10 @@
|
||||
-- source include/have_innodb_plugin.inc
|
||||
# This is a debug variable for now
|
||||
-- source include/have_debug.inc
|
||||
|
||||
SELECT @@global.innodb_buffer_pool_evict;
|
||||
|
||||
SET GLOBAL innodb_buffer_pool_evict = 'uncompressed';
|
||||
|
||||
# Should always be empty.
|
||||
SELECT @@global.innodb_buffer_pool_evict;
|
@ -59,8 +59,9 @@ let $wait_timeout= 240;
|
||||
let $wait_condition= SELECT @@global.max_connections = @start_max_connections;
|
||||
--source include/wait_condition_sp.inc
|
||||
# check that the action in init_slave does not happen immediately
|
||||
SELECT @@global.max_connections= @start_max_connections;
|
||||
--echo Expect 1
|
||||
--let $assert_text= @@global.max_connections = @start_max_connections
|
||||
--let $assert_cond= @@global.max_connections = @start_max_connections
|
||||
--source include/assert.inc
|
||||
#
|
||||
# reset of the server
|
||||
STOP SLAVE;
|
||||
@ -75,8 +76,9 @@ let $wait_timeout= 90;
|
||||
let $wait_condition= SELECT @@global.max_connections = @start_max_connections + 1;
|
||||
--source include/wait_condition_sp.inc
|
||||
# check that the action in init_slave was executed and had the intended effect
|
||||
SELECT @@global.max_connections = @start_max_connections + 1;
|
||||
--echo Expect 1
|
||||
--let $assert_text= @@global.max_connections = @start_max_connections + 1
|
||||
--let $assert_cond= @@global.max_connections = @start_max_connections + 1
|
||||
--source include/assert.inc
|
||||
#
|
||||
# Setting a variable(which is local to a session) and must not be visible
|
||||
SET @@global.init_slave = "SET @a=5";
|
||||
|
@ -414,6 +414,19 @@ WHERE CAST(a as BINARY)=x'62736D697468'
|
||||
|
||||
DROP TABLE t1;
|
||||
|
||||
--echo #
|
||||
--echo # Bug#13581962 HIGH MEMORY USAGE ATTEMPT, THEN CRASH WITH
|
||||
--echo # LONGTEXT, UNION, USER VARIABLE
|
||||
--echo # Bug#14096619 UNABLE TO RESTORE DATABASE DUMP
|
||||
--echo #
|
||||
|
||||
CREATE TABLE t1 AS SELECT CONCAT(CAST(REPEAT('9', 1000) AS SIGNED)),
|
||||
CONCAT(CAST(REPEAT('9', 1000) AS UNSIGNED));
|
||||
SHOW CREATE TABLE t1;
|
||||
DROP TABLE t1;
|
||||
|
||||
--echo # End of test for Bug#13581962, Bug#14096619
|
||||
|
||||
--echo End of 5.1 tests
|
||||
|
||||
select cast("2101-00-01 02:03:04" as datetime);
|
||||
|
@ -1378,9 +1378,11 @@ SELECT CONVERT(('' IN (REVERSE(CAST(('') AS DECIMAL)), '')), CHAR(3));
|
||||
--echo # and other crashes
|
||||
--echo #
|
||||
CREATE TABLE t1 ( a TEXT );
|
||||
SELECT 'aaaaaaaaaaaaaa' INTO OUTFILE 'bug58165.txt';
|
||||
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
|
||||
--eval SELECT 'aaaaaaaaaaaaaa' INTO OUTFILE '$MYSQLTEST_VARDIR/tmp/bug58165.txt';
|
||||
SELECT insert( substring_index( 'a', 'a', 'b' ), 1, 0, 'x' );
|
||||
LOAD DATA INFILE 'bug58165.txt' INTO TABLE t1;
|
||||
--replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
|
||||
--eval LOAD DATA INFILE '$MYSQLTEST_VARDIR/tmp/bug58165.txt' INTO TABLE t1;
|
||||
SELECT * FROM t1;
|
||||
DROP TABLE t1;
|
||||
|
||||
|
@ -1175,6 +1175,36 @@ EXECUTE prep_stmt;
|
||||
|
||||
DROP TABLE t1;
|
||||
|
||||
--echo #
|
||||
--echo # Bug#13068506 - QUERY WITH GROUP BY ON NON-AGGR COLUMN RETURNS
|
||||
--echo # WRONG RESULT
|
||||
--echo #
|
||||
|
||||
CREATE TABLE t1 (i1 int);
|
||||
INSERT INTO t1 VALUES (100), (101);
|
||||
|
||||
CREATE TABLE t2 (i2 int, i3 int);
|
||||
INSERT INTO t2 VALUES (20,1),(10,2);
|
||||
|
||||
CREATE TABLE t3 (i4 int(11));
|
||||
INSERT INTO t3 VALUES (1),(2);
|
||||
|
||||
let $query= SELECT (
|
||||
SELECT MAX( t2.i2 )
|
||||
FROM t3 RIGHT JOIN t2 ON ( t2.i3 = 2 )
|
||||
WHERE t2.i3 <> t1.i1
|
||||
) AS field1
|
||||
FROM t1;
|
||||
|
||||
--echo
|
||||
--eval $query;
|
||||
--echo
|
||||
--eval $query GROUP BY field1;
|
||||
|
||||
--echo
|
||||
drop table t1,t2,t3;
|
||||
|
||||
--echo # End of test for Bug#13068506
|
||||
|
||||
--echo End of 5.1 tests
|
||||
|
||||
|
@ -699,12 +699,10 @@ CHECK TABLE t1;
|
||||
--replace_result $MYSQLD_DATADIR ./
|
||||
--error 29
|
||||
SELECT * FROM t1;
|
||||
--echo # Note that it is currently impossible to drop a partitioned table
|
||||
--echo # without the .par file
|
||||
--replace_result $MYSQLD_DATADIR ./
|
||||
--error 29
|
||||
--echo # Note that we will remove the frm file when we detect that
|
||||
--echo # .par file has been deleted.
|
||||
--error ER_BAD_TABLE_ERROR
|
||||
DROP TABLE t1;
|
||||
--remove_file $MYSQLD_DATADIR/test/t1.frm
|
||||
--remove_file $MYSQLD_DATADIR/test/t1#P#p0.MYI
|
||||
--remove_file $MYSQLD_DATADIR/test/t1#P#p0.MYD
|
||||
|
||||
|
@ -235,7 +235,6 @@ select @a:=f1, count(f1) from t1 group by 1 desc;
|
||||
select @a:=f1, count(f1) from t1 group by 1 asc;
|
||||
select @a:=f2, count(f2) from t1 group by 1 desc;
|
||||
select @a:=f3, count(f3) from t1 group by 1 desc;
|
||||
--sorted_result
|
||||
select @a:=f4, count(f4) from t1 group by 1 desc;
|
||||
drop table t1;
|
||||
|
||||
|
Reference in New Issue
Block a user