Add failing test.

This commit is contained in:
Daniel Nichter
2013-06-26 12:07:06 -07:00
parent 0d96d5aafa
commit 61a0770972
7 changed files with 125 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 * from test.t order by id;

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 * from test.t order by id
##

View File

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

View 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'
]
];
##

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