Teoscar Hernández drove in three runs, including a game-ending RBI single in the 10th inning, as the Los Angeles Dodgers pulled off a 6-5 victory over Pittsburgh on Sunday, handing the Pirates a season-high seventh consecutive defeat.