Updated

Carlos Gomez raced home following two throwing errors after he stole second base in the bottom of the ninth inning to give the Milwaukee Brewers a 2-1 victory over the Arizona Diamondbacks on Sunday.

Gomez entered the game as a pinch-runner for Aramis Ramirez, who led off by drawing a five-pitch walk from Diamondbacks reliever Patrick Corbin (2-4). After Corey Hart flew out, Gomez stole second, jumped to his feet as the throw from catcher Miguel Montero ended up in center field. Outfielder Gerardo Parra picked up the ball but threw wildly to third, allowing Gomez to score the winning run.

John Axford (2-5) pitched a scoreless ninth inning.

Jason Kubel hit a tying homer in the eighth inning on the first pitch from Brewers reliever Francisco Rodriguez. It was the 12th consecutive game in which Arizona hit a home run, extending a season high.

Brewers starter Yovani Gallardo appeared as though he would run his record against Arizona to 7-0. He gave up three hits in 6 2-3 innings, walking six and striking out five.

He dueled with Diamondbacks' starter Josh Collmenter, who gave up three hits and one earned run in six innings, while striking out five batters and allowing no walks.

Gallardo left with two outs in the top of the seventh and after the Diamondbacks loaded the bases without a hit. After retiring the first two batters, Gallardo walked pinch-hitter Chris Young. Willie Bloomquist reached on a fielding error by Brewers second-baseman Rickie Weeks. Young advanced to third when Weeks threw wildly to first base. Gallardo then walked Stephen Drew. Brewers reliever Jose Veras took over for Gallardo and struck out Justin Upton, who swung and missed at a fastball.

Gallardo, who entered the game with a 1.21 ERA in six career starts against the Diamondbacks, managed to keep the Diamondbacks off the scoreboard despite inconsistent command. He threw 117 pitches, just 66 for strikes. He also threw a wild pitch.

Collmenter came into Sunday afternoon's contest with a 1-0 record and a 1.17 ERA in three appearances (two starts) against the Brewers in his career.

He held the Brewers hitless through three innings, facing the minimum number of batters, before surrendering a lead-off ground-rule double to Norichika Aoki to lead off the fourth. Aoki advanced to third on a Collmenter wild pitch and scored on Nyjer Morgan's groundout.

The game was delayed at the top of the second inning for an emergency medical situation involving a non-uniformed employee of the Milwaukee Brewers. The team didn't release any details. Medical personnel could be seen gathered in the Brewers bullpen for several minutes before the person was transported by stadium ambulance across the outfield warning track to a tunnel leading out of stadium.

NOTES: Brewers outfielder Ryan Braun was selected as an All-Star Game reserve but is expected to start due to an injury to the Los Angeles Dodgers' Matt Kemp. Braun had been selected to start in four consecutive All-Star Games prior to this season. He didn't play in last year's game due to a strained left calf. .Diamondbacks starting pitcher Wade Miley was selected to the NL All-Star squad for the first time. Miley started Saturday night's game against the Brewers, giving up eight hits, eight runs and three home runs in just 3 and 2-3 innings of work. "I was mad about last night and frustrated," Miley said. "It's a 'pick-me-back-upper,' no doubt." .The Brewers sported special green jerseys with red trim featuring the word "Birrai," the Italian translation for "Brewers," as part of Italian Heritage Day at Miller Park.