Padres rally to beat Mariners 2-1 on Medica's pinch-hit single in 8th

San Diego Padres players stand in right field observing 19 seconds of silence in honor of Hall of Fame player Tony Gwynn during ceremonies prior to a baseball game against the Seattle Mariners Wednesday, June 18, 2014, in San Diego. Gwynn died Monday of cancer at the age of 54. (AP Photo/Lenny Ignelzi) (The Associated Press)

The number 19 center in a home plate design is worn on the chest of all San Diego Padres in honor of Hall of Fame player Tony Gwynn during a baseball game against the Seattle Mariners Wednesday, June 18, 2014, in San Diego. Gwynn died Monday from cancer. (AP Photo/Lenny Ignelzi) (The Associated Press)

Pinch-hitter Tommy Medica singled in the go-ahead run in the eighth inning and the San Diego Padres beat the Seattle Mariners 2-1 on Wednesday night in their first home game since Hall of Famer Tony Gwynn died of cancer Monday.

The light-hitting Padres honored Gwynn before the game and then cobbled together just enough offense for their second win in 10 games.

Starters Felix Hernandez and Andrew Cashner pitched well but didn't get a decision. Hernandez struck out 10 and allowed only three singles in seven innings, with no walks. But he allowed the Padres to tie it at 1 on a wild pitch with two outs in the sixth.

Everth Cabrera started the winning rally by beating out an infield single on a chopper against Charlie Furbush (0-4). Cabrera was sacrificed over by Alexi Amarista and scored on Medica's liner to center. James Jones throw home was late and off line.