Fasting is invalidated by insanity if it occurs to the fasting person, even for a moment. Fasting is invalidated by fainting if there is all of the day, from dawn to sunset, and it is necessary to make up the fast, and if he wakes up in any part of the day, his fast is valid. Likewise, deliberate drunkenness invalidates the fast if the whole day is present.