PITTSBURGH - Pirates catcher Russell Martin didn't start Thursday's game. Rather, he ended it.
Martin drew a bases-loaded walk off Tony Cingrani with two outs in the 12th inning and Pittsburgh beat the Cincinnati Reds 4-3 to avoid a three-game sweep.
Cingrani's first pitch buzzed in low around the ankles of Martin, who drew boos from those left in attendance for not letting the ball hit him to score the winning run.
"I did wonder maybe if I would've got hit the game would be over," Martin said. "But when it's at your feet you just react, and I just reacted."
Later, Cingrani's 3-1 pitch caught what Reds manager Bryan Price thought was a part of the strike zone established during the game's proceedings.
Instead, it was ball four.
"I'm not saying we would have won this game," Price said. "But it certainly didn't give us an opportunity to go out there and compete in the 13th."
Cingrani (2-8) took the loss after he gave up a single to Gaby Sanchez, balked him to second, intentionally walked Josh Harrison and hit Clint Barmes with a pitch to load the bases.
Martin entered the game in the 10th and wound up walking twice.
Justin Wilson (2-0) retired the Reds in order in the top of the 12th.
Devin Mesoraco hit a solo homer in the Reds ninth off Jason Grilli, who blew his fourth save in 15 chances this season.
Grilli gave up a home run for the second time in three days, and has allowed four in 20 games this year. He gave up four homers in 54 appearances last season.
Billy Hamilton led off the game with a double against Jeff Locke, stole third and scored on a sacrifice fly by Joey Votto to put the Reds ahead 1-0. Votto doubled and scored on a sacrifice fly by Jay Bruce for a 2-0 lead in the fourth.
Locke settled down though and worked six innings in which he allowed two runs on six hits and a walk.
Gregory Polanco opened the fourth with a single for Pittsburgh's first runner against Homer Bailey and the Pirates later scored three times in the fifth. With runners at the corners and Polanco at the plate, Bailey went through his pitching motion but did not release the ball and was called for a balk.
""It was one of those deals where you're thinking more about not falling than throwing the ball," Bailey said. "My back foot slipped out from me then I land on the side of my other the foot, so it was a circus all the way around. I was just trying not to fall backward."
Pirates manager Clint Hurdle offered that the call may have helped his hitters gain some traction against Bailey after he started with three perfect frames.
"I think that the balk call might have leaked in a little bit," Hurdle said. "Whether it rattled him, I don't know, he's a pro."
Polanco, Starling Marte and Andrew McCutchen followed with singles that scored two runs for a 3-2 Pittsburgh lead.
"They hit some balls off the end of the bat, had some balls fall in," Bailey said.
Price pulled Bailey in the sixth and as reliever Sam LeCure took his warmup pitches, heavy rain began to fall and there was a 35-minute delay.
The Pirates twice put runners in scoring position after Mesoraco's tying homer.
ST. LOUIS (AP) - Ryan Howard homered and drove in three runs and rookie David Buchanan pitched into the eighth inning, sparking the Philadelphia Phillies to a victory.
Howard, a St. Louis native, has hit safely in 22 of 27 regular-season games at Busch Stadium. He has 38 RBIs in St. Louis and a .374 batting average.
Howard also has been hot on the road. In his last 15 games away from Philadelphia, he is hitting .350 with three homers and 14 RBI.
Buchanan (3-3) made his deepest start yet, pitching 7 2-3 innings. He threw 105 pitches and kept the Cardinals off balance and off the scoreboard until the eighth. Buchanan allowed four hits and a walk while striking out four.
Jonathan Papelbon pitched the ninth to pick up 17th save in 19 opportunities.
WASHINGTON (AP) - Gavin Floyd, recently returned from Tommy John surgery, pitched six scoreless innings before leaving with an elbow injury, the latest setback for an injury-riddled Atlanta Braves' rotation and one that tempered a victory.
Floyd flexed his pitching arm awkwardly after giving up a long foul ball to Jayson Werth on the first pitch of the seventh inning. The Braves trainer went to the mound, examined Floyd's elbow and then he left the game for reliever Anthony Varvaro.
METS 1, MARLINS 0
MIAMI (AP) - Zack Wheeler tossed his first shutout and made David Wright's first-inning home run hold up in the New York Mets' victory.
Wheeler (3-7) outdueled Marlins starter Andrew Heaney, who made his major league debut, in the longest outing of his career.
PHOENIX (AP) - Yovani Gallardo outpitched Chase Anderson in seven strong innings, Carlos Gomez extended his hitting streak to 15 games and the Milwaukee Brewers beat the Arizona Diamondbacks.
A day after losing to Arizona on a walk-off hit, the Brewers beat the Diamondbacks for the third time in four games behind Gallardo (5-4). The right-hander held Arizona to a run for his 86th career win, tying Ben Sheets for fifth on Milwaukee's all-time list.
SAN DIEGO (AP) - Rookie Jesse Hahn pitched seven strong innings and pinch-hitter Chris Denorifa singled in the go-ahead run in a four-run seventh for the San Diego Padres, who rallied for the second straight game to beat the Seattle Mariners.