CHICAGO (AP) A dash of power, followed by patience at the plate, paid off for the San Diego Padres.

Erick Aybar hit a tying home run in the sixth inning, Luis Torrens walked with the bases loaded against Koji Uehara in the eighth and the Padres stopped a three-game losing streak by beating the Chicago Cubs 3-2 on Wednesday.

Torrens, a rookie who started at catcher for the second straight game for the injured Austin Hedges, took a 3-1 fastball that sailed inside with two outs to force in the go-ahead run.

''It's tough to get some veteran guys to do that,'' manager Andy Green said. ''Sometimes they want to win the game so bad swinging the bat that they don't realize the walk is just as powerful in that situation.''

Uehara (2-4), the fifth of six Cubs relievers, replaced Pedro Strop starting the eighth and allowed singles to Wil Myers leading off and Cory Spangenberg with one out.

Aybar was intentionally walked, loading the bases, Matt Szczur fouled out and then the 21-year-old Torrens walked.

''I think always focusing on little things, focusing on work and making adjustments,'' Torrens said through a translator.

Jose Pirela started the comeback with an RBI single in the fifth off Eddie Butler, and Aybar tied the score against Brian Duensing.

Chicago rookie Ian Happ hit a two-run homer in the fourth against reliever Craig Stammen, going deep for the second straight game and third time in four. Happ is hitting just .221, but has gone deep 10 times.

''I feel like the at-bats are getting better,'' Happ said. ''You're seeing some balls go out of the yard and hopefully if I keep making contact, some more will fall.''

Phil Maton (1-0), the third of five Padres relievers, pitched a scoreless seventh for his first major league win. Brandon Maurer got two outs for his 13th save in 15 chances.

Maton, a 24-year-old from Chatham, Illinois, was delighted with where he got the victory.

''Real cool'' Maton said. ''Growing up in central Illinois, all the Cubs fans lived in the area. Especially this awesome atmosphere, hard to beat it.''

Miguel Diaz, making his third major league start, left with one out in the third inning because of a right forearm strain. He allowed one hit and a walk, then was replaced by Stammen.

Cubs starter Eddie Butler gave up one run, five hits and three walks in four-plus innings, leaving after Stammen doubled leading off the fifth and scored on Pirella's single.

Chicago's Anthony Rizzo went 0 for 4, stopping a career-high 14-game hitting streak. He failed to reach base in his opening at-bat for the first time since being moved the leadoff spot eight games earlier.

FACEOFF

Nolan Patrick, a projected No. 1 pick on Friday at the NHL draft, threw out the ceremonial first pitch. He was joined two other top prospects, Casey Mittelstadt and Gabriel Vilardi, in a pregame ceremony.

TRAINER'S ROOM

Padres: Green expects Diaz to miss his next start. He said the right-hander was ''experiencing tightness'' and ''having some trouble spinning the baseball.'' . 2B Yangervis Solarte (strained left oblique) is ''probably a day away from heading to the DL,'' Green said before the game. The cleanup hitter was removed from Tuesday's game in the first inning. ... Hedges (bruised thigh), hit hard by Rizzo in a collision at the plate on Monday, was available to pinch hit but did not play.

Cubs: OF/C Kyle Schwarber went 0 for 3, dropping his average to .171. He missed Tuesday's game, a day after fouling a pitch off his right ankle on Monday. ... OF Jason Heyward missed his third game after scraping his left hand sliding in an attempt to catch a foul ball on Sunday.

UP NEXT

Padres: Rookie RHP Dinelson Lamet (2-2, 7.50) starts Friday's homestand opener against Detroit and RHP Michael Fulmer (6-5, 3.45), the AL Rookie of the Year. Lamet struck out 12 at Milwaukee on Saturday.

Cubs: RHP Jake Arrieta (6-5, 4.64) is to open an 11-game tip Friday at Miami, which starts LHP Jeff Locke (0-2, 4.58). Arrieta has failed to finish the fifth inning in his last two starts, allowing seven runs, nine hits and five walks in nine innings.

Copyright 2017 by STATS. Any commercial use or distribution without the express written consent of STATS is strictly prohibited.