Thrush

I've suffered with really bad thrush problems since last September, been to my doctors today and they think I've got diabetes, has any had this problem before? If so what happened? I'm abit worried if it's not diabetes