SAN FRANCISCO — In a game that started Tuesday ended early Wednesday, Hector Sanchez singled home the winning run with two outs in the 12th inning and the San Francisco Giants beat the Los Angeles Dodgers, 3-2, after Brandon Belt’s tying double in the ninth.
Hunter Pence had four hits for the Giants, who have won three of four.
Brandon Crawford singled off Brandon League (0-1) with one out in the 12th and advanced to second on a groundout by Brandon Hicks. His bouncer deflected off third baseman Juan Uribe to shortstop Hanley Ramirez, who threw to first for the out.
But the Dodgers were unable to get the lead runner on the play, and it cost them.
Crawford went to third on a wild pitch and Sanchez hit a sharp one-hopper that glanced off the glove of diving second baseman Justin Turner and into center field.
Turner slammed his hand on the ground in frustration.
Yusmeiro Petit (1-1) worked a scoreless inning for the win in a game that took 4 hours, 54 minutes and ended after midnight on the West Coast.
Angel Pagan singled with one out in the ninth and Belt followed with a double into the left-field corner against closer Kenley Jansen. Pagan scored to tie it at 2.
Crawford also drove in a run for the Giants.
Turner’s pinch-hit single in the seventh inning gave the Dodgers a 2-1 lead.
Uribe had three hits, including a home run and a double, and scored twice for the Dodgers, who had their three-game winning streak snapped. Yasiel Puig added two hits, including a triple.
Juan Gutierrez pitched 2 1/3 shutout innings with three strikeouts to keep the Giants close.
Josh Beckett allowed two hits over five scoreless innings in his second start of the season for the Dodgers. He walked five and struck out four.
Giants starter Tim Lincecum gave up one run and five hits in five innings. He did not walk a batter and struck out five.