Pablo Sandoval hit a go-ahead two-run homer in the ninth and the San Francisco Giants edged the Arizona Diamondbacks, 2-1, in the middle portion of a three-game series.
Angel Pagan singled to lead off the inning and stole second base. With J.J. Putz (2-1) pitching with one out, Sandoval knocked the ball deep over the right field wall to put the Giants on top. Putz absorbed the loss and dealt with his fourth blown save of the season.
"Felt pretty good when it came off my bat," said Sandoval. "I'm happy to support my teammates, to win the game."
Madison Bumgarner pitched seven shutout innings, allowing just three hits and a walk, but earned a no-decision. Sandy Rosario (1-0) got the final out in the eighth, earning his first career major league win. Sergio Romo pitched a flawless ninth to notch his 10th save of the season.
Josh Wilson hit a solo homer in the eighth while starter Trevor Cahill allowed one run on four hits and a walk over eight-plus innings.
"It was real heartbreaking," said Wilson. "Any loss is upsetting, disappointing. When you lose in the ninth, it certainly stings a little bit."
Neither team had much offensive success in the game though both teams had an opportunity to score in the fourth. Marco Scutaro and Sandoval hit back-to- back singles, then advanced on a fielder's choice, but Gregor Blanco struck out with two outs. Martin Prado singled to lead off the bottom of the inning for the Diamondbacks and reached third on a Miguel Montero single with two outs, but Alfredo Marte lined out to right to end the frame.
Wilson's shot started the eighth. Santiago Casilla came in to relieve Bumgarner. On a 1-2 count, Wilson hit three foul balls before inevitably hitting the home run to give the Diamondbacks the lead. It was his first homer since June 5, 2011, when he was playing for the Brewers.
Romo came in for the ninth for the Giants. He struck out Paul Goldschmidt, got Cody Ross to pop out and retired Montero on a grounder to second to end the game.
Bumgarner threw 102 pitches while Cahill threw 88 ... Buster Posey was 0-for-3 with a walk and two strikeouts, snapping a 10-game hitting streak ... Romo has a 26-game scoreless streak against Arizona, tossing 19 innings during a span that dates back to Sept. 6, 2010 ... The Diamondbacks have not committed an error in 23 of 27 games this season, including 17 of their last 19.