Skip to content

Commit

Permalink
Bump version, adhere to style guide
Browse files Browse the repository at this point in the history
  • Loading branch information
RikvanToor committed Aug 14, 2023
1 parent aef4b1d commit 44e9eda
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion esqueleto.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cabal-version: 1.12

name: esqueleto

version: 3.5.10.1
version: 3.5.10.2
synopsis: Type-safe EDSL for SQL queries on persistent backends.
description: @esqueleto@ is a bare bones, type-safe EDSL for SQL queries that works with unmodified @persistent@ SQL backends. Its language closely resembles SQL, so you don't have to learn new concepts, just new syntax, and it's fairly easy to predict the generated SQL and optimize it for your backend. Most kinds of errors committed when writing SQL are caught as compile-time errors---although it is possible to write type-checked @esqueleto@ queries that fail at runtime.
.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,10 @@ with query = do
Q $ W.tell mempty{sdCteClause = [clause]}
ref <- toAliasReference ident aliasedValue
pure $ From $ do
newIdent <- newIdentFor (DBName "cte")
localRef <- toAliasReference newIdent ref
pure (localRef, (\_ info -> (useIdent info ident <> " AS " <> useIdent info newIdent, mempty)))
newIdent <- newIdentFor (DBName "cte")
localRef <- toAliasReference newIdent ref
let lh = useIdent info ident <> " AS " <> useIdent info newIdent
pure (localRef, (\_ info -> (lh, mempty)))

-- | @WITH@ @RECURSIVE@ allows one to make a recursive subquery, which can
-- reference itself. Like @WITH@, this is supported in most modern SQL engines.
Expand Down

0 comments on commit 44e9eda

Please sign in to comment.