The San Diego Padres can beat the Los Angeles Dodgers, after all.

Austin Nola hit a sacrifice fly with one out in the 10th inning for the Padres,

who won 3-2 on Saturday night to snap a 10-game losing streak to the rival Dodgers.

Nola’s sac fly scored rookie CJ Abrams, who started as the automatic runner at second base

and advanced on Trent Grisham’s sacrifice bunt. Justin Bruihl (0-1) took the loss.

The Padres blew a 2-0 lead in the eighth but were able to salvage six terrific innings by Yu Darvish and Jake Cronenworth's first homer.

San Diego had been outscored 57-23 during the losing streak to the Dodgers, which dated to Aug. 24.

Losing three straight series to Los Angeles late last season helped contribute to the Padres’ stunning collapse,

which left them with a losing record for the 10th time in as many full seasons since 2011.

“Last year was last year and this year’s this year, so we’re 1-1 against them.

Dodgers vs Padres