Updated

Paul Goldschmidt and Chris Young homered on consecutive pitches from Jason Motte with one out in the ninth inning, leading the Arizona Diamondbacks over the St. Louis Cardinals 2-1 Thursday night.

With St. Louis ahead 1-0 on Allen Craig's RBI single in the fifth, Motte (4-4) struck out Miguel Montero leading off the ninth. Goldschmidt, who hit a 456-foot homer in Wednesday's 5-2 loss, fouled off three full-count pitches, then drove a pitch to center for his 18th home run of the season. Young sent the next pitch over the left-field wall for his 12th homer.

David Hernandez (2-2) pitched a perfect eighth, and J.J. Putz finished with a 1-2-3 ninth for his 14th consecutive save and 23rd in 27 chances overall.

Arizona had lost its previous seven games against St. Louis dating to last season.

Motte blew a save for the fifth time in 32 chances.

In a game that started 1 hour, 25 minutes late because of rain, Arizona's Trevor Cahill allowed one run and five hits in six inning with four strikeouts and one walk. The Cardinals' Kyle Lohse gave up four hits and three walks in 6 2-3 innings, striking out five. He lowered his ERA to 2.61, third-best in the NL.

St. Louis went ahead in the fifth after Rafael Furcal led off with an infield single, Lohse grounded into a forceout and Cahill hit Jon Jay with a two-strike pitch. Craig followed with his 62nd RBI of the season.

Arizona threatened in the fourth. Aaron Hill walked but was thrown out by catcher Tony Cruz trying to steal second, completing a double play as Justin Upton struck out. Montero singled and Goldschmidt walked, but Lohse struck out Young.

NOTES: St. Louis C Yadier Molina missed his second straight game because of lower back tightness. He is day to day. ... Arizona SS Jake Elmore got his first major league hit with a single in the seventh inning. ... The Diamondbacks have played 10 successive games against teams with winning records and are 4-6. ... St. Louis hosts Pittsburgh on Friday in the opener of a three-game series. Jake Westbrook (12-8) will face James McDonald (10-5). Arizona travels to Houston for a three-game series that will conclude a six-game trip. Wade Miley (12-8) takes on Dallas Keuchel (1-4).