Commit 589c7995 authored by Alexandre's avatar Alexandre
Browse files

Merge pull request #928 from pnax/fix-sqlite-test-age-logic

Fix inconsistency in SQLite test's age

Reapply change made in a8a4cee3 and removed by inadvertance in 5df15c0e.
parents 98fc489e a6148d1f
...@@ -128,7 +128,7 @@ sub recent_test_hash_id { ...@@ -128,7 +128,7 @@ sub recent_test_hash_id {
my $dbh = $self->dbh; my $dbh = $self->dbh;
my ( $recent_hash_id ) = $dbh->selectrow_array( my ( $recent_hash_id ) = $dbh->selectrow_array(
"SELECT hash_id FROM test_results WHERE fingerprint = ? AND test_start_time > DATETIME('now', ?)", "SELECT hash_id FROM test_results WHERE fingerprint = ? AND creation_time > DATETIME('now', ?)",
undef, $fingerprint, "-$age_reuse_previous_test seconds" undef, $fingerprint, "-$age_reuse_previous_test seconds"
); );
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment