he Rays rallied in the 11th inning to beat the Jays 5-4 Wednesday as B.J. Upton doubled in Rich Thompson with one out.
Thompson started the rally when he was hit on the right arm by a pitch from Darren Oliver, the last Toronto reliever.
The Rays seemed to be in position for a much easier victory, taking a 4-2 lead into the eighth with a solid outing from starter James Shields.
But manager Joe Maddon lifted Shields after a one-out double by Jose Bautista, and Edwin Encarnacion knocked reliever Joel Peralta's fourth pitch over the left-centerfield wall to make it 4-2.
They looked like they had a chance to win it in the 9th when Carlos Pena drew a one-out walk and B.J. Upton singled. But Matt Joyce struck out and though Drew Sutton managed an infield single, Pena was thrown out at the plate.
With the win the Rays improved to 27-18 overall and salvaged a .500 homestand at 4-4 as they have Thursday off then play a weekend series in Boston.