I doubt the dog has been "holding it" for nearly 17 hours. I'd check around the house.
A healthy adult dog can probably hold it for 8-12 hours at the most, and they shouldn't have to.
A healthy adult dog can probably hold it for 8-12 hours at the most, and they shouldn't have to.