Skip to content

Commit

Permalink
The second of these (Requestor.EmailAddress) was failing on 5.8.8
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jibsheet committed Feb 11, 2013
1 parent 0585835 commit ec85683
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions t/api/tickets_overlay_sql.t
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -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";
Expand Down

0 comments on commit ec85683

Please sign in to comment.