From 54307159828637a4514ecf97507f6b4d6dbbf0b9 Mon Sep 17 00:00:00 2001 From: "Richard Dodd (dodj)" Date: Fri, 26 Apr 2019 15:15:07 +0100 Subject: [PATCH] Fix error when building with `uuid` and `functions` features. --- src/functions.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/functions.rs b/src/functions.rs index a4773a0..54f9911 100644 --- a/src/functions.rs +++ b/src/functions.rs @@ -137,6 +137,10 @@ impl Context<'_> { FromSqlError::InvalidI128Size(_) => { Error::FromSqlConversionFailure(idx, value.data_type(), Box::new(err)) } + #[cfg(feature = "uuid")] + FromSqlError::InvalidUuidSize(_) => { + Error::FromSqlConversionFailure(idx, value.data_type(), Box::new(err)) + } }) }