Rename results file results to rows and meta to results. Test more --save-results.

This commit is contained in:
Daniel Nichter
2013-02-20 09:20:17 -07:00
parent 92194f1711
commit 144b4794b9
21 changed files with 187 additions and 68 deletions

View File

@@ -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 => {}
};
##

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

View File

@@ -1,5 +1,4 @@
$meta = {
error => undef,
$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,2 @@
INSERT INTO t (id, username) VALUES (NULL, 'long_username')
##

View File

@@ -0,0 +1,12 @@
$results = {
query_time => '0',
warnings => {
'1265' => {
code => '1265',
level => 'Warning',
message => 'Data truncated for column \'username\' at row 1'
}
}
};
##

View File

@@ -0,0 +1,2 @@
##

View File

@@ -0,0 +1,2 @@
select nonexistent_col from test.t
##

View File

@@ -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"]'
};
##

View File

@@ -0,0 +1,2 @@
##

View File

@@ -0,0 +1,2 @@
select host2_col from test.t
##

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

View File

@@ -0,0 +1,2 @@
##

View File

@@ -0,0 +1,2 @@
select host1_col from test.t
##

View File

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

View File

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