Padres 5, Diamondbacks 3 (14 innings)

SAN DIEGO -- Melvin Upton Jr. hit a two-out, two-run walk-off homer in the bottom of the 14th inning Saturday night to give the San Diego Padres a 5-3 win over the Arizona Diamondbacks at Petco Park.

Upton's drive to center field off Ruddy De La Rosa cleared leaping Diamondbacks center fielder David Peralta.

The win snapped a four-game losing streak for the Padres. It was also their first win in five games at Petco Park this season. The Padres opened the season by setting a Major League record with three straight shutout losses to the Los Angeles Dodgers.

Wil Myers started the Padres' winning rally when he dropped a single into right against De La Rosa -- Arizona's ninth pitcher -- for his fourth hit of the game.

The Padres had built a 3-0 lead behind right-handed starter Andrew Cashner before the Diamondbacks rallied with single runs in the fifth, seventh and eighth to tie the score.

Cashner, who is still looking for his first win this season after posting a 6-16 record in 2015, allowed one run, four hits and two walks with five strikeouts in six innings.

Padres relievers Kevin Quackenbush and Brandon Maurer each gave up a single run with the help, respectively, of an error and a two-out wild pitch.

In the seventh, Arizona left fielder Yasmany Tomas hit a one-out double off Quackenbush and advanced to third when Upton misplayed the ball in left center. Tomas scored the unearned run on a sacrifice fly by right fielder Brandon Drury.

Pinch-hitter Rickie Weeks opened the eighth with a double off Maurer, reached third on a groundout and scored on a two-out wild pitch by Maurer, who had frozen Weeks at third with a strikeout of Peralta.

Both teams stranded the winning run in scoring position in the ninth and 10th innings.

Defensive plays by Padres right fielder Travis Jankowski and Myers at first base stopped the Diamondbacks in the 11th. Jankowski made a sensational headfirst diving catch in short right center of a Nick Ahmed line drive to open the inning and Myers made a diving stop and a flip to first to get Jean Segura for the third out with a runner on.

Padres reliever Brad Hand kept the score tied in the top of the 12th when he struck out three Diamondbacks around two walks.

In the bottom of the 12th, the Padres had runners on first and second with one out when Diamondbacks closer Brad Ziegler struck out Jankowski and third baseman Adam Rosales.

After Padres left-hander Ryan Buchter struck out all three Diamondbacks he faced in the top of the 13th, the Padres loaded the bases with one out in the bottom of the inning. But Ziegler struck out pitcher Colin Rea, who was pinch-hitting, then retired Jay on a fly to left.

The Padres took a 2-0 lead in the second while the Diamondbacks were losing starting pitcher Shelby Miller to a freak injury.

Upton started the inning with a one-out single and then stole secone base. Upton scored when Alexei Ramirez lined a two-out single to center, with the shortstop reaching third when the ball skipped past Arizona center fielder Socrates Brito for an error.

Miller walked Padres second baseman Alexi Amarista to pitch to Cashner. On his 1-and-1 pitch to Cashner, Miller's right hand hit the ground on his follow through. Miller suffered cuts to both knuckles of his right index finger, which was visibly bleeding.

Despite two visits from the Arizona trainer, Miller continued and walked Cashner before issuing a full-count, base-loaded walk to slumping center fielder Jon Jay to force in the second run of the inning. The trainer had checked Miller's right hand a second time after the 2-and-0 pitch to Jay.

Miller departed after walking Jay, who had been hitless in 15 straight at-bats. Former Padres farmhand Matt Buschmann entered the game and struck out Myers to end the threat.

But right fielder Matt Kemp opened the third with the first home run hit by the Padres at Petco Park this season, a 385-foot line drive off Buschmann to make it 3-0.

The Diamondbacks got on the board in the top of the fifth. Yasmany Tomas singled with one out and moved to third on pinch-hitter Brandon Drury's double over Jay's head in center. Tomas scored on a grounder to second by second baseman Jean Segura.

NOTES: At different times during Friday night's game, the Padres had two players -- CF Jon Jay and 1B Wil Myers -- who were both in 0-for-14 streaks while RF Matt Kemp was in a 2-for-19 slump, 2B Cory Spangenberg was in a 2-for-18 rut and C Derek Norris was 1-for-10. ... Saturday marked only the third time this season that the Diamondbacks hit the pitcher in the ninth spot in the order. Diamondbacks manager Chip Hale said he was doing it to kick-start the offense. ... Arizona RHP Daniel Hudson has held the Padres scoreless in six straight outing at Petco Park. ... C Austin Allen is hitting .636 (21-for-33) for Single-A Fort Wayne of the Midwest League. Allen's batting average has fallen each of the last three days although he got two hits in each game. ... Myers has struck out at least once in all 12 games played by the Padres this season.
Final/141st2nd3rd4th5th6th7th8th9thXRHE
Arizona DiamondbacksDiamondbacks00001011003111
San Diego PadresPadres02100000025142
WP:Luis Perdomo (SD)
LP:Rubby De La Rosa (AZ)
Season Series
San DiegoStatsArizona
9-10Vs10-9
.263Batting Average.253
5.4Runs / Game4.5
23Home Runs21
17Errors11