Chris Davis stroked a two-run double in the 10th inning to boost the Baltimore Orioles to a 5-2 win over the San Francisco Giants.
Chris Tillman was in line for his 15th win of the season, but Jim Johnson (3-7) couldn't nail down his 40th save as he allowed the tying run in the ninth inning - a Hunter Pence single.
With Javier Lopez (1-2) pitching to start the 10th, Manny Machado doubled off the glove of shortstop Brandon Crawford. Adam Jones was intentionally walked with two outs before Davis cranked a high fly ball to right-center that rolled to the wall. Matt Wieters followed with an RBI single up the middle.
"I'm just looking for a pitch over the plate," Davis said. "That's a tough matchup. Lopez is definitely tough on left-handers."
Tommy Hunter retired the side in order for his third career save, all this year.
Tillman racked up a career-high nine strikeouts over eight innings. The righty gave up four hits, including a homer to Brandon Belt in the sixth inning.
Jones singled in a run in the first inning and J.J. Hardy led off the second with his 20th homer of the year, as the Orioles won their third in a row and sent the Giants to their fifth loss in seven games.
Machado doubled with one out in the game and he scored on a Jones base hit to center. Hardy, who homered to left, has three straight 20-homer seasons.
Tillman retired 14 straight batters until Belt homered to right-center field.
Belt singled and Buster Posey walked to start the ninth. Pence then bounced a hit up the middle. Davis made possibly a game-saving stop when he dove to corral Pablo Sandoval's grounder, which turned into a force play at second.
Roger Kieschnick struck out swinging before the Orioles gave Sandoval second base. Gregor Blanco, who came into the game mired in a 4-for-48 slump since the All-Star break, the lowest average in the majors in that span, lined out to second to send the game to the 10th.
Giants righty Ryan Vogelsong made his first start since he fractured his right hand on May 20 against Washington. Vogelsong allowed six hits over six innings.
"He pitched well," Giants manager Bruce Bochy said. "He got better as he went along and gave us six good innings. He did a great job. That's a nice effort."
Hardy became the third Oriole shortstop with three consecutive 20-plus homer seasons, joining Miguel Tejada (2004-06) and Cal Ripken Jr. (10 straight from 1982-91) ... Davis is hitting .477 (21-for-44) in interleague play this year with eight games left. He has a chance to become the second player ever to hit .500 or better in interleague play in a single season. Kansas City's Joe Randa batted .508 in 1999 ... The Orioles are 9-2 this year when playing in California ... The Giants, who fell to 3-9 in interleague games, went 1-for-7 with men in scoring position. They are 5-for-39 in those situations in the last five games ... With the move to activate Vogelsong off the 60-day DL, the Giants also optioned pitcher Jean Machi to Triple-A Fresno.