SAN FRANCISCO -- Ehire Adrianza became the latest pinch-runner in the majors to make a decisive dash.
"That was so exciting," Adrianza said. "I have been waiting for this moment since I was 3 years old. It was pretty amazing and it feels great. As a pinch-runner it was an honor to win a game like that."
Adrianza has been a minor league shortstop in the Giants' system since he was 16 in 2006.
Javier Lopez (3-2) got the win. Sanchez also drove in a run for the Giants, who split the series with Arizona.
"I just tried to put the ball in play and took advantage of the hole," Sanchez said. "I feel great right now. I'm comfortable swinging. I feel amazing."
Eric Chavez and A.J. Pollack each drove in runs for the Diamondbacks.
"We have not swung the bats very well at all, especially in the good situations," Arizona manager Kirk Gibson said. "We're not in a good streak right now."
Gibson was ejected in the 10th for arguing after first base umpire Tom Hallion reversed his original call.
The Diamondbacks had runners at first and second with two outs when Aaron Hill grounded to first baseman Buster Posey. After bobbling the ball, Posey flipped to pitcher George Kontos covering the bag.
Hallion called Hill safe, then consulted with the other umpires and ruled him out.
Giants starter Madison Bumgarner threw six shutout innings, allowing four hits. He struck out nine and did not walk a batter. Bumgarner remains winless over his last seven starts.
"It doesn't matter if I get the win or not, that's out of our control," Bumgarner said. "All the starters are trying to do is compete, eat up some innings and keep us in it."
Diamondbacks starter Wade Miley went seven innings, allowing two runs on five hits. He walked two and struck out three.
Miley retired nine of the first 10 hitters before running into trouble in the fourth.
Tony Abreu walked and Posey doubled to open the inning. One out later, Sanchez bumped a single into right field to score one run and Posey later scored on a wild pitch.
The Diamondbacks scored twice in the eighth against Santiago Casilla, Chavez hit a sacrifice fly and Pollack had an RBI single.
OF Hunter Pence needs a home run to become the first Giants player to record at least 20 home runs and 20 steals in a season since Barry Bonds in 1998. ... The Giants sold out their 237th regular season home game, doing it while the San Francisco 49ers hosting the Green Bay Packers in their regular-season opener. ... RHP Tim Lincecum (9-13, 4.50) makes the start for the Giants on Monday night when Colorado arrives to open a three-game set. He's 0-2 with an 8.00 ERA against the Rockies this year. ... The Diamondbacks will start RHP Randall Delgado (4-5, 3.69) in their series opener against the Dodgers in Los Angeles on Monday. He's allowed three earned runs or less in 12 of his 15 career starts. ... Arizona IF Martin Prado missed his second straight game with an illness. ... Diamondbacks INF Cliff Pennington returned to Arizona after the game to be with his wife, who will undergo induced labor on Monday.
Cubs manager Joe Maddon says he understands why players reacted the way they did to President Trump's comments.
Madison Bumgarner snapped a personal four-game losing streak and Gorkys Hernandez had three hits and scored both runs in the San Francisco Giants' 2-1 victory over the Los Angeles Dodgers on Saturday night.
Jhoulys Chacin took a no-hitter into the sixth inning and the San Diego Padres beat Colorado 5-0 on Saturday night, cutting the Rockies' lead for the NL's second wild card to one game over Milwaukee.
Lucas Duda hit a go-ahead, three-run homer to back Jake Odorizzi, and the Tampa Bay Rays beat Baltimore 9-6 on Saturday night to eliminate the Orioles from postseason contention.
Daniel Murphy homered in the 10th inning and the Nationals bullpen followed Stephen Strasburg with five scoreless innings, lifting Washington over the New York Mets 4-3 on Saturday night after Noah Syndergaard's return.
Lance Lynn allowed eight runs in the first inning and the St. Louis Cardinals slipped up against the Pittsburgh Pirates 11-6 on Saturday night.