Visitar URL original
Remove extraneous `map toPersistValue` call. by arrowd · Pull Request #1468 · yesodweb/persistent · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions persistent/ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog for persistent

## unreleased

* [#1460] https://github.com/yesodweb/persistent/pull/1468
* Remove extraneous `map toPersistValue` call in the `mkInsertValues`
function, as it evaluates to `id`.

## 2.14.4.4

* [#1460] https://github.com/yesodweb/persistent/pull/1460
Expand Down
1 change: 0 additions & 1 deletion persistent/Database/Persist/Sql/Util.hs
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,6 @@ mkInsertValues
mkInsertValues entity =
Maybe.catMaybes
. zipWith redactGeneratedCol (getEntityFields . entityDef $ Just entity)
. map toPersistValue
$ toPersistFields entity
where
redactGeneratedCol fd pv = case fieldGenerated fd of
Expand Down