SAN DIEGO (AP) - Slumping Brian Giles doubled in the winning run in the 10th inning and the San Diego Padres snapped a six-game losing streak with a 2-1 victory over the Colorado Rockies on Tuesday night.

Giles' one-out double off Matt Daley (0-1) scored pinch-hitter Edgar Gonzalez from first base to give the Padres their third win in the last 15 games.

Gonzalez reached on a one-out walk and Giles hit a ball off the right center-field wall that allowed Gonzalez to score the winning run without a throw.

Giles, who came into the game hitting .153 and was on a 3-for-27 skid, batted in the leadoff spot and went 2 for 3 with two walks.

Heath Bell (1-0) pitched two scoreless innings, allowing one hit and striking out four strikeouts for the win.

For the second straight night, the Padres set a record for their lowest attendance at Petco Park with an announced crowd of 13,646. On Monday, the same teams drew an announced crowd of 14,717 to the downtown park that opened in 2004.

Padres rookie Josh Geer and Colorado's Aaron Cook matched each other through eight innings.

Geer pitched seven shutout innings before Chris Iannetta homered into the second deck in left leading off the eighth to tie it 1-all. Iannetta hit a go-ahead grand slam off Cla Meredith on Monday night in the seventh inning of the Rockies' 9-6 win.

Six of Iannetta's 12 hits are home runs.

Geer allowed one run and five hits in eight innings and left with his third no-decision in as many starts. Geer, who made one relief appearance, has an ERA of 2.57 in his starts.

Geer struck out three and walked two, including a second-inning pass to Troy Tulowitzki to snap his string of 18 innings to open the season without a walk, the longest this year in the majors.

Cook allowed one run and five hits with five strikeouts and three walks in his longest outing of the season. Cook is 12-4 lifetime against San Diego, including a 5-1 record with an ERA of 1.61 in eight starts at Petco Park.

The Padres scored their first run on a bases-loaded sacrifice fly by Jody Gerut in the first.

Notes:@ Rockies 1B Todd Helton, who went 2 for 4, had multiple hits for the seventh time in eight games. ... Padres LF Chase Headley (sore shoulder) was scratched from the starting lineup after batting practice. ... Rockies LHP Alan Embree, who faced two batters in the ninth, moved past Charlie Hough for 31st on all-time list with 859 appearances.

Copyright 2009 The Associated Press.