A stomach ache struck Chad Gaudin just before he took the mound for the Giants on Sunday.
The Arizona Diamondbacks still could do little damage against the ailing right-hander.
Gaudin, who said he threw up a couple of times while his team was at-bat during the game, pitched six strong innings for the second straight start in the Giants' 6-2 victory on Sunday.
Gaudin (2-1), normally a long reliever who was filling in for the injured Ryan Vogelsong, struck out seven and walked one intentionally.
Not that he felt great doing it.
"This came on like right at the start," Gaudin said. "I thought maybe it was nerves in the beginning but it wasn't. It just kind of lingered on during the whole game. So I just had to battle it and get it through."
The Giants took two of three in Arizona to move to 1½ games behind the first-place Diamondbacks in the NL West. Colorado, a winner in extra innings over San Diego, also is 1½ back.
San Francisco, 5-1 at Arizona this season, won the last two games of the series by a combined score of 16-7 after losing the opener 3-1 on a late homer by Paul Goldschmidt.
"We're a better offensive team than what we've been doing the last couple of weeks," Giants manager Bruce Bochy said. "Every team goes through it. We went through a tough stretch here. It's good to see the bats come to life. It seems they got some confidence going last night and carried that into today."
Marco Scutaro had three hits, including a solo home run, scoring twice. Brandon Belt also had a solo home run.
"The last couple of days we played as a team. We played good defense with good pitching and we scored some runs," Scutaro said. "Hopefully we can keep doing that for the next series."
Both homers came off Tyler Skaggs (1-1), who gave up five runs on eight hits in five innings.
NOTE: Giants catcher Buster Posey continues to lead the overall All-Star balloting for the National League, and San Francisco's Pablo Sandoval and the New York Mets' David Wright are waging a tight race for the starting spot at third base. Sandoval has received 1,674,157 votes compared with Wright's 1,473,38.
Sandoval could hit DL
An MRI on Giants third baseman Pablo Sandoval's left foot Sunday revealed no new damage, but Sandoval said the strained muscle was "sore" and that he "can't play on it right now."
Sandoval aggravated the lingering foot injury in his first at-bat Saturday night.
"That was stupid," Sandoval said of playing after taking three of the prior six days off. "I don't know what I was thinking."
Giants manager Bruce Bochy said a decision on Sandoval's roster status might be made on the flight to Pittsburgh and that a trip to the disabled list is possible. "We need to get this calmed down," Bochy said. — The Sports Xchange