SAN DIEGO — After 7,858 games, San Diego is still waiting for its first no-hitter.

Jordan Lyles was the latest to give the long-sufferings fans hope that it could finally happen. After he retired his 22nd straight batter by striking out Carlos Gonzalez of the Colorado Rockies to open the eighth inning Tuesday, the crowd of 19,598 at Petco Park got loud.

But then Trevor Story swatted an 0-1 pitch into left field for a single, leaving Lyles five outs shy of the first perfect game in Padres history. The Padres won 4-0 against Lyle’s old team.

The Padres are the only major league team without a no-hitter. Lyles matched his career high with 10 strikeouts. The Rockies hit only two balls out of the infield before Story singled.

Asked if there as a protocol for how players react in the dugout during a no-no bid, Manager Andy Green said: “We don’t really know. We’ve never had one.”

MARLINS 4, DODGERS 2: Los Angeles went 0 for 7 with runners in scoring position against Wei-Yin Chen and four relievers and were beaten by a last-place team for the fifth straight game, losing at Miami.

Los Angeles managed only five hits after being swept in a four-game series at home by woeful Cincinnati.

Chen, who came into the game with an ERA of 10.22, allowed no runs but departed after 41/3 innings and 83 pitches. Nick Wittgren (2-0) replaced him and worked 12/3 perfect innings to lower his ERA to 0.69.

Brad Ziegler gave up a home run to Cody Bellinger in the ninth but earned his sixth save.

AMERICAN LEAGUE

TIGERS 9, INDIANS 8: JaCoby Jones homered and doubled, and Detroit rallied against Andrew Miller in a five-run seventh inning to beat visiting Cleveland.

The Indians led 4-0 and 8-4 before Detroit’s breakthrough seventh for its third straight win. Miller (1-2) allowed two inherited runners to score, then allowed two runs of his own. He faced six batters, giving up two doubles and three walks while getting one out.

INTERLEAGUE

PIRATES 7, WHITE SOX 0: Trevor Williams scattered six hits in seven strong innings, Adam Frazier homered to start a four-run first Pittsburgh beat visiting Chicago.

Williams (5-2) struck out six and walked none in his longest outing of the season. Kyle Crick and Richard Rodriguez completed the seven-hitter for Pittsburgh’s league-best seventh shutout of the season. Josh Bell doubled twice and drove in three runs, Sean Rodriguez had an RBI triple, and Colin Moran and Gregory Polanco each added run-scoring doubles.