Risk Factors for Diabetes Mellitus in Chronic Pancreatitis: A Cohort of 2011 Patients.