Pittsburgh, PA (SportsNetwork.com) - Pinch-hitter Ike Davis singled in Starling Marte to cap a three-run rally in the ninth inning, lifting the Pittsburgh Pirates to a 3-2 win over the Arizona Diamondbacks.
Wade Miley was perfect into the fifth inning and came within three out of his first career complete game for Arizona, but left after Neil Walker and pinch- hitter Gregory Polanco singled to start the home ninth.
Addison Reed (1-4) retired Josh Harrison on a fly ball to center, but Marte then delivered a two-run double high off the wall in center. The relay throw home got away from catcher Miguel Montero and Marte advanced to third.
Andrew McCutchen was intentionally walked before Davis, pinch-hitting for Gaby Sanchez, lined a single to right field to win the game.
Miley, who was bidding to snap a personal eight-game winless (0-3) stretch, gave up four hits and had 10 strikeouts. He hasn't won since May 10 on the road against the Chicago White Sox.
"He was in total command of that game," Diamondbacks manager Kirk Gibson said. "I'd like to see it the next time out as well."
Miguel Montero and Aaron Hill hit back-to-back RBI singles in the fifth inning for the Diamondbacks, who lost their second in a row.
Jeff Locke surrendered eight hits over eight innings, while Ernesto Frieri (1-0) got the win, Pittsburgh's eighth in 10 games, despite giving up three hits in the ninth.
"We just kept battling and tried to make something happen. Through eight, not a whole lot happened for us," Pirates manager Clint Hurdle said.
Miley retired the first 14 batters he faced before allowing an infield hit to Jordy Mercer with two down in the fifth. Mercer hit a slow bouncer to the third base side of the mound. Miley charged, but threw wildly to first. The ruling on the play was a hit and an error.
Arizona wasted chances with men in scoring position in the first two innings, but broke through thanks to three straight hits in the fifth. Paul Goldschmidt singled to left with two outs and then stole second before coming home on Montero's hit to right field. The sweep tag from Russell Martin was late. Hill then hit a bloop single to right field.
Arizona threatened to stretch its lead in the ninth when Frieri gave up three hits, the last a single to Ender Inciarte, but Gerardo Parra was thrown out at the plate.