fix
This commit is contained in:
parent
31f7b7f6c3
commit
17b0da892f
@ -26,7 +26,7 @@ module Database.Esqueleto.Internal.Internal where
|
|||||||
import Control.Applicative ((<|>))
|
import Control.Applicative ((<|>))
|
||||||
import Control.Arrow (first, (***))
|
import Control.Arrow (first, (***))
|
||||||
import Control.Exception (Exception, throw, throwIO)
|
import Control.Exception (Exception, throw, throwIO)
|
||||||
import Control.Monad (MonadPlus(..), ap, guard, void)
|
import Control.Monad (MonadPlus(..), guard, void)
|
||||||
import Control.Monad.IO.Class (MonadIO(..))
|
import Control.Monad.IO.Class (MonadIO(..))
|
||||||
import Control.Monad.Trans.Class (lift)
|
import Control.Monad.Trans.Class (lift)
|
||||||
import Control.Monad.Trans.Resource (MonadResource, release)
|
import Control.Monad.Trans.Resource (MonadResource, release)
|
||||||
@ -3073,7 +3073,7 @@ instance SqlSelect () () where
|
|||||||
unescapedColumnNames :: EntityDef -> [DBName]
|
unescapedColumnNames :: EntityDef -> [DBName]
|
||||||
unescapedColumnNames ent =
|
unescapedColumnNames ent =
|
||||||
(if hasCompositeKey ent then id else ( fieldDB (entityId ent) :))
|
(if hasCompositeKey ent then id else ( fieldDB (entityId ent) :))
|
||||||
<> map fieldDB (entityFields ent)
|
$ map fieldDB (entityFields ent)
|
||||||
|
|
||||||
-- | You may return an 'Entity' from a 'select' query.
|
-- | You may return an 'Entity' from a 'select' query.
|
||||||
instance PersistEntity a => SqlSelect (SqlExpr (Entity a)) (Entity a) where
|
instance PersistEntity a => SqlSelect (SqlExpr (Entity a)) (Entity a) where
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user