PITTSBURGH -- The Pirates played past midnight Wednesday night in order to end their longest losing streak of the season.
Francisco Liriano pitched seven shutout innings to win his fourth straight start, and Pedro Alvarez had two hits and two RBIs to lead the Pirates to a 5-0 victory over the Oakland Athletics at PNC Park, snapping their four-game skid.
The start of the game was delayed two hours and 50 minutes, pushing the first pitch back to 9:55 p.m. ET. The final out was recorded at 12:48 a.m.
Liriano (9-3) allowed four hits and one walk while striking out six.
Liriano has allowed just four runs in 28 2/3 innings over his last four starts for a 1.26 ERA. He also continued his polar opposite performance against the Athletics, as he has allowed one or no runs in six of his 13 career starts vs. Oakland but five or more runs four times.
Justin Wilson and Jeanmar Gomez pitched one scoreless inning each to complete the shutout, the Pirates' 13th of the season. The Pirates have a 2.15 ERA in their last six games despite going 2-4.
Alvarez hit RBI singles during a three-run third inning and a two-run fourth as the Pirates put the game away early, nearly matching the six runs total they scored during the losing streak.
Starling Marte, Jose Tabata and Andrew McCutchen -- the top three hitters in the Pittsburgh batting order -- all had two hits each.
Oakland starter Tommy Milone (8-8) lasted just 2 2/3 innings and gave up three runs and seven hits with two walks and two strikeouts. Milone needed 80 pitches to get eight outs.
Milone has a 6.33 ERA in his last five starts, giving up 19 runs in 27 innings, though he is 2-2 in that span.
Coco Crisp had three of the Athletics' five hits.
The Athletics had allowed just two runs while winning the first two runs of the three-game series, but Pittsburgh more than doubled that in salvaging the finale. Oakland lost for just the fourth time in 14 games.
Oakland stayed a half-game ahead of Texas in the American League West as the Rangers lost at Baltimore, 6-1.
The Pirates knocked out Milone during a four-run third inning that opened the scoring.
Marte and Tataba hit back-to-back doubles to produce the first run, and McCutchen followed with an RBI single. Alvarez added a run-scoring single before Milone was lifted.
The Pirates increased their led to 5-0 in the fourth inning. Russell Martin singled in a run with two outs off Pat Neshek, and Alvarez greeted Jerry Blevins with an RBI single.
NOTES: Oakland All-Star RHP Bartolo Colon told the San Francisco Chronicle on Wednesday that he has not been contacted by Major League Baseball investigators concerning the Biogenesis case and knows nothing about the investigation. Colon was suspended 50 games by MLB last season for testing for high testosterone levels, which carried over to the first five games of this season. A second performance-enhancing drug suspension would result in a 100-game ban. ... Martin batted cleanup Wednesday for the first time since June 6, 2009, when he was playing with the Los Angeles Dodgers. ... Both teams are off Thursday before opening three-game home series Friday to end the season's first half. The Athletics play the Boston Red Sox, and the Pirates face the New York Mets.