Patrick Bailey played hero for his team driving in a pair of runs to tie the game in the fourth before walking it off with an RBI-double in the bottom of the ninth to rally the San Francisco Giants past the Arizona Diamondbacks 3-2.