Fix error output

The `column_type` is meant to be the type of the value, not of the enum
This commit is contained in:
Jamie Gaskins 2022-04-19 09:33:46 -04:00
parent 7e83cfec8d
commit 213d6e4963

View file

@ -167,7 +167,7 @@ struct Enum
context: "#{self}#new(rs : DB::ResultSet)",
column_index: index,
column_name: rs.column_name(index),
column_type: to_s,
column_type: value.class.to_s,
expected_type: "String | Int",
)
end