TORONTO -- The Toronto Blue Jays scored three runs in the bottom of the 12th inning Tuesday night -- including the winner on a wild pitch --to come back and defeat the San Diego Padres 7-6.
With Edwin Encarnacion batting, Paul Clemens uncorked a wild pitch that allowed Devon Travis to score the winning run from third.
The Padres had taken the lead in the top of the 12th on a two-run homer by Matt Kemp against Jesse Chavez (1-2), who picked up the win.
Russell Martin led off the bottom of the 12th with a single against Carlos Villanueva (1-2) and was forced at second on a grounder to short by Kevin Pillar.
Darwin Barney doubled to left center to put runners at second and third. Devon Travis fouled off eight pitches on a full count before walking to load the bases.
Clemens came in and walked Jose Bautista to force in a run and cut the lead to one. Josh Donaldson's grounder to second forced Bautista at second to allow the tying run to score.
Alex Dickerson also homered for the Padres (43-58).
Chavez entered the game in the 10th and retired his first eight batters before allowing a two-out double to Wil Myers. Kemp followed with his 23rd homer of the in the season.
Josh Donaldson and Justin Smoak homered for the Blue Jays (57-44).
San Diego right-hander Andrew Cashner allowed four hits, three walks and three runs while striking out six in six innings.
Toronto starter Marcus Stroman allowed seven hits, one walk and four runs in 6 2/3 innings. The right-hander struck out seven.
Dickerson hit a three-run homer on a 1-1 curveball in the sixth to put the Padres into a 4-3 lead.
It was a club-record 24th straight game in which the Padres had homered. The last streak to go longer in the majors came in 2002 when the Texas Rangers homered in 27 games in a row.
The two-out homer followed a leadoff single by Travis Jankowski and one-out single by Kemp and was Dickerson's fifth of the season. He has homered in three straight games.
Sroman was removed for Joe Biagini after a two-out walk to Derek Norris and a double by Jankowski put runners at second and third. The inning ended on a grounder to shortstop.
Left-hander Brad Hand replaced Cashner in the bottom of the seventh and walked his first two batters, Russell Martin and Pillar.
Melvin Upton Jr., obtained Tuesday in a trade with the Padres, pinch hit for Smoak and forced Pillar at second with a grounder to first. Upton took second and Martin held third on a wild pitch. Devon Travis trickled an infield single to third to load the bases.
Jose Bautista struck out swinging on a wild pitch that allowed the tying run to score.
Left-hander Brett Cecil entered the game with two outs in the eighth and allowed a single and a stolen base to Dickerson before Ryan Schimpf grounded out to first.
Left-hander Ryan Buchter pitched a perfect bottom of the eighth for the Padres.
Roberto Osuna overcame two hit batters in the ninth.
Jose Dominguez pitched around a bit batsman in the bottom of the ninth.
Bautista led off the bottom of the first with a walk and Donaldson followed with his 25th homer of the season, a drive to center on a 2-2 fastball.
The Padres scored once in the top of the second on a leadoff single Yangervis Solarte and a one-out double by Schimpf.
Smoak opened the fifth with his 12th homer of the season, launching a 2-2 fastball to center.
The Blue Jays announced after the game that they had acquired right-hander Joaquin Benoit from the Seattle Mariners for right-hander Drew Storen, who had been designated for assignment, and cash.
NOTES: Toronto OF Melvin Upton Jr. was not in the Blue Jays' starting lineup Tuesday after being acquired in a trade that sent Class A RHP Hansel Rodriguez to San Diego. Upton had to return to Buffalo, N.Y., about a 90-minute drive away, and re-enter Canada to obtain a new work visa. He joined his new team about two hours before the start of the game. Toronto manager John Gibbons said Upton likely would start Wednesday against the Padres with RF Jose Bautista given a game at DH. RHP Ryan Tepera was optioned to Triple-A Buffalo to make roster room for Upton. ... Padres RHP Andrew Cashner, who started Tuesday, previously had never pitched against the Blue Jays but had been used as a pinch runner against them on June 2, 2013 at Petco Park. ... Padres RHP Luis Perdomo (4-4, 6.93 ERA) will face Blue Jays RHP Marco Estrada (5-4, 2.94 ERA) in the series finale Wednesday afternoon.