Britain's Andy Murray was pushed all the way before beating James Blake 6-3 6-7 (5-7) 7-6 (7-4) in the early hours of Thursday at the Paris Masters.
Murray won a cagey first set with a fine drop-shot before a very close second set, without any breaks of serve, which Blake won on a tie-break.
There was never any sign of a break in the third either and it was no shock when it too went to a tie-break.
Murray took it 7-4 to set up a third-round clash with Radek Stepanek.
Stepanek had a much shorter and more straightforward match against Viktor Troicki, winning 6-4 6-0.
When I've played James in past he's made a few more mistakes - I thought he played really, really solid tonight, so it was tough
Murray is due back on court at 1645 GMT on Thursday, and the Scot told BBC Radio 5 live: "I don't know if you can recover 100%, it's a very, very difficult thing to do.
"By the time I get back and have food, see my physio, it's 4am by the time you get to bed and any athlete will tell you it's not the easiest thing to do.
"I don't expect to be feeling great but I'll just try and fight as hard as I can and try and win."
After the drama of world number one Roger Federer losing earlier in the day, and world number two Rafael Nadal narrowly avoiding a similar fate, whatever came next could only have a sense of anti-climax.
Blake and Murray did not start playing until 2330 local time, in front of a small crowd, and right from the start it was a very tight match with hardly anything between the pair.
Murray drew first blood when he broke the American in the fourth game, only for Blake to return the compliment immediately to make it 3-2 in his favour.
But crucially the Scot managed to break Blake again in the following game and then rattled off the next three games to clinch the set with a delightful drop-shot.
This page is best viewed in an up-to-date web browser with style sheets (CSS) enabled. While you will be able to view the content of this page in your current browser, you will not be able to get the full visual experience. Please consider upgrading your browser software or enabling style sheets (CSS) if you are able to do so.