if the water is not moving, as in no drip system or anything, just stagnate water. Not very long at all, maybe 12 hours like Zandor said but, i would expect some severe damage.
If there is a water pump cycling the bucket water still it can go indefinitely. As long as the water is moving and oxygenating it will be fine.