It can occur when a person with type 2 diabetes has an illness, such as a severe case of the flu or other infection; has a heart attack; is not drinking enough liquids and becomes dehydrated; or takes medicines (diuretics) that increase fluid loss or affect mental alertness, especially if liquids are not replaced.Long-term diabetes complications, which result from damage to the body's tissues.