mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-23 21:05:00 +00:00
Rename results file results to rows and meta to results. Test more --save-results.
This commit is contained in:
@@ -1,34 +1,6 @@
|
||||
$results = [
|
||||
[
|
||||
'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'
|
||||
]
|
||||
];
|
||||
$results = {
|
||||
query_time => '0',
|
||||
warnings => {}
|
||||
};
|
||||
|
||||
##
|
||||
|
34
t/pt-upgrade/samples/001/select_results/rows
Normal file
34
t/pt-upgrade/samples/001/select_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'
|
||||
]
|
||||
];
|
||||
|
||||
##
|
@@ -0,0 +1,2 @@
|
||||
select * from test.t order by id
|
||||
##
|
@@ -1,5 +1,4 @@
|
||||
$meta = {
|
||||
error => undef,
|
||||
$results = {
|
||||
query_time => '0',
|
||||
warnings => {}
|
||||
};
|
34
t/pt-upgrade/samples/002/select_missing_rows_results/rows
Normal file
34
t/pt-upgrade/samples/002/select_missing_rows_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'
|
||||
]
|
||||
];
|
||||
|
||||
##
|
@@ -0,0 +1,2 @@
|
||||
INSERT INTO t (id, username) VALUES (NULL, 'long_username')
|
||||
##
|
@@ -0,0 +1,12 @@
|
||||
$results = {
|
||||
query_time => '0',
|
||||
warnings => {
|
||||
'1265' => {
|
||||
code => '1265',
|
||||
level => 'Warning',
|
||||
message => 'Data truncated for column \'username\' at row 1'
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
##
|
@@ -0,0 +1,2 @@
|
||||
|
||||
##
|
@@ -0,0 +1,2 @@
|
||||
select nonexistent_col from test.t
|
||||
##
|
@@ -0,0 +1,5 @@
|
||||
$results = {
|
||||
error => 'DBD::mysql::st execute failed: Unknown column \'nonexistent_col\' in \'field list\' [for Statement "select nonexistent_col from test.t"]'
|
||||
};
|
||||
|
||||
##
|
@@ -0,0 +1,2 @@
|
||||
|
||||
##
|
2
t/pt-upgrade/samples/005/error_on_host1_results/query
Normal file
2
t/pt-upgrade/samples/005/error_on_host1_results/query
Normal file
@@ -0,0 +1,2 @@
|
||||
select host2_col from test.t
|
||||
##
|
5
t/pt-upgrade/samples/005/error_on_host1_results/results
Normal file
5
t/pt-upgrade/samples/005/error_on_host1_results/results
Normal file
@@ -0,0 +1,5 @@
|
||||
$results = {
|
||||
error => 'DBD::mysql::st execute failed: Unknown column \'host2_col\' in \'field list\' [for Statement "select host2_col from test.t"]'
|
||||
};
|
||||
|
||||
##
|
2
t/pt-upgrade/samples/005/error_on_host1_results/rows
Normal file
2
t/pt-upgrade/samples/005/error_on_host1_results/rows
Normal file
@@ -0,0 +1,2 @@
|
||||
|
||||
##
|
2
t/pt-upgrade/samples/005/error_on_host2_results/query
Normal file
2
t/pt-upgrade/samples/005/error_on_host2_results/query
Normal file
@@ -0,0 +1,2 @@
|
||||
select host1_col from test.t
|
||||
##
|
6
t/pt-upgrade/samples/005/error_on_host2_results/results
Normal file
6
t/pt-upgrade/samples/005/error_on_host2_results/results
Normal file
@@ -0,0 +1,6 @@
|
||||
$results = {
|
||||
query_time => '0',
|
||||
warnings => {}
|
||||
};
|
||||
|
||||
##
|
7
t/pt-upgrade/samples/005/error_on_host2_results/rows
Normal file
7
t/pt-upgrade/samples/005/error_on_host2_results/rows
Normal file
@@ -0,0 +1,7 @@
|
||||
$rows = [
|
||||
[
|
||||
'1'
|
||||
]
|
||||
];
|
||||
|
||||
##
|
Reference in New Issue
Block a user