From ec8568352c39d37f4bff7adcf47f3eade194e7ad Mon Sep 17 00:00:00 2001 From: Kevin Falcone Date: Mon, 11 Feb 2013 16:27:29 -0500 Subject: [PATCH] The second of these (Requestor.EmailAddress) was failing on 5.8.8 I'm sure this is some awesome little perl bug, but since it's in the test suite and on an unsupported perl version, I'm not willing to dig terribly deep since this fixes it. --- t/api/tickets_overlay_sql.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/api/tickets_overlay_sql.t b/t/api/tickets_overlay_sql.t index 5bc614077f8..2ef2d477995 100644 --- a/t/api/tickets_overlay_sql.t +++ b/t/api/tickets_overlay_sql.t @@ -74,7 +74,7 @@ diag "Make sure we don't barf on invalid input for IS / IS NOT"; unlike $tix->BuildSelectQuery, qr/foobar/, "didn't find foobar in the select"; like $tix->BuildSelectQuery, qr/Subject IS NULL/, "found right clause"; - my ($status, $msg) = $tix->FromSQL("Subject IS NOT 'foobar'"); + ($status, $msg) = $tix->FromSQL("Subject IS NOT 'foobar'"); ok ($status, "valid query") or diag("error: $msg"); is $tix->Count, 2, "found two tickets"; unlike $tix->BuildSelectQuery, qr/foobar/, "didn't find foobar in the select"; @@ -85,7 +85,7 @@ diag "Make sure we don't barf on invalid input for IS / IS NOT"; my ($status, $msg) = $tix->FromSQL("Requestor.Signature LIKE 'foo'"); ok (!$status, "invalid query - Signature not valid") or diag("error: $msg"); - my ($status, $msg) = $tix->FromSQL("Requestor.EmailAddress LIKE 'jesse'"); + ($status, $msg) = $tix->FromSQL("Requestor.EmailAddress LIKE 'jesse'"); ok ($status, "valid query") or diag("error: $msg"); is $tix->Count, 1, "found one ticket"; like $tix->First->Subject, qr/another ticket/, "found the right ticket";