ST. LOUIS -- Jose Martinez is making the most of his limited opportunities.
Martinez sliced an opposite-field pinch-hit single to the right-center field gap off Wade Davis with one out in the ninth inning, driving in the tying and go-ahead runs and lifting the St. Louis Cardinals over the Colorado Rockies 3-2 on Thursday.
"Trying to put the ball in play, trying just to get one run, that's the most important thing," Martinez said.
Bader stole second, and Martinez singled on a high fastball, giving the Cardinals their ninth walk-off win this season.
It was the first career walk-off RBI for Martinez, whose playing time has decreased since Mike Shildt became the interim manager on July 14.
"It's a great teammate. That's probably one of the best compliments I can give Jose," Shildt said. "He's still getting opportunities. He's not getting quite as many, but he's determined to make the most of them and showed up ready to take a really quality at-bat with a nice plan."
Davis has a career-high five blown saves in 36 chances.
"I left it over the plate," he said. "A couple of line drive hits there. Obviously, the stolen base didn't help either."
Colorado, which began the day one game back for the NL's second wild card, lost three of four at the Cardinals. The Rockies had been seeking to tie the franchise record of nine straight series without a series loss but instead lost a series for the first time since dropping two of three at San Francisco from June 26-28.
"We're in every game now, which is good, and we've won most of them," Rockies manager Bud Black said. "We've got to continue to pitch well. If we do that we'll be fine."
"This is a focused group that's really dedicated to playing good baseball and to moving this thing forward and to win games and to put us in position even further than where we are now," Shildt said. "This team wants to play in the playoffs."
After the Cardinals loaded the bases in the sixth, Senzatela struck out Bader on a curveball in the dirt with an 0-2 count.
Tyler O'Neill put St. Louis ahead with a sacrifice fly in the third. Gerardo Parra had a tying single in the fourth, and Colorado went ahead when Ian Desmond hit a bouncer to the third-base side, and Mikolas made an off-balance throw that hit the tarp in foul territory in right field. Desmond was credited with a single, and Nolan Arenado came home from third on the error.
MAKING A SPLASH
O'Neill made a running catch against the wall right-field wall in the first inning to rob Arenado of an extra-base hit and a diving catch of a liner off of Trevor Story's bat in the fourth.
"If I can help on the defensive side of the ball that's what I'm going to do," O'Neill said. "I was just able to make a couple of plays out there to help the boys get the game going."
Cardinals: OF Marcell Ozuna left in the fifth inning because of discomfort in one of his left toes. 2B Kolten Wong (left knee inflammation) began an injury rehabilitation assignment at Class A Peoria and is expected to join the team this weekend in Pittsburgh.
Rockies: RHP German Marquez (9-8, 4.82 ERA) starts Friday's opener of a three-game series at Milwaukee. He is 4-0 with a 3.03 ERA in his last five starts.
Cardinals: RHP John Gant (3-4, 3.49 ERA) starts a three-game series on Friday at Pittsburgh, where RHP Chris Archer (3-5, 4.31 ERA) is to make his Pirates debut after his acquisition from Tampa Bay. Gant is coming off his shortest outing of the season, lasting 4 1/3 innings in a 5-2 loss to the Chicago Cubs on Sunday night.
More AP baseball: https://apnews.com/tag/MLBbaseball
Why Manny Machado's record deal makes sense
By signing the biggest free-agent deal in sports history, both the player and the Padres knew exactly what they were doing.
Machado deal accelerates Padres' path back to the postseason
A team spending to win? The third baseman's move to San Diego changes the prospect-packed Friars' timetable for a return to contention.
Winners and losers from Machado's $300 million deal with Padres
As Manny Machado heads to San Diego on the largest contract ever given to a free agent, we break down what the deal means for the infielder, the Padres and a certain other available star.
Few players have more talent than Machado
Tim Kurkjian reflects on Manny Machado's amazing skill set and his on-field controversies as he joins the Padres on a $300 million contract.
Teixeira: Machado had no offers from big-market teams
Mark Teixeira says Manny Machado wanted to sign with a big-market team, but he had no offers on the table from a team like the Yankees.
What does Machado's deal mean for Harper?
Buster Olney sees Manny Machado's $300 million contract as a win for Bryce Harper's free agency.