I used to do this, just make sure you finish your last drink an hour before bed, go to the toilet jst before you go to bed then it should be fine.
I wake up in the morning bursting for the loo but usually if i havent drunk too much the day before then i can last all night if i go before bed. It is annoying waking up when its all cosy and warm haha