mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-03 19:15:54 +00:00
Add failing test.
This commit is contained in:
4
t/pt-upgrade/samples/007/null.log
Normal file
4
t/pt-upgrade/samples/007/null.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 * from test.t order by id;
|
35
t/pt-upgrade/samples/007/null.txt
Normal file
35
t/pt-upgrade/samples/007/null.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/007/null_results.txt
Normal file
32
t/pt-upgrade/samples/007/null_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/007/null_results/query
Normal file
3
t/pt-upgrade/samples/007/null_results/query
Normal file
@@ -0,0 +1,3 @@
|
||||
use `test`;
|
||||
select * from test.t order by id
|
||||
##
|
6
t/pt-upgrade/samples/007/null_results/results
Normal file
6
t/pt-upgrade/samples/007/null_results/results
Normal file
@@ -0,0 +1,6 @@
|
||||
$results = {
|
||||
query_time => '0',
|
||||
warnings => {}
|
||||
};
|
||||
|
||||
##
|
34
t/pt-upgrade/samples/007/null_results/rows
Normal file
34
t/pt-upgrade/samples/007/null_results/rows
Normal file
@@ -0,0 +1,34 @@
|
||||
$rows = [
|
||||
[
|
||||
'1',
|
||||
'a',
|
||||
'2013-01-01 00:00:01'
|
||||
],
|
||||
[
|
||||
'2',
|
||||
'b',
|
||||
'2013-01-01 00:00:02'
|
||||
],
|
||||
[
|
||||
'3',
|
||||
'c',
|
||||
'2013-01-01 00:00:03'
|
||||
],
|
||||
[
|
||||
'4',
|
||||
'd',
|
||||
'2013-01-01 00:00:04'
|
||||
],
|
||||
[
|
||||
'5',
|
||||
'e',
|
||||
'2013-01-01 00:00:05'
|
||||
],
|
||||
[
|
||||
'6',
|
||||
'f',
|
||||
'2013-01-01 00:00:06'
|
||||
]
|
||||
];
|
||||
|
||||
##
|
11
t/pt-upgrade/samples/007/tables.sql
Normal file
11
t/pt-upgrade/samples/007/tables.sql
Normal file
@@ -0,0 +1,11 @@
|
||||
DROP DATABASE IF EXISTS test;
|
||||
CREATE DATABASE test;
|
||||
USE test;
|
||||
CREATE TABLE t (
|
||||
id int(10) NOT NULL AUTO_INCREMENT,
|
||||
username varchar(8) default NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
);
|
||||
INSERT INTO t VALUES
|
||||
(null, 'a'),
|
||||
(null, null);
|
Reference in New Issue
Block a user