mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-11 13:40:07 +00:00
Merge test-pt-upgrade-2.2-duplicate-col-bug-942377.
This commit is contained in:
4
t/pt-upgrade/samples/006/dupe_col.log
Normal file
4
t/pt-upgrade/samples/006/dupe_col.log
Normal file
@@ -0,0 +1,4 @@
|
||||
# User@Host: root[root] @ localhost []
|
||||
# Query_time: 1 Lock_time: 0 Rows_sent: 7 Rows_examined: 7
|
||||
use test;
|
||||
SELECT city, city FROM t LIMIT 1;
|
35
t/pt-upgrade/samples/006/dupe_col.txt
Normal file
35
t/pt-upgrade/samples/006/dupe_col.txt
Normal file
@@ -0,0 +1,35 @@
|
||||
|
||||
#-----------------------------------------------------------------------
|
||||
# Logs
|
||||
#-----------------------------------------------------------------------
|
||||
|
||||
File: ...
|
||||
Size: 145
|
||||
|
||||
#-----------------------------------------------------------------------
|
||||
# Hosts
|
||||
#-----------------------------------------------------------------------
|
||||
|
||||
host1:
|
||||
|
||||
DSN: h=127.1,P=12345
|
||||
hostname: ...
|
||||
MySQL: ...
|
||||
|
||||
host2:
|
||||
|
||||
DSN: h=127.1,P=12348
|
||||
hostname: ...
|
||||
MySQL: ...
|
||||
|
||||
#-----------------------------------------------------------------------
|
||||
# Stats
|
||||
#-----------------------------------------------------------------------
|
||||
|
||||
failed_queries 0
|
||||
not_select 0
|
||||
queries_filtered 0
|
||||
queries_no_diffs 1
|
||||
queries_read 1
|
||||
queries_with_diffs 0
|
||||
queries_with_errors 0
|
32
t/pt-upgrade/samples/006/dupe_col_results.txt
Normal file
32
t/pt-upgrade/samples/006/dupe_col_results.txt
Normal file
@@ -0,0 +1,32 @@
|
||||
|
||||
#-----------------------------------------------------------------------
|
||||
# Logs
|
||||
#-----------------------------------------------------------------------
|
||||
|
||||
Results directory: ...
|
||||
|
||||
#-----------------------------------------------------------------------
|
||||
# Hosts
|
||||
#-----------------------------------------------------------------------
|
||||
|
||||
host1:
|
||||
|
||||
Reading results from ...
|
||||
|
||||
host2:
|
||||
|
||||
DSN: h=127.1,P=12348
|
||||
hostname: ...
|
||||
MySQL: ...
|
||||
|
||||
#-----------------------------------------------------------------------
|
||||
# Stats
|
||||
#-----------------------------------------------------------------------
|
||||
|
||||
failed_queries 0
|
||||
not_select 0
|
||||
queries_filtered 0
|
||||
queries_no_diffs 1
|
||||
queries_read 1
|
||||
queries_with_diffs 0
|
||||
queries_with_errors 0
|
3
t/pt-upgrade/samples/006/dupe_col_results/query
Normal file
3
t/pt-upgrade/samples/006/dupe_col_results/query
Normal file
@@ -0,0 +1,3 @@
|
||||
use `test`;
|
||||
SELECT city, city FROM t LIMIT 1
|
||||
##
|
6
t/pt-upgrade/samples/006/dupe_col_results/results
Normal file
6
t/pt-upgrade/samples/006/dupe_col_results/results
Normal file
@@ -0,0 +1,6 @@
|
||||
$results = {
|
||||
query_time => '0',
|
||||
warnings => {}
|
||||
};
|
||||
|
||||
##
|
8
t/pt-upgrade/samples/006/dupe_col_results/rows
Normal file
8
t/pt-upgrade/samples/006/dupe_col_results/rows
Normal file
@@ -0,0 +1,8 @@
|
||||
$rows = [
|
||||
[
|
||||
'aaa',
|
||||
'aaa'
|
||||
]
|
||||
];
|
||||
|
||||
##
|
12
t/pt-upgrade/samples/006/tables.sql
Normal file
12
t/pt-upgrade/samples/006/tables.sql
Normal file
@@ -0,0 +1,12 @@
|
||||
DROP DATABASE IF EXISTS test;
|
||||
CREATE DATABASE test;
|
||||
USE test;
|
||||
CREATE TABLE t (
|
||||
id int(10) NOT NULL AUTO_INCREMENT,
|
||||
city varchar(8) default NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
);
|
||||
INSERT INTO t VALUES
|
||||
(null, 'aaa'),
|
||||
(null, 'bbb'),
|
||||
(null, 'ccc');
|
Reference in New Issue
Block a user