Wade Miley dominated the Pirates for eight innings, but he couldn't get them through the ninth as the Pirates walked off with a 3-2 win.
Miley cruised through most of the game, working quickly, throwing tons of strikes and only allowing one hit through seven innings. Through six innings or so, it looked like the game might take little over two hours, and the Pirates might not get much more than that one hit.
Jeff Locke was cruising along, too, until there were two outs in the fifth, when Paul Goldschmidt singled. At that point, Locke picked Goldschmidt off, and the inning should have been over, but Gaby Sanchez threw across Goldschmidt's body to second, and the ball headed into the outfield. Then Miguel Montero hit a ground-ball single to make it 1-0 and advanced on the throw. Aaron Hill followed with a single of his own, making it 2-0. Locke went eight innings, throwing 105 pitches and striking out three. Costly Sanchez miscue aside, he had the benefit of some strong defense behind him particularly from Pedro Alvarez.
Ernesto Frieri pitched the ninth and needed a play at the plate to escape with a scoreless inning, although one of the three hits against him was a little flare to the outfield and another was a ground ball. The Diamondbacks allowed Miley to hit with two men on that inning, and Frieri struck him out. Miley had thrown 106 pitches by then, and the Diamondbacks' decision to stick with him would come back to bite them, as the Pirates finally got to Miley in the ninth.
Neil Walker and Gregory Polanco (who pinch-hit for Frieri) led off with singles, and the Diamondbacks replaced Miley with closer Addison Reed. Reed got Josh Harrison to line out, and then got two strikes against Starling Marte in what at first looked like a terrible at bat for Marte. Marte caught hold of Reed's third pitch, though, and drove it to the wall in center. Ender Inciarte couldn't come up with it, and Walker and Polanco came around to score. Reed intentionally walked Andrew McCutchen, but then Ike Davis finished the Diamondbacks off with a walk-off line-drive single. How quickly things change -- Miley dominated throughout the game, but Locke did enough to keep the Pirates close, and they took advantage when the Diamondbacks stuck with Miley a little too long.
The Pirates improved to 43-40 with the victory.