From d79daadf14949119c87ded714118d353d6d79a4f Mon Sep 17 00:00:00 2001 From: hendrikvanderkaaden Date: Mon, 27 May 2024 16:38:47 +0200 Subject: [PATCH] Fix test in floor_generator --- floor_generator/lib/processor/queryable_processor.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/floor_generator/lib/processor/queryable_processor.dart b/floor_generator/lib/processor/queryable_processor.dart index f48193a8..6597bfe2 100644 --- a/floor_generator/lib/processor/queryable_processor.dart +++ b/floor_generator/lib/processor/queryable_processor.dart @@ -96,7 +96,8 @@ abstract class QueryableProcessor extends Processor { final databaseValue = "row['$prefix${field.columnName}']"; String parameterValue; - if (parameterElement.type.isDefaultSqlType) { + if (parameterElement.type.isDefaultSqlType || + parameterElement.type.isEnumType) { parameterValue = databaseValue.cast( parameterElement.type, parameterElement,