Updated

Josh Harrison's 12th-inning single drove in Clint Barmes and the Pittsburgh Pirates came back for a 3-2 win over the Houston Astros on Sunday.

Harrison was 0 for 3 before lining the first pitch he saw from Fernando Rodriguez (1-4) into left. Barmes had just hit a two-out double to left and scored from second. He slid under the tag of Jason Castro, who received a high throw from Justin Maxwell.

The Pirates won for the fourth time in their past six games and prevented the Astros from winning a road series for the first time in 11 months.

Pittsburgh tied the game in the ninth against closer Brett Myers, keeping Wandy Rodriguez from earning a victory despite eight dominant innings.

A.J. Burnett allowed two runs on six hits in eight innings for the Pirates, who have won four of six and completed a 5-4 homestand.