Skip to content

Commit

Permalink
Merge pull request #33 from osense/master
Browse files Browse the repository at this point in the history
Mark list expressions as constant.
  • Loading branch information
m4dc4p committed May 5, 2019
2 parents d033877 + 0da2b6a commit a1fbc8a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Database/HaskellDB/Sql/Default.hs
Expand Up @@ -462,6 +462,7 @@ defaultSqlExpr gen e =
CastExpr typ e1 -> CastSqlExpr typ (sqlExpr gen e1)
where
isConstAttr :: PrimExpr -> Bool
isConstAttr (ListExpr _) = True
isConstAttr (ConstExpr _) = True
isConstAttr (AttrExpr _) = True
isConstAttr _ = False
Expand Down

0 comments on commit a1fbc8a

Please sign in to comment.