I've found that different doctors have different rules. I always question it when they say nothing after midnight. How can the same rule apply for a 7am procedure and a 1pm procedure.
I make them pin down exactly how many hours before MY scheduled procedure I have to stop eating and drinking. They usually try to tell me that since I'm asleep after midnight, what difference does it make. I still want to know if I can have a drink of water at 3am if I want it.
For my last scope (both ends) I was not allowed any water 4 hours before the procedure. That big glass of water at 4am really made the whole day better.