MIAMI -- Giants third baseman Pablo Sandoval's first-inning shot into the right-field seats Friday off the Marlins' Ricky Nolasco was one for the record books.

Sandoval's two-out swing on a 0-1 pitch was the Giants' 20th consecutive solo homer, which passed the 1914 Philadelphia Phillies for the Major League record. The shot accounted for the Giants' only run in a 2-1 loss.

"You like 20 home runs, but not all solos," said manager Bruce Bochy. "And we're missing that. There's no getting around it. Somebody popping one, or even a double with men on base. We're getting our singles here and there, but we're not doing any damage, and that's why we're stuck in this rut here with getting one or two runs."

According to "Home Run Guru" David Vincent, the previous Giants franchise record was 15 in a row, which was achieved during the 1997 season.

The last time a Giants homer accounted for more than one run came on July 6 against San Diego on Nate Schierholtz's two-run blast.