on dev help sign in
fix test
commit4c26216154fa722c7f33ec78e880bcc15ced71cd authorEitan Chatav <eitan.chatav@gmail.com> dateThu 10 Jan 2019, 19:50 (8 years ago) parent873c511
1 file changed+2−8
squeal-postgresql/src/Squeal/PostgreSQL/Expression.hs+2−8
squeal-postgresql/src/Squeal/PostgreSQL/Expression.hs+2−8
@@ -1887,14 +1887,8 @@ instance RenderSQL (WindowFunction commons schemas params grp from ty) where
18871887 renderSQL = renderWindowFunction
18881888
18891889{- | 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
1896−:}
1897−rank() OVER (PARTITION BY "a")
1890+>>> printSQL rank
1891+rank()
18981892-}
18991893rank :: WindowFunction commons schemas from grp params ('NotNull 'PGint8)
19001894rank = UnsafeWindowFunction "rank()"