The 27-year-old gave up just three hits and was on track for a perfect game until the seventh inning as the Dodgers held on to a one-run lead thanks to Jimmy Rollins’ homer.
Two runs in the ninth then saw the California outfit home.
City neighbours the Angels were on the wrong end of a 3-0 scoreline against the Minnesota Twins thanks to Trevor Plouffe’s three-run homer in the fourth.
The San Diego Padres were also shut out as the Miami Marlins scored all their runs in the sixth inning en route to a 4-0 victory.
Mike Zunino’s 12th-inning double handed the Seattle Mariners a 3-2 win over the Detroit Tigers while the Houston Astros also won a tight one, Jose Altuve’s walk-off home run giving them a 5-4 triumph over the Boston Red Sox.
Matt Carpenter and Randal Grichuk both hit two-run homers in a 4-3 win for the St Louis Cardinals over the Kansas City Royals while the Toronto Blue Jays beat the Oakland Athletics 5-2.
A four-run first innings powered the New York Yankees to a 9-3 success against the Baltimore Orioles and the Pittsburgh Pirates overcame the Washington Nationals 7-3.
In the day’s other games, the Chicago White Sox beat the Cleveland Indians 8-1 and the Arizona Diamondbacks were 8-3 victors against the Milwaukee Brewers.