PHOENIX -- The only team in the major leagues not to be shut out this season, the Arizona Diamondbacks needed a five-run seventh inning to extend their streak on Friday.
The Diamondbacks had five hits, including four doubles, off four San Diego pitchers in the seventh for the 5-2 victory at Chase Field.
Miguel Montero started the rally with a double off starter Eric Stults and Paul Goldschmidt finished it with a two-run double off Anthony Bass.
"'Miggy' did a good job of getting that double, and things started getting rolling from there," said Diamondbacks outfielder A.J. Pollock, who had three singles and drove in a run in the seventh. "That was the big key. Sometimes, little things like that kind of spark the team. that was huge."
"I felt good. Hopefully, I'll start a roll," said Montero, who was 4 for 46 before that hit and is batting .191 this season.
Martin Prado doubled in Montero to tie the score at 1 and pinch-hitter Wil Nieves doubled in Prado for a 2-1 lead. Pollock singled in the third run before Goldschmidt's double ended the rally.
"The two back-breakers were the pitch to Nieves," San Diego manager Bud Black said. "It was a fastball that he just didn't get quite high enough. I think he was going for the strikeout on the high fastball and didn't quite get it there. The Goldschmidt big two-out double. That hurt as well."
Diamondbacks right-hander Brandon McCarthy (2-3) was the beneficiary of the big inning and won his second straight start, giving up one run and five hits in seven innings.
McCarthy has given up one run in his last 24 innings, dropping his ERA to a season-low 4.36. He shut out Miami on three hits in his previous start last Saturday and worked eight scoreless innings in a no-decision against Philadelphia on May 12. His 18 straight scoreless innings are a personal high.
"I wasn't really synched up. It was kind of one of those weird nights where you are kind of battling, hoping that guys hit it at people, which they did," McCarthy said.
"It's nice when you are not feeling great when you can still get through the lineup a few times. Kinda give the team a chance to win. The fact that we were able to catch up late and get it done makes it a good team performance."
San Diego left fielder Carlos Quentin had three hits, including two doubles, and scored a run. Quentin, who missed the previous two games with left knee soreness, doubled into the left field corner in the second and scored on Yonder Alonso's single.
Padres shortstop Everth Cabrera had two hits and led off the eighth with his third home run of the season for the final run of the game. The Padres are 22-25.
Heath Bell pitched the ninth for his seventh save as Arizona (27-21) broke a two-game losing streak.
Stults gave up singles to Pollock in the third and sixth, the only Arizona hits until the seventh.
"I felt like I got way with some pitches through the sixth inning," Stults said. "Actually, it felt like in the seventh inning I made the pitches I wanted to -- just didn't have the results."
NOTES: San Diego recalled LHP Tommy Layne from Triple-A Tucson and optioned RHP Burch Smith to Tucson on Friday. Smith gave up four runs in one-plus innings of a 5-3 loss against St. Louis on Wednesday. LHP Clayton Richard is expected to fill that spot the next turn through the rotation. Richard threw a bullpen session at Chase Field on Friday afternoon and is on track to be activated from the disabled list for a start early next week, manager Bud Black said. Richard has been on the disabled list since May 5. with an intestinal virus ... The D-backs plan to send the films of the latest MRI on OF Adam Eaton (left ulnar collateral ligament) to elbow specialist Dr. James Andrews for a second look, FOXSportsArizona.com reported. Eaton, expected to be the D-backs' starting center fielder before suffering his injury late in spring training, was shut down after feeling elbow soreness on a rehab assignment at Class A Visalia on Monday. ... San Diego had won 13 of the last 21 games in the series and eight of the last 10 at Chase Field, entering the weekend series.