Wine during pregnancy?

My doctor said it was okay to occasionally have a glass of wine during my pregnancy. Is he for real?? Has anyone actually drank wine during their pregnancy? Isn't that dangerous for the baby?