BALTIMORE — Never mind that the Baltimore Orioles and Boston Red Sox have losing records. On a cool night at Camden Yards, both teams went at each other with an intensity usually reserved for October.
Chris Davis singled in the winning run in the 13th inning, and the Orioles got home runs from Manny Machado and Steve Pearce in a 6-5 victory Tuesday night.
After Gerardo Parra crossed the plate, the Orioles mobbed Davis near second base to celebrate their sixth win in seven games.
"You get a little crispness back in the air, and it reminds everybody what fall baseball is like," Baltimore manager Buck Showalter said. "We still feel like it's there for us if we can get the momentum needed. It starts with good pitching, which we had tonight."
The Orioles remained six games behind Texas in the chase for the second AL wild-card spot. In this one, their bullpen allowed only one run over the final eight innings.
Chaz Roe (3-2), the seventh Baltimore pitcher, worked the 13th to get the win.
Parra led off the 13th by drawing a walk from rookie Jonathan Aro (0-1). Machado singled, advancing Parra to third, and Robbie Ross came in to face Davis.
Davis lined a 2-1 pitch past the drawn-in infield and into right field to collect his 107th RBI and end the 4-hour, 20-minute marathon.
"Obviously, at this time of the year, you know what's at stake," Davis said. "You know that you have to be almost perfect. That in itself kind of gives us a jolt, and we've been playing well."
Boston used nine pitchers, limiting the Orioles to one hit from the sixth inning through the 12th.
"It was a great effort by the bullpen," interim manager Torey Lovullo said. "One after another they stepped up and did their job."
Machado gave Baltimore a 5-4 lead with a solo shot in the fifth inning, but Travis Shaw tied it with a drive off Brian Matusz in the eighth.
Seeking to win his ninth straight start, Boston right-hander Joe Kelly left in the third inning with what the Red Sox described as "shoulder tightness and fatigue." He gave up four runs, three earned, and five hits in 2 1-3 innings.
"When they took me out, I was frustrated, obviously," Kelly said. "I wanted to stay in that game as long as I could. But, the shoulder and the arm just wouldn't let me be.
Though Kelly didn't take the loss, it marked the first time in eight outings that he allowed more than two earned runs. The extent of the injury will be determined after further evaluation.
"I don't think it's that big of a deal," he said. "It's just something I've been feeling lately. Just a little tight. That just about it."
Boston got a third-inning run when Ubaldo Jimenez walked David Ortiz on four pitches to load the bases for Shaw, who walked on a 3-2 pitch.
In the bottom half, Pearce hit a two-run homer, and a throwing error by Mookie Betts on a single to center allowed another run to score. That ended Kelly's night, and Matt Wieters greeted Craig Breslow with a sacrifice fly for a 4-1 lead.
The Red Sox tied it in the fifth when Xander Bogaerts and Pablo Sandoval sandwiched RBI singles around a run-scoring fly by Ortiz.
Jimenez allowed four runs, six hits and three walks in five innings.
The Orioles recalled RHPs Oliver Drake and Tyler Wilson; OF Junior Lake; and INF Christian Walker from Triple-A Norfolk. The Tides' season ended Monday with a playoff loss to Columbus.
Red Sox: 2B Dustin Pedroia, who is 6 for 19 (.316) since returning from the DL on Sept. 8, was back in the lineup after being held out Monday. Pedroia missed almost two months with a right hamstring injury.
Orioles: RHP Miguel Gonzalez (right shoulder tendinitis) has been throwing on the side. He intends to have a bullpen session off a full mound Sunday and hopes to start again this season. "That's our goal," he said.
Red Sox: LHP Henry Owens (2-2, 5.25 ERA) will make his eighth career start in the series finale. Owens was promoted from Triple-A Pawtucket on Aug. 4 to make his debut against the Yankees.
Orioles: Rookie Mike Wright (2-4, 5.45 ERA) makes his first career appearance against Boston.
Copyright 2015 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.