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,