ARLINGTON (AP) — Nick Markakis scored the go-ahead run on an error in the 10th inning as the Baltimore Orioles beat Texas 6-3 on Thursday night, their first meeting since the Rangers scored an AL record 39 runs in a doubleheader sweep last month.

While shortstop Michael Young spun and made a nifty stop of the grounder up the middle, Markakis beat the strong throw for a leadoff infield single. After going to second on a wild pitch by John Rheinecker (3-3), who didn’t retire any of the three batters he faced, Markakis scored to break a 1-1 tie when first baseman Brad Wilkerson couldn't field Aubrey Huff’s grounder.

Melvin Mora added an RBI single and Brian Roberts hit a three-run homer off Wes Littleton, but the Orioles had to hang on as Fernando Carbrera gave up two runs in the 10th.

Jamie Walker (2-2), the fifth of six Baltimore pitchers, struck out three in 1 2-3 innings.

The last time the teams played, on Aug. 22, the Rangers became the first team in 110 years to score 30 runs in a game. They set an American League record in a 30-3 rout in the opener of a doubleheader at Camden Yards, then won 9-7 to complete the sweep.

Starting with that sweep, the Orioles lost 22 of 28 games until Thursday.