on dev help sign in
fix test
4c26216Eitan Chatav
squeal-postgresql/src/Squeal/PostgreSQL/Expression.hs+2−8
@@ -1887,14 +1887,8 @@ instance RenderSQL (WindowFunction commons schemas params grp from ty) where
1887 renderSQL = renderWindowFunction
1887 renderSQL = renderWindowFunction
1888
1888
1889{- | rank of the current row with gaps; same as `rowNumber` of its first peer
1889{- | rank of the current row with gaps; same as `rowNumber` of its first peer
1890−>>> :{
1891−let
1892− expr :: WindowExpression commons schemas params 'Ungrouped '["tab" ::: '["a" ::: ty]] ('NotNull 'PGint8)
1893− expr = rank `Over` (partitionBy #a)
1894−in
1895− printSQL expr
1890+>>> printSQL rank
1896−:}
1891+rank()
1897−rank() OVER (PARTITION BY "a")
1898-}
1892-}
1899rank :: WindowFunction commons schemas from grp params ('NotNull 'PGint8)
1893rank :: WindowFunction commons schemas from grp params ('NotNull 'PGint8)
1900rank = UnsafeWindowFunction "rank()"
1894rank = UnsafeWindowFunction "rank()"