diff --git a/t/pt-upgrade/samples/005/error_on_both_hosts.log b/t/pt-upgrade/samples/005/error_on_both_hosts.log new file mode 100644 index 00000000..2f335dbc --- /dev/null +++ b/t/pt-upgrade/samples/005/error_on_both_hosts.log @@ -0,0 +1,4 @@ +# User@Host: root[root] @ localhost [] +# Query_time: 1 Lock_time: 0 Rows_sent: 7 Rows_examined: 7 +use test; +select nonexistent_col from test.t; diff --git a/t/pt-upgrade/samples/005/error_on_both_hosts.txt b/t/pt-upgrade/samples/005/error_on_both_hosts.txt new file mode 100644 index 00000000..6aa3dc1c --- /dev/null +++ b/t/pt-upgrade/samples/005/error_on_both_hosts.txt @@ -0,0 +1,34 @@ +######################################################################## +# Query class 0F88A9418F511C18 +######################################################################## + +Reporting class because it has SQL errors, but hasn't been reported yet. + +Total queries 1 +Unique queries 1 +Discarded queries 0 + +select nonexistent_col from test.t + +## +## SQL errors: 1 +## + +-- 1. + +On both hosts: + +DBD::mysql::st execute failed: Unknown column 'nonexistent_col' in 'field list' [for Statement "select nonexistent_col from test.t"] at /Users/daniel/p/pt-upgrade-2.2/bin/pt-upgrade line 5327, <> line 1. + +select nonexistent_col from test.t + +######################################################################## +# Stats +######################################################################## + +failed_queries 1 +queries_filtered 0 +queries_no_diffs 0 +queries_read 1 +queries_with_diffs 0 +queries_with_errors 0 diff --git a/t/pt-upgrade/samples/005/error_on_host1.log b/t/pt-upgrade/samples/005/error_on_host1.log new file mode 100644 index 00000000..a5067af6 --- /dev/null +++ b/t/pt-upgrade/samples/005/error_on_host1.log @@ -0,0 +1,4 @@ +# User@Host: root[root] @ localhost [] +# Query_time: 1 Lock_time: 0 Rows_sent: 7 Rows_examined: 7 +use test; +select host2_col from test.t; diff --git a/t/pt-upgrade/samples/005/error_on_host1.txt b/t/pt-upgrade/samples/005/error_on_host1.txt new file mode 100644 index 00000000..5fdbb471 --- /dev/null +++ b/t/pt-upgrade/samples/005/error_on_host1.txt @@ -0,0 +1,36 @@ +######################################################################## +# Query class 883A4BC43021922E +######################################################################## + +Reporting class because it has diffs, but hasn't been reported yet. + +Total queries 1 +Unique queries 1 +Discarded queries 0 + +select host?_col from test.t + +## +## Query errors diffs: 1 +## + +-- 1. + +DBD::mysql::st execute failed: Unknown column 'host2_col' in 'field list' [for Statement "select host2_col from test.t"] at /Users/daniel/p/pt-upgrade-2.2/bin/pt-upgrade line 5327, <> line 1. + +vs. + +No error + +select host2_col from test.t + +######################################################################## +# Stats +######################################################################## + +failed_queries 0 +queries_filtered 0 +queries_no_diffs 0 +queries_read 1 +queries_with_diffs 0 +queries_with_errors 1 diff --git a/t/pt-upgrade/samples/005/error_on_host2.log b/t/pt-upgrade/samples/005/error_on_host2.log new file mode 100644 index 00000000..bd7361c3 --- /dev/null +++ b/t/pt-upgrade/samples/005/error_on_host2.log @@ -0,0 +1,4 @@ +# User@Host: root[root] @ localhost [] +# Query_time: 1 Lock_time: 0 Rows_sent: 7 Rows_examined: 7 +use test; +select host1_col from test.t; diff --git a/t/pt-upgrade/samples/005/error_on_host2.txt b/t/pt-upgrade/samples/005/error_on_host2.txt new file mode 100644 index 00000000..9c5033a8 --- /dev/null +++ b/t/pt-upgrade/samples/005/error_on_host2.txt @@ -0,0 +1,36 @@ +######################################################################## +# Query class 883A4BC43021922E +######################################################################## + +Reporting class because it has diffs, but hasn't been reported yet. + +Total queries 1 +Unique queries 1 +Discarded queries 0 + +select host?_col from test.t + +## +## Query errors diffs: 1 +## + +-- 1. + +No error + +vs. + +DBD::mysql::st execute failed: Unknown column 'host1_col' in 'field list' [for Statement "select host1_col from test.t"] at /Users/daniel/p/pt-upgrade-2.2/bin/pt-upgrade line 5327, <> line 1. + +select host1_col from test.t + +######################################################################## +# Stats +######################################################################## + +failed_queries 0 +queries_filtered 0 +queries_no_diffs 0 +queries_read 1 +queries_with_diffs 0 +queries_with_errors 1 diff --git a/t/pt-upgrade/samples/005/host1.sql b/t/pt-upgrade/samples/005/host1.sql new file mode 100644 index 00000000..01353e06 --- /dev/null +++ b/t/pt-upgrade/samples/005/host1.sql @@ -0,0 +1,5 @@ +USE test; +CREATE TABLE t ( + host1_col INT +); +INSERT INTO t VALUES (1); diff --git a/t/pt-upgrade/samples/005/host2.sql b/t/pt-upgrade/samples/005/host2.sql new file mode 100644 index 00000000..6eb27bb0 --- /dev/null +++ b/t/pt-upgrade/samples/005/host2.sql @@ -0,0 +1,5 @@ +USE test; +CREATE TABLE t ( + host2_col INT +); +INSERT INTO t VALUES (1); diff --git a/t/pt-upgrade/samples/005/tables.sql b/t/pt-upgrade/samples/005/tables.sql new file mode 100644 index 00000000..a6306518 --- /dev/null +++ b/t/pt-upgrade/samples/005/tables.sql @@ -0,0 +1,2 @@ +DROP DATABASE IF EXISTS test; +CREATE DATABASE test;