Merge test-pt-upgrade-2.2-duplicate-col-bug-942377.

This commit is contained in:
Daniel Nichter
2013-03-13 16:57:21 -06:00
7 changed files with 100 additions and 0 deletions

View 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;

View 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

View 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

View File

@@ -0,0 +1,3 @@
use `test`;
SELECT city, city FROM t LIMIT 1
##

View File

@@ -0,0 +1,6 @@
$results = {
query_time => '0',
warnings => {}
};
##

View File

@@ -0,0 +1,8 @@
$rows = [
[
'aaa',
'aaa'
]
];
##

View 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');