SAN DIEGO — It was an emotional day for Shelby Miller, who said goodbye to friend and teammate Joe Kelly and then went out and helped the St. Louis Cardinals rebound from their ugliest loss of the season.
Miller and three relievers combined on a three-hitter, and Oscar Taveras hit a two-run homer for the Cardinals, who beat the San Diego Padres 6-2 on Thursday to avoid a three-game series sweep.
The victory came hours after the Cardinals traded Kelly and Allen Craig to Boston for right-hander John Lackey.
Miller teared up afterward while talking about Kelly.
"That's a tough one for all of us, to lose two guys like that, especially Joe for me," Miller said. "I grew up with him and came up through the farm system with him. He's going to do well there. I wish him all the best."
Miller (8-8) held San Diego to two runs and three hits in six innings. He struck out five and walked none in his first win since June 7.
St. Louis roughed up rookie Odrisamer Despaigne a day after playing what manager Mike Matheny called the team's ugliest loss of the season, a 12-1 drubbing Wednesday night.
"They're pros," Matheny said. "I mean, things are going to happen in our lives that we've just got to be able to compartmentalize. These days here I think prove the toughness that these guys develop through the season. You have to put it aside and get the job done."
Taveras connected with two out in the second and sent a drive to right for his second homer. But St. Louis' 2-0 quickly evaporated.
Jedd Gyorko, on a tear since returning Monday from a 44-day stay on the disabled list, homered to right off Miller with one out in the bottom half. It was Gyorko's second in two games and seventh overall. Will Venable homered to right with two outs, his fifth.
"There were a couple of solo homers there that got him on the edge a little bit, and then he stepped in and started making some really nice pitches," Matheny said. "I saw him driving the ball down through the bottom of the zone. He pitched a little more."
Said Venable: "I didn't see a pitch from him other than a fastball, and it was a good one. He just pitched well. When you are aggressive with your fastball, you have the option of going to your off-speed stuff. It wasn't like we were beating him on his fastball. We hit a couple of them, but he was doing what he wanted really."
St. Louis jumped in front again on Matt Holliday's two-run single in the third, and Peter Bourjos added an RBI single in the sixth.
Despaigne (2-3) allowed six runs and nine hits in 5 2/3 innings. He won his first two starts but is 0-3 in his last five outings.