TORONTO — Tim Wakefield didn’t begrudge Daniel Bard for keeping him waiting on career win No. 200.

Edwin Encarnacion hit a tiebreaking double in the eighth inning Wednesday night and the Toronto Blue Jays rallied to deny Wakefield his milestone win, beating the Boston Red Sox, 11-10.

Wakefield hasn’t won since July 24 against Seattle, a span of seven appearances. The victory looked to finally be in hand before slipping away late, but Wakefield wasn’t sweating it.

“If it happens, it happens. If it doesn’t, it doesn’t change what I’ve done,” he said. “I’d like it to happen but more important is for us to get into the postseason. That’s our ultimate goal.”

Toronto trailed 8-6 heading into the eighth against Bard (2-6), who opened the inning by hitting Brett Lawrie and giving up a single to Adam Loewen, the former pitcher’s first career hit. J.P. Arencibia walked before Bard struck out Dewayne Wise and caught Yunel Escobar looking. But the Blue Jays tied it when Bard issued consecutive walks to Eric Thames and Jose Bautista.

Matt Albers came on and gave up a three-run double to Encarnacion.

Bard said he was battling with control in the eighth.

“It kind of came and went as the inning progressed,” he said. “I just didn’t have very good timing with my delivery.”

Bard said Wakefield made sure he didn’t hang his head after coughing up the lead.

“When I got in the clubhouse, he was the first guy to come up and shake my hand, pat me on the back,” Bard said. “He knows how hard I’m trying. To be that close to getting out of it with the lead intact makes it even tougher. We’re trying for him. He did his job today and I didn’t do mine.”

Bard, who allowed five earned runs, saw his ERA rise from 2.10 to 2.76. He came in having allowed just one earned run in his previous 10 outings.

“I guess it proves he’s human,” Red Sox Manager Terry Francona said. “Once you get to him you feel pretty good. It was a battle the whole inning. He just couldn’t get the last out.”

Encarnacion went 2 for 4 with a sacrifice fly and matched a career high with five RBI.

Shawn Camp (4-3) pitched one inning for the win and Frank Francisco survived a two-run ninth to record his 13th save in 17 chances.

Adrian Gonzalez led off the ninth with his 24th home run, snapping Francisco’s streak of 16 scoreless innings. David Ortiz followed with a single, took second on a grounder and scored on a two-out hit by Marco Scutaro before pinch-runner Mike Aviles was thrown out trying to steal second on an 0-2 pitch to Josh Reddick.

“It’s probably the best pitch to get thrown out on,” Aviles said. “It wasn’t a pitchout but it was up and out. It just didn’t work out well.”

Jacoby Ellsbury homered and finished with four hits and Ortiz also went deep, but it wasn’t enough for the Red Sox.

“It’s tough on our team,” Francona said. “The whole idea is to win and in the course of winning games, things like what Wake’s doing is very special, or will be. It’s hard for everybody and I’m sure it’s hard for him.”

Wakefield allowed five runs, four earned, and three hits in five innings. He walked three and struck out three.

“I struggled the first three innings throwing strikes and put a lot of pressure on those guys from the sixth on through the ninth,” Wakefield said. “I take the blame for not getting deeper in the game.”