,SAN DIEGO (AP) — David Eckstein homered in the bottom of the 10th inning to give the San Diego Padres their fourth straight win, 3-2 over the San Francisco Giants on Monday night.

Eckstein's leadoff shot against Jeremy Affeldt (2-2) just made it inside the left-field foul pole against the brick Western Metal Supply building.

Tim Stauffer (2-0) pitched the 10th.

San Francisco tied the game at 2 in the ninth when Juan Uribe hit a hanging 3-2 curveball into the left-field stands off Padres closer Heath Bell with one out.

It was Bell's first blown save in four chances.

Adrian Gonzalez and Will Venable hit sacrifice flies to give the Padres a 2-1 lead heading into the ninth before Uribe's second home run.

At 7-6, San Diego is above .500 for the first time since May 27 when it was 24-23.

Clayton Richard pitched 6 1-3 solid innings for the Padres and reliever Luke Gregerson to escape a big jam in the seventh inning.

After consecutive singles by Uribe and Andres Torres to lead off the seventh, they advanced on a sacrifice bunt by Nate Schierholtz before Gregerson replaced Richard and struck out pinch hitter Mark DeRosa and Eugenio Velez.

Richard allowed one run on seven hits with five strikeouts and one walk.

Gonzalez staked the Padres to a 1-0 lead in the first inning and Venable put San Diego ahead 2-1 in the sixth inning following Kyle Blank's leadoff triple.

Matt Cain gave up just two runs on seven hits over six innings. The right-hander is just 1-6 in 14 career starts against the Padres, including an 0-4 record in his last seven starts at Petco Park, during which he received just five runs of support.

The Giants, who have lost eight of 10 at Petco Park, tied the score in the fourth after Edgar Renteria led off with a double, an infield single by Pablo Sandoval and Aubrey Huff's single.

NOTES: Richard nearly was credited with a home run in the fourth inning, but it was a ground-rule double. ... Padres 3B Chase Headley barely got out the way of the splintered barrel of Uribe's bat in the fourth inning. Uribe hit a foul ball toward the stands down the third-base line. His bat splintered and the barrel flew right at Headley, who reacted at the last minute and ducked as the bat went over his head. ... DeRosa pinch-hit after missing Sunday's game at Los Angeles with tightness in his right hamstring.