fix test
commitdf4d60f4cce37915a7b2fb880b588402f1c364c4
authorEitan Chatav <eitan@Eitans-MacBook-Pro.local>
dateMon 15 Apr 2019, 09:38 (8 years ago)
parent51afec4
squeal-postgresql/src/Squeal/PostgreSQL/Query.hs+1−1
@@ -983,7 +983,7 @@ instance With (Query outer) where
983983 ( select_ (sum_ (All #n) `as` #getSum) (from (common #t) & groupBy Nil))
984984 in printSQL query
985985:}
986−WITH RECURSIVE "t"("n") AS ((SELECT * FROM (VALUES (1)) AS t ("n")) UNION ALL (SELECT ("n" + 1) AS "n" FROM "t" AS "t" WHERE ("n" < 100))) SELECT sum(ALL "n") AS "getSum" FROM "t" AS "t"
986+WITH RECURSIVE "t" AS ((SELECT * FROM (VALUES (1)) AS t ("n")) UNION ALL (SELECT ("n" + 1) AS "n" FROM "t" AS "t" WHERE ("n" < 100))) SELECT sum(ALL "n") AS "getSum" FROM "t" AS "t"
987987-}
988988withRecursive
989989 :: Aliased (Query outer (recursive ': commons) schemas params) recursive