Diastereoselectivity switch in cooperatively catalyzed three-component reactions of an aryldiazoacetate, an alcohol, and a β,γ-unsaturated α-keto ester.