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
Bryce, Manny, Corbin and more? What a Yankees spending spree could bring
The Bronx hasn't been home to a World Series champion for almost an entire decade. We offer up five offseason moves that would fix that -- if the Steinbrenners are willing to spend like The Boss.
Which teams should shift gears and become buyers or sellers?
The Diamondbacks have been contenders, but they're among the clubs who might want to shake things up by shopping stars like Paul Goldschmidt.
How the Phillies can be smart spending stupid amounts of money
The Phillies have plenty of payroll space and expectations of contention to deliver on. Here's a plan for which top free agents they should target.
Buster's Buzz: A checkup on the state of baseball
A new TV deal and strong attendance don't jibe with complaints about the changing game. What are the strongest indicators of the sport's health?
Astros acquire Aledmys Diaz in trade with Blue Jays
The Astros, who could lose Marwin Gonzalez to free agency, acquired infielder Aledmys Diaz, who hit a career-high 18 homers last season, in a trade with the Blue Jays.
Dodgers closer Kenley Jansen set for Nov. 26 heart surgery
Dodgers closer Kenley Jansen is expected to be ready for spring training after surgery to correct his irregular heartbeat. The surgery, which had been expected, has been scheduled for Nov. 26, with recovery time anywhere from two weeks to eight weeks.