SAN FRANCISCO -- Alen Hanson has experience as a pinch-hitter, and he's putting it to good use with his new team.
Hanson had a tying, two-run homer off Brad Boxberger with two outs in the ninth inning, Brandon Crawford singled home Andrew McCutchen in the 10th and the San Francisco Giants beat the Arizona Diamondbacks 5-4 on Wednesday for their sixth win in seven games.
Arizona led 4-2 when Boxberger walked Mac Williamson with one out in the ninth. Nick Hundley struck out, Hanson batted for Austin Jackson and turned on a fastball over the middle of the plate, driving it over the right-field wall. Hanson has five home runs in 52 at-bats with the Giants this season.
Boxberger blew a save for the second time in 16 chances. Arizona had been 29-0 when leading after eight innings.
Hanson delivered in his fourth straight a pinch-hit at bat. He also has two doubles over that stretch.
"I think it's based on experience," Hanson said through a translator. "Last year I basically spent the whole year pinch-hitting. I don't let the situation intimidate me."
The Giants are Hanson's third team. The 25-year-old switch-hitting utilityman signed a minor league contract with them late last year.
"He's dangerous," Giants manager Bruce Bochy said. "He's got easy pop."
San Francisco took two of three from Arizona, ending a streak of five series losses to the Diamondbacks, and won for the seventh time in eight home games.
"Great win for us," Bochy said. "It could be our best win this year."
"If (Dyson) can't make the play, it can't played," Diamondbacks manager Torey Lovullo said.
Crawford worked the count full and grounded a single between first and second, into right field, as McCutchen scored standing up.
Crawford turned on a slider Chafin left over the middle of the plate.
"I still hadn't seen a fastball, so I had stay ready for that," Crawford said. "He was throwing 94-95 (mph), so I wanted to stay ready for that fastball but see that slider a little bit deeper, a little bit longer, and just stay short with my hands."
Hunter Strickland (3-2) got out of a two-on jam in the 10th, striking out Ketel Marte, then retiring Nick Ahmed on a popout with runners at the corners. Strickland walked two -- one intentionally -- and threw two wild pitches in his only inning.
Paul Goldschmidt had four hits, including three doubles, and two RBI. He has raised his average to .233 from .198 before play on May 23.
Arizona starter Clay Buchholz gave up two runs and seven hits in seven innings with seven strikeouts and one walk. The 33-year-old right-hander has a 1.88 ERA since signing with the Diamondbacks on May 4, three days after the two-time All-Star was released by Kansas City.
Pablo Sandoval hit his fifth home run of the season in the first, a drive to right-center that would have traveled 447 feet unimpeded, according to Statcast. Sandoval and Buchholz were teammates on Boston.
"The pitch looked like it was where I wanted but if he barrels it up, it goes far," Buchholz said.
Giants starter Chris Stratton gave up three runs and seven hits in four-plus innings, leaving with a 3-2 deficit.
FREAK SHOW 2.0?
Giants manager Bruce Bochy said he is open to approaching the team's front office about a possible role in the organization for Tim Lincecum, a two-time Cy Young Award winner from the Giants who was released Tuesday by Texas.
"He's somebody that's dear to all of our hearts," Bochy said. "I would always have a spot for Timmy, somewhere."
Diamondbacks: RHP Randall Delgado (oblique strain) pitched an inning for Class A Visalia on Tuesday. Manager Torey Lovullo said Delgado's fastball topped out at 93 mph. ... LHPs Jorge De La Rosa (Achilles tendon soreness) and Robbie Ray (oblique) threw bullpen sessions at the team's extended spring training facility in Scottsdale, Arizona.
Giants: RHPs Johnny Cueto (right elbow inflammation) and Jeff Samardzija (right shoulder tightness) both threw on flat ground from about 100 feet. Both are scheduled for their first bullpens on Friday. ... 1B Brandon Belt, expected to be out three weeks after an appendectomy on Friday, did about 45 minutes of cardio work, Bochy said.
Diamondbacks: RHP Zack Greinke (4-4, 3.44 ERA) is to start Friday's series opener in Colorado. The four-time All-Star has held opponents to a .216 batting average in his last seven starts.
Giants: LHP Andrew Suarez (2-4, 4.74) is slated to pitch Friday's opener against Washington. The 25-year-old rookie threw seven innings of three-hit ball in a 2-0 win against Philadelphia last Saturday.
More AP baseball: https://apnews.com/tag/MLBbaseball
The catcher's preparation and receiving skills give Red Sox pitchers the same edge a former Boston great added behind the plate.
The Chicago Cubs will try to move closer to locking up another National League Central title when they visit the Chicago White Sox to wrap up a three-game series on Sunday afternoon at Guaranteed Rate Field.
The Oakland Athletics can clinch their first playoff spot since 2014 when they complete a three-game series against the Minnesota Twins on Sunday afternoon.
Jose Ramirez speaks with Pedro Gomez about his decision to leave school at age 12 and speak to kids to not make the same mistake.
Texas left-hander Martin Perez will have two more chances to help the Rangers decide his future with the team, beginning Sunday when he starts against the Seattle Mariners in the final game of the season at Globe Life Park in Arlington, Texas.
The Athletics walk off for the second straight night, this time on a wild pitch, for their fourth straight win.