Merge pull request #75 from snoyberg/master

Fix for #74
This commit is contained in:
Felipe Lessa 2014-09-18 11:49:20 -03:00
commit 87288f9603

View File

@ -970,7 +970,7 @@ instance PersistEntity a => SqlSelect (SqlExpr (Entity a)) (Entity a) where
where
process ed = uncommas $
map ((name <>) . fromDBName info) $
(entityID ed:) $
(sqlIdName ed:) $
map fieldDB $
entityFields ed
-- 'name' is the biggest difference between 'RawSql' and