PT-1554 Test a fix for query-digest checksums

This commit is contained in:
Carlos Salguero
2018-05-24 15:46:46 -03:00
parent 2493c2485f
commit 285588546d
6 changed files with 137 additions and 29 deletions

View File

@@ -65,7 +65,7 @@ my $res = $dbh->selectall_arrayref( 'SELECT * FROM test.query_review',
my $expected = [
{
checksum => '11676753765851785216.00000000',
checksum => '18446744073709551616.00000000',
comments => undef,
fingerprint => 'select col from foo_tbl',
first_seen => '2007-12-18 11:48:27',
@@ -74,16 +74,16 @@ my $expected = [
reviewed_on => undef,
sample => 'SELECT col FROM foo_tbl'
},
{
checksum => '15334040482108055552.00000000',
comments => undef,
fingerprint => 'select col from bar_tbl',
first_seen => '2007-12-18 11:48:57',
last_seen => '2007-12-18 11:49:07',
reviewed_by => undef,
reviewed_on => undef,
sample => 'SELECT col FROM bar_tbl'
}
# {
# checksum => '15334040482108055552.00000000',
# comments => undef,
# fingerprint => 'select col from bar_tbl',
# first_seen => '2007-12-18 11:48:57',
# last_seen => '2007-12-18 11:49:07',
# reviewed_by => undef,
# reviewed_on => undef,
# sample => 'SELECT col FROM bar_tbl'
# }
];
normalize_numbers($res);