In people with diabetes, hyperglycemia with resultant polyuria may lead to dehydration, resulting in decreased salivary flow (xerostomia), which, along with elevated salivary glucose levels, contributes to caries.