SAN FRANCISCO -- The Los Angeles Dodgers didn't give up a single run in the first 31 innings of this season, a season-opening streak that ranks as the second longest in major league history.
Then the tide turned.
The San Francisco Giants scored 12 times in their final four times at bat Thursday afternoon, putting an end to the Dodgers' shutout streak and unbeaten record in resounding fashion with a 12-6 victory in their home opener at AT&T Park.
The Giants' 17-hit assault included 13 singles but featured an exclamation mark at the end -- an eighth-inning grand slam by Hunter Pence.
"I think there's a lot to be excited about in our lineup," said Giants second baseman Joe Panik who had three hits, three runs and three RBIs -- all after the fourth inning. "We kind of showed it today. We have a lot of diversity."
The Dodgers led 4-0 based mainly on two RBI doubles from Adrian Gonzalez and one from Scott Van Slyke against Giants starter Jake Peavy. Another run scored when replay review overturned a "neighborhood play" by Panik. That extended the Dodgers' major league record for unanswered runs to start a season to 29.
It ended there.
Los Angeles left-hander Alex Wood (0-1) walked the leadoff hitter to start the fifth and then gave up a bunt single to Kelby Tomlinson. Two groundouts produced a run, snapping the Dodgers' shutout streak.
"If I throw the changeup for a strike, we're not having this conversation," Wood said, bemoaning the full-count walk of Brandon Crawford to start the inning.
"The pitch selection, 3-2 pitch, I probably should have just thrown a heater, challenged him a little more. But hindsight is 20-20."
An RBI triple by Panik and an RBI double by Buster Posey pulled the Giants within 4-3.
Dodgers rookie manager Dave Roberts let Wood bat in the top of the sixth despite the pitcher's rough fifth inning. Wood then gave up back-to-back singles to start the sixth.
"I'd never faced Alex Wood, so the more I got to see him, the more I understood what he was trying to do," Panik said. "Today, he was really pounding the zone the first four or five innings. He was getting ahead of guys, but guys made the adjustment and got more aggressive. We didn't let him get 0-and-1 on everybody. That seemed to be what he was doing early."
When Roberts replaced Wood with Yimi Garcia, things only got worse for the Dodgers. The Giants piled on against the Los Angeles bullpen, scoring four runs in the sixth and five in the eighth. Panik and Posey combined for six hits and five RBIs.
The Dodgers did make it a one-run game again briefly after Joc Pederson's two-run home run in the eighth inning off Giants reliever Sergio Romo. However, San Francisco's five-run burst, capped by Pence's grand slam off Pedro Baez, put the game away.
"It was a good run," Roberts said of the Dodgers' trio of shutout victories against the San Diego Padres to start the season. "I mean, really, you're not going to shut everybody out. These guys are throwing really well. There are some things we have to clean up on defense, but the guys are competing out there. They're swinging the bats well.
"We'll be fine."
NOTES: Dodgers INF Howie Kendrick (calf strain) is scheduled to start a rehab assignment with Class A Rancho Cucamonga on Thursday. Kendrick will DH one game, play second base twice and third base once. ... Dodgers C Yasmani Grandal (forearm) is scheduled to start his rehab assignment with Triple-A Oklahoma City. Both Kendrick and Grandal are expected back with the Dodgers for their home opener Tuesday after starting the season on the disabled list. ... The Giants paid tribute to former player, coach and instructor Jim Davenport and Hall of Famer Monte Irvin before Thursday's home opener. Irvin died in January and Davenport in February. ... The Dodgers began the season with 10 players on the disabled list, the most since at least 2002. The Giants are one of three teams (along with the White Sox and Twins) to start this season without a player on the DL.