After testing his injured right hip in a minor league rehab game on Saturday, Orioles second baseman Brian Roberts has opted to have season-ending surgery to repair a labrum tear in the hip.

"It just hasn't responded the way we were hoping it would," Roberts said before Sunday's game against Oakland. "We kind of knew this was a possibility going into it, but we wanted to give it the best possible shot we could to get back out there and try and help for the last two months of the season, but it's not going to put me in a position to play the way I want to play and the way that I think it's necessary to help."

Roberts started for short-season Single-A Aberdeen on Saturday and went 0-for-4 with a walk and a run, playing the entire game. Manager Buck Showalter said Roberts came out of the game feeling fine physically and even scored from first base on a double and turned a double play ball.

But Roberts felt it was best to end his attempt to rehab the injury without surgery. Roberts now faces four to six months of rehab, but he hopes to return in time for the 2013 season. He said he ultimately decided it would be better to have the surgery now and give himself a better chance to return fully healthy – he said doctors gave him a 95 percent success rate for surgery – than try to haphazardly get back on the field this season and not be 100 percent.

"This is one of the reasons why we are going ahead and getting it done now, is that I might be able to get out there and battle through 100 at bats this next month or two of the season, and they might be so-so, I don't know, but the main goal right now is to get ready for 600 good at bats for 2013," Robert said. "At this standpoint it should lend itself to a fairly normal routine process after the first three months of getting ready for the season next year.

"That's the consensus we came to: Let's be ready to go for a healthy 2013, because we all believe that we are having a great year this year and that we will have an even better year next year, and I want to be a part of that in a healthy way."