TORONTO (AP) Darren O'Day kept his cool in a critical moment, and gave the Baltimore Orioles a big boost.
O'Day escaped a bases-loaded jam in the eighth, Caleb Joseph singled home the go-ahead run with two outs in the ninth and the Orioles beat the Blue Jays 5-3 Saturday, ending Toronto's home winning streak at nine games.
Toronto loaded the bases with no outs in the eighth before O'Day escaped by striking out Russell Martin, Dioner Navarro and Kevin Pillar.
''If you can stay calm in those situations, you have an advantage,'' O'Day said. ''You've just got to focus on each pitch and when you do that, you can stay in the moment.''
Baltimore's Manny Machado didn't expect O'Day to turn Toronto away empty-handed.
''You load up the bases with no outs, and you're already thinking at least one run is going to come in,'' said Machado, who had three hits, including a pair of doubles.
O'Day celebrated with a fist pump as he walked off the mound after striking out Pillar.
''We had them on the ropes, but there's nobody tougher out there than O'Day,'' Blue Jays manager John Gibbons said.
Half the sellout crowd of 46,018 thought Navarro had cleared the bases with a grand slam, but his deep drive to right was ruled foul, with the call confirmed by video review.
''It kind of hooked at the last second,'' Navarro said.
Fired up by O'Day's escape act, the Orioles rallied against Aaron Loup (2-4) to break a 2-all tie the ninth. J.J. Hardy reached on a force play and Ryan Flaherty was hit by a pitch before Joseph snapped an 0-for-9 slump with his single.
''That was a big clutch hit,'' Machado said.
Ryan Tepera relieved and surrendered a two-run double to Machado.
O'Day (3-0) worked one inning for the win. Zach Britton gave up Jose Bautista's RBI single in the bottom of the ninth but held on for his 19th save.
Toronto fell short of matching the longest home winning streak in club history. The Blue Jays won 10 straight at Exhibition Stadium in 1985.
The Orioles took 1-0 lead in the first on Adam Jones' grounder. Toronto tied it in the bottom half when Jose Reyes doubled and scored on Edwin Encarnacion's sacrifice fly.
Martin was hit by a pitch to begin the second, advanced to third on Navarro's single and scored on Kevin Gausman's wild pitch.
Gausman was activated off the disabled list to make his first start of the season and his first appearance since May 6. He allowed two runs and four hits in five innings.
''It was awesome for me, even just warming up thinking about it. It's only been a month and a half and it feels like it's been forever.''
Toronto's Mark Buehrle came in 3-0 with a 3.50 ERA in three starts against the Orioles this season. He allowed two runs and six hits in seven innings.
''I wasn't as sharp as I've been my last four or five outings,'' Buehrle said.
After Flaherty's leadoff single in the third, Buehrle retired 10 straight before Baltimore tied it in the sixth. Machado singled, Snider hit a ground rule double and Jones was intentionally walked before Delmon Young hit a sacrifice fly.
Besides activating Gausman, the Orioles also selected RHP Mychal Givens from Double-A Bowie, optioned RHPs Tyler Wilson and Mike Wright to Triple-A Norfolk and transferred RHP Jason Garcia (right shoulder) to the 60-day DL. Givens, a converted shortstop, was 3-1 with a 1.60 ERA and 12 saves in 23 games at Bowie.
Orioles: An MRI on RHP prospect Dylan Bundy (right shoulder) showed no significant decrease in inflammation and he will remain inactive. Bundy, who is at Double-A Bowie, has not pitched since May 21.
Orioles: RHP Chris Tillman (5-7, 5.58) has won his past three decisions after losing the previous six. He's 0-3 with a 12.51 ERA against Toronto this season.
Blue Jays: RHP Scott Copeland (1-1, 2.57) makes his third start in place of RHP Aaron Sanchez (strained back muscle). Copeland was drafted by Baltimore in 2010 but released in 2012 before signing with the Blue Jays.