Skip to content

Commit

Permalink
Fix test in floor_generator
Browse files Browse the repository at this point in the history
  • Loading branch information
hendrikvdkaaden committed May 27, 2024
1 parent 989ca78 commit d79daad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion floor_generator/lib/processor/queryable_processor.dart
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ abstract class QueryableProcessor<T extends Queryable> extends Processor<T> {
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,
Expand Down

0 comments on commit d79daad

Please sign in to comment.