Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mightybyte committed Oct 2, 2012
1 parent 70318a6 commit 04795cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Snap/Snaplet/Auth/Backends/PostgresqlSimple.hs
Expand Up @@ -262,7 +262,7 @@ saveQuery at u@AuthUser{..} = maybe insertQuery updateQuery userId
, ") VALUES ("
, T.intercalate "," vals
, ") RETURNING "
, T.intercalate "," (map (fst . ($at) . fst) $ tail colDef)
, T.intercalate "," (map (fst . ($at) . fst) colDef)
]
, params)
qval f = fst (f at) `T.append` " = ?"
Expand All @@ -274,7 +274,7 @@ saveQuery at u@AuthUser{..} = maybe insertQuery updateQuery userId
, " WHERE "
, fst (colId at)
, " = ? RETURNING "
, T.intercalate "," (map (fst . ($at) . fst) $ tail colDef)
, T.intercalate "," (map (fst . ($at) . fst) colDef)
]
, params ++ [P.toField $ unUid uid])
cols = map (fst . ($at) . fst) $ tail colDef
Expand Down

0 comments on commit 04795cd

Please sign in to comment.